Ignore:
Timestamp:
Apr 26, 2022, 7:01:32 PM (3 years ago)
Author:
Oriol Brufau
Message:

[css-logical] Side border shorthands should not be logical/physical
https://bugs.webkit.org/show_bug.cgi?id=239734

Reviewed by Tim Nguyen.

No test since now there should be no observable change in behavior.

However, this refactoring will be needed for bug 236199.

  • animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
Mark logical side border shorthands as animatable.

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
Add code for serializing logical side border shorthands.

  • css/CSSProperties.json:

Stop side border shorthands from being in a logical property group.
They will just expand into logical or physical longhands, but the
shorthands themselves will be normal.

  • css/makeprop.pl:

(addProperty):
Assert that no shorthand belongs to a logical property group.

  • css/parser/CSSParser.cpp:

(WebCore::CSSParser::parseValueWithVariableReferences):
Remove dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r293090 r293493  
    40444044        case CSSPropertyBorderBlockColor:
    40454045            return getCSSPropertyValuesFor2SidesShorthand(borderBlockColorShorthand());
     4046        case CSSPropertyBorderBlockEnd:
     4047            return getCSSPropertyValuesForShorthandProperties(borderBlockEndShorthand());
     4048        case CSSPropertyBorderBlockStart:
     4049            return getCSSPropertyValuesForShorthandProperties(borderBlockStartShorthand());
    40464050        case CSSPropertyBorderBlockStyle:
    40474051            return getCSSPropertyValuesFor2SidesShorthand(borderBlockStyleShorthand());
     
    40624066        case CSSPropertyBorderInlineColor:
    40634067            return getCSSPropertyValuesFor2SidesShorthand(borderInlineColorShorthand());
     4068        case CSSPropertyBorderInlineEnd:
     4069            return getCSSPropertyValuesForShorthandProperties(borderInlineEndShorthand());
     4070        case CSSPropertyBorderInlineStart:
     4071            return getCSSPropertyValuesForShorthandProperties(borderInlineStartShorthand());
    40644072        case CSSPropertyBorderInlineStyle:
    40654073            return getCSSPropertyValuesFor2SidesShorthand(borderInlineStyleShorthand());
     
    42134221
    42144222        /* Directional properties are resolved by resolveDirectionAwareProperty() before the switch. */
    4215         case CSSPropertyBorderBlockEnd:
    42164223        case CSSPropertyBorderBlockEndColor:
    42174224        case CSSPropertyBorderBlockEndStyle:
    42184225        case CSSPropertyBorderBlockEndWidth:
    4219         case CSSPropertyBorderBlockStart:
    42204226        case CSSPropertyBorderBlockStartColor:
    42214227        case CSSPropertyBorderBlockStartStyle:
    42224228        case CSSPropertyBorderBlockStartWidth:
    4223         case CSSPropertyBorderEndEndRadius:       
    4224         case CSSPropertyBorderEndStartRadius:       
    4225         case CSSPropertyBorderInlineEnd:
     4229        case CSSPropertyBorderEndEndRadius:
     4230        case CSSPropertyBorderEndStartRadius:
    42264231        case CSSPropertyBorderInlineEndColor:
    42274232        case CSSPropertyBorderInlineEndStyle:
    42284233        case CSSPropertyBorderInlineEndWidth:
    4229         case CSSPropertyBorderInlineStart:
    42304234        case CSSPropertyBorderInlineStartColor:
    42314235        case CSSPropertyBorderInlineStartStyle:
Note: See TracChangeset for help on using the changeset viewer.