Ignore:
Timestamp:
May 12, 2022, 6:49:11 AM (3 years ago)
Author:
Oriol Brufau
Message:

[cssom] Serialize computed '-webkit-text-combine: none'
https://bugs.webkit.org/show_bug.cgi?id=239989

Reviewed by Tim Nguyen.

LayoutTests/imported/w3c:

Update some test expectations.

  • web-platform-tests/css/cssom/serialize-all-longhands-expected.txt:

Source/WebCore:

The computed value of '-webkit-text-combine' was only serialized for
'-webkit-text-combine: horizontal' or 'text-combine-upright: all'.

But the initial value 'none' just produced an empty string.

Test: imported/w3c/web-platform-tests/css/cssom/serialize-all-longhands.html

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):

File:
1 edited

Legend:

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

    r293656 r294101  
    39703970            if (style.textCombine() == TextCombine::All)
    39713971                return CSSPrimitiveValue::createIdentifier(CSSValueHorizontal);
    3972             return nullptr;
     3972            return cssValuePool.createValue(style.textCombine());
    39733973        case CSSPropertyTextCombineUpright:
    39743974            return cssValuePool.createValue(style.textCombine());
Note: See TracChangeset for help on using the changeset viewer.