mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 18:09:45 +00:00
LibWeb: Add method for whether tree-counting function is allowed
Some contexts (e.g. descriptors, media conditions) don't allow tree counting functions, this commit adds an easy way to check if the current value context is one of those.
This commit is contained in:
parent
fbc6a4c96f
commit
fd31fbd84b
Notes:
github-actions[bot]
2025-10-20 15:13:55 +00:00
Author: https://github.com/Calme1709
Commit: fd31fbd84b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6426
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 27 additions and 1 deletions
|
|
@ -77,6 +77,8 @@ struct DescriptorContext {
|
|||
enum SpecialContext : u8 {
|
||||
AngularColorStopList,
|
||||
CubicBezierFunctionXCoordinate,
|
||||
DOMMatrixInitString,
|
||||
MediaCondition,
|
||||
ShadowBlurRadius,
|
||||
StepsIntervalsJumpNone,
|
||||
StepsIntervalsNormal,
|
||||
|
|
@ -583,6 +585,7 @@ private:
|
|||
return ScopeGuard { [&] { m_value_context.take_last(); } };
|
||||
}
|
||||
bool context_allows_quirky_length() const;
|
||||
bool context_allows_tree_counting_functions() const;
|
||||
|
||||
Vector<RuleContext> m_rule_context;
|
||||
HashTable<FlyString> m_declared_namespaces;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue