Skip to content

Commit

Permalink
Cherry-pick 49637d0. rdar://problem/101876145
Browse files Browse the repository at this point in the history
    Web Inspector: Regression(256223@main) Assertion in LayoutTests/inspector/css/getSupportedCSSProperties.html at WebCore::CSSProperty::isInheritedProperty
    https://bugs.webkit.org/show_bug.cgi?id=247398
    rdar://101876145

    Reviewed by Sam Weinig.

    Known CSSPropertyID values are actually 0 thru `firstCSSProperty` + `numCSSProperties`. `firstCSSProperty` has a value
    of 2, and `numCSSProperties` is 512, but the last property has an ID of 513.

    * Source/WebCore/css/makeprop.pl:

    Canonical link: https://commits.webkit.org/256275@main

Canonical link: https://commits.webkit.org/256138.59@safari-7615.1.12-branch
  • Loading branch information
patrickangle authored and alancoon committed Nov 14, 2022
1 parent 5737ac0 commit 43d5cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/css/makeprop.pl
Expand Up @@ -659,7 +659,7 @@ sub sortByDescendingPriorityAndName
bool CSSProperty::isInheritedProperty(CSSPropertyID id)
{
ASSERT(id <= lastCSSProperty);
ASSERT(id < firstCSSProperty + numCSSProperties);
ASSERT(id != CSSPropertyInvalid);
return isInheritedPropertyTable[id];
}
Expand Down

0 comments on commit 43d5cbf

Please sign in to comment.