Changeset 290888 in webkit
- Timestamp:
- Mar 7, 2022 6:26:58 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 10 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)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (4 diffs)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290887 r290888 1 2022-03-07 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] text-emphasis-style should support discrete animations 4 https://bugs.webkit.org/show_bug.cgi?id=237514 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 * web-platform-tests/css/css-text-decor/inheritance-expected.txt: 11 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt: 12 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt: 13 * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt: 14 1 15 2022-03-07 Antoine Quint <graouts@webkit.org> 2 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt
r290884 r290888 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 55 FAIL Property text-emphasis-style value 'dot' in ::marker assert_equals: expected "dot" but got "filled dot" 55 PASS Property text-emphasis-style value 'dot' in ::marker 56 56 PASS Property text-shadow value 'rgb(0, 255, 0) 1px 2px 3px' in ::marker 57 57 PASS Property display value 'none' in ::marker -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt
r290887 r290888 38 38 PASS Animation of text-emphasis-color in ::marker 39 39 PASS Animation of text-emphasis-position in ::marker 40 FAIL Animation of text-emphasis-style in ::marker assert_equals: expected "triangle" but got "none" 40 PASS Animation of text-emphasis-style in ::marker 41 41 PASS Animation of text-shadow in ::marker 42 42 PASS Animation of display in ::marker … … 85 85 PASS Transition of text-emphasis-color in ::marker 86 86 PASS Transition of text-emphasis-position in ::marker 87 FAIL Transition of text-emphasis-style in ::marker assert_equals: expected "triangle" but got "filled triangle" 87 PASS Transition of text-emphasis-style in ::marker 88 88 PASS Transition of text-shadow in ::marker 89 89 PASS Transition of display in ::marker -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/inheritance-expected.txt
r282397 r290888 11 11 PASS Property text-emphasis-position inherits 12 12 PASS Property text-emphasis-style has initial value none 13 FAIL Property text-emphasis-style inherits assert_equals: expected "triangle" but got "filled triangle" 13 PASS Property text-emphasis-style inherits 14 14 PASS Property text-shadow has initial value none 15 15 PASS Property text-shadow inherits -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt
r290887 r290888 163 163 PASS text-emphasis-position: "under left" onto "over" 164 164 PASS text-emphasis-position: "over" onto "under left" 165 PASS text-emphasis-style (type: discrete) has testAccumulation function 166 PASS text-emphasis-style: "open dot" onto "circle" 167 PASS text-emphasis-style: "circle" onto "open dot" 165 168 PASS text-overflow (type: discrete) has testAccumulation function 166 169 PASS text-overflow: "ellipsis" onto "clip" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt
r290887 r290888 163 163 PASS text-emphasis-position: "under left" onto "over" 164 164 PASS text-emphasis-position: "over" onto "under left" 165 PASS text-emphasis-style (type: discrete) has testAddition function 166 PASS text-emphasis-style: "open dot" onto "circle" 167 PASS text-emphasis-style: "circle" onto "open dot" 165 168 PASS text-overflow (type: discrete) has testAddition function 166 169 PASS text-overflow: "ellipsis" onto "clip" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt
r290887 r290888 190 190 PASS text-emphasis-position uses discrete animation when animating between "over" and "under left" with effect easing 191 191 PASS text-emphasis-position uses discrete animation when animating between "over" and "under left" with keyframe easing 192 PASS text-emphasis-style (type: discrete) has testInterpolation function 193 PASS text-emphasis-style uses discrete animation when animating between "circle" and "open dot" with linear easing 194 PASS text-emphasis-style uses discrete animation when animating between "circle" and "open dot" with effect easing 195 PASS text-emphasis-style uses discrete animation when animating between "circle" and "open dot" with keyframe easing 192 196 PASS text-overflow (type: discrete) has testInterpolation function 193 197 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with linear easing -
trunk/Source/WebCore/ChangeLog
r290887 r290888 1 2022-03-07 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] text-emphasis-style should support discrete animations 4 https://bugs.webkit.org/show_bug.cgi?id=237514 5 6 Reviewed by Antti Koivisto. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 * css/CSSComputedStyleDeclaration.cpp: 11 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 12 1 13 2022-03-07 Antoine Quint <graouts@webkit.org> 2 14 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r290887 r290888 729 729 730 730 template <typename T> 731 class DiscretePropertyWrapper final: public PropertyWrapperGetter<T> {731 class DiscretePropertyWrapper : public PropertyWrapperGetter<T> { 732 732 WTF_MAKE_FAST_ALLOCATED; 733 733 public: … … 738 738 } 739 739 740 void blend(RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, const CSSPropertyBlendingContext& context) const final740 void blend(RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, const CSSPropertyBlendingContext& context) const override 741 741 { 742 742 ASSERT(!context.progress || context.progress == 1.0); … … 2463 2463 else 2464 2464 destination.clearContent(); 2465 } 2466 }; 2467 2468 class TextEmphasisStyleWrapper final : public DiscretePropertyWrapper<TextEmphasisMark> { 2469 WTF_MAKE_FAST_ALLOCATED; 2470 public: 2471 TextEmphasisStyleWrapper() 2472 : DiscretePropertyWrapper<TextEmphasisMark>(CSSPropertyTextEmphasisStyle, &RenderStyle::textEmphasisMark, &RenderStyle::setTextEmphasisMark) 2473 { 2474 } 2475 2476 private: 2477 void blend(RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, const CSSPropertyBlendingContext& context) const final 2478 { 2479 destination.setTextEmphasisFill((context.progress > 0.5 ? to : from).textEmphasisFill()); 2480 DiscretePropertyWrapper::blend(destination, from, to, context); 2465 2481 } 2466 2482 }; … … 2764 2780 new PropertyWrapperVisitedAffectedColor(CSSPropertyTextEmphasisColor, MaybeInvalidColor, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasisColor, &RenderStyle::visitedLinkTextEmphasisColor, &RenderStyle::setVisitedLinkTextEmphasisColor), 2765 2781 new DiscretePropertyWrapper<OptionSet<TextEmphasisPosition>>(CSSPropertyTextEmphasisPosition, &RenderStyle::textEmphasisPosition, &RenderStyle::setTextEmphasisPosition), 2782 new TextEmphasisStyleWrapper, 2766 2783 new DiscretePropertyWrapper<TextOverflow>(CSSPropertyTextOverflow, &RenderStyle::textOverflow, &RenderStyle::setTextOverflow), 2767 2784 new DiscretePropertyWrapper<OptionSet<TouchAction>>(CSSPropertyTouchAction, &RenderStyle::touchActions, &RenderStyle::setTouchActions), -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r290772 r290888 3571 3571 case TextEmphasisMark::Sesame: 3572 3572 auto list = CSSValueList::createSpaceSeparated(); 3573 list->append(cssValuePool.createValue(style.textEmphasisFill())); 3573 if (style.textEmphasisFill() != TextEmphasisFill::Filled) 3574 list->append(cssValuePool.createValue(style.textEmphasisFill())); 3574 3575 list->append(cssValuePool.createValue(style.textEmphasisMark())); 3575 3576 return list;
Note: See TracChangeset
for help on using the changeset viewer.