Changeset 290895 in webkit
- Timestamp:
- Mar 7, 2022 9:53:06 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290888 r290895 1 2022-03-07 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] text-emphasis shorthand should be animatable 4 https://bugs.webkit.org/show_bug.cgi?id=237529 5 6 Reviewed by Antti Koivisto. 7 8 * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt: 9 * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt: 10 1 11 2022-03-07 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt
r290888 r290895 50 50 PASS Property word-spacing value '10px' in ::marker 51 51 PASS Property text-decoration-skip-ink value 'none' in ::marker 52 FAIL Property text-emphasis value 'dot rgb(0, 255, 0)' in ::marker assert_equals: expected "dot rgb(0, 255, 0)" but got "" 52 PASS Property text-emphasis value 'dot rgb(0, 255, 0)' in ::marker 53 53 PASS Property text-emphasis-color value 'rgb(0, 255, 0)' in ::marker 54 54 PASS Property text-emphasis-position value 'under left' in ::marker -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt
r290888 r290895 35 35 PASS Animation of word-spacing in ::marker 36 36 PASS Animation of text-decoration-skip-ink in ::marker 37 FAIL Animation of text-emphasis in ::marker assert_equals: expected "triangle rgb(50, 100, 100)" but got "" 37 PASS Animation of text-emphasis in ::marker 38 38 PASS Animation of text-emphasis-color in ::marker 39 39 PASS Animation of text-emphasis-position in ::marker … … 82 82 PASS Transition of word-spacing in ::marker 83 83 PASS Transition of text-decoration-skip-ink in ::marker 84 FAIL Transition of text-emphasis in ::marker assert_equals: expected "triangle rgb(50, 100, 100)" but got "" 84 PASS Transition of text-emphasis in ::marker 85 85 PASS Transition of text-emphasis-color in ::marker 86 86 PASS Transition of text-emphasis-position in ::marker -
trunk/Source/WebCore/ChangeLog
r290892 r290895 1 2022-03-07 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] text-emphasis shorthand should be animatable 4 https://bugs.webkit.org/show_bug.cgi?id=237529 5 6 Reviewed by Antti Koivisto. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 * css/CSSComputedStyleDeclaration.cpp: 11 (WebCore::valueForTextEmphasisStyle): 12 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 13 1 14 2022-03-07 Peng Liu <peng.liu6@apple.com> 2 15 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r290888 r290895 2837 2837 CSSPropertyTransformOrigin, 2838 2838 CSSPropertyPerspectiveOrigin, 2839 CSSPropertyOffset 2839 CSSPropertyOffset, 2840 CSSPropertyTextEmphasis 2840 2841 }; 2841 2842 const unsigned animatableShorthandPropertiesCount = WTF_ARRAY_LENGTH(animatableShorthandProperties); -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r290888 r290895 1921 1921 return cssValuePool.createIdentifierValue(CSSValueNone); 1922 1922 return list; 1923 } 1924 1925 static Ref<CSSValue> valueForTextEmphasisStyle(const RenderStyle& style) 1926 { 1927 auto& cssValuePool = CSSValuePool::singleton(); 1928 switch (style.textEmphasisMark()) { 1929 case TextEmphasisMark::None: 1930 return cssValuePool.createIdentifierValue(CSSValueNone); 1931 case TextEmphasisMark::Custom: 1932 return cssValuePool.createValue(style.textEmphasisCustomMark(), CSSUnitType::CSS_STRING); 1933 case TextEmphasisMark::Auto: 1934 ASSERT_NOT_REACHED(); 1935 #if !ASSERT_ENABLED 1936 FALLTHROUGH; 1937 #endif 1938 case TextEmphasisMark::Dot: 1939 case TextEmphasisMark::Circle: 1940 case TextEmphasisMark::DoubleCircle: 1941 case TextEmphasisMark::Triangle: 1942 case TextEmphasisMark::Sesame: 1943 auto list = CSSValueList::createSpaceSeparated(); 1944 if (style.textEmphasisFill() != TextEmphasisFill::Filled) 1945 list->append(cssValuePool.createValue(style.textEmphasisFill())); 1946 list->append(cssValuePool.createValue(style.textEmphasisMark())); 1947 return list; 1948 } 1949 RELEASE_ASSERT_NOT_REACHED(); 1923 1950 } 1924 1951 … … 3555 3582 return renderEmphasisPositionFlagsToCSSValue(style.textEmphasisPosition()); 3556 3583 case CSSPropertyTextEmphasisStyle: 3557 switch (style.textEmphasisMark()) { 3558 case TextEmphasisMark::None: 3559 return cssValuePool.createIdentifierValue(CSSValueNone); 3560 case TextEmphasisMark::Custom: 3561 return cssValuePool.createValue(style.textEmphasisCustomMark(), CSSUnitType::CSS_STRING); 3562 case TextEmphasisMark::Auto: 3563 ASSERT_NOT_REACHED(); 3564 #if !ASSERT_ENABLED 3565 FALLTHROUGH; 3566 #endif 3567 case TextEmphasisMark::Dot: 3568 case TextEmphasisMark::Circle: 3569 case TextEmphasisMark::DoubleCircle: 3570 case TextEmphasisMark::Triangle: 3571 case TextEmphasisMark::Sesame: 3572 auto list = CSSValueList::createSpaceSeparated(); 3573 if (style.textEmphasisFill() != TextEmphasisFill::Filled) 3574 list->append(cssValuePool.createValue(style.textEmphasisFill())); 3575 list->append(cssValuePool.createValue(style.textEmphasisMark())); 3576 return list; 3577 } 3578 RELEASE_ASSERT_NOT_REACHED(); 3584 return valueForTextEmphasisStyle(style); 3585 case CSSPropertyTextEmphasis: { 3586 auto list = CSSValueList::createSpaceSeparated(); 3587 list->append(valueForTextEmphasisStyle(style)); 3588 list->append(currentColorOrValidColor(&style, style.textEmphasisColor())); 3589 return list; 3590 } 3579 3591 case CSSPropertyTextIndent: { 3580 3592 auto textIndent = zoomAdjustedPixelValueForLength(style.textIndent(), style); … … 4180 4192 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */ 4181 4193 case CSSPropertyAll: 4182 case CSSPropertyTextEmphasis:4183 4194 break; 4184 4195
Note: See TracChangeset
for help on using the changeset viewer.