Title: [287356] trunk
Revision
287356
Author
[email protected]
Date
2021-12-22 08:57:45 -0800 (Wed, 22 Dec 2021)

Log Message

Internally unprefix -webkit-text-emphasis properties
https://bugs.webkit.org/show_bug.cgi?id=234602

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

Adjust test expectations.

* web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
* web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
* web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:

Source/WebCore:

It's already exposed unprefixed externally, let's reflect this internally as well.

Makes it easier to remove prefixed versions later on if needed, and it's also less confusing when
going through the CSSProperties.json file.

* animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* css/CSSProperties.json:
* css/CSSValueKeywords.in:
* css/StyleProperties.cpp:
(WebCore::StyleProperties::getPropertyValue const):
* css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseSingleValue):
(WebCore::CSSPropertyParser::parseShorthand):
* rendering/RenderElement.cpp:
(WebCore::RenderElement::selectionEmphasisMarkColor const):
* rendering/TextPaintStyle.cpp:
(WebCore::computeTextPaintStyle):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::unresolvedColorForProperty const):
* style/PropertyAllowlist.cpp:
(WebCore::Style::isValidMarkerStyleProperty):
* style/StyleBuilder.cpp:
(WebCore::Style::isValidVisitedLinkProperty):
* style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyInitialTextEmphasisStyle):
(WebCore::Style::BuilderCustom::applyInheritTextEmphasisStyle):
(WebCore::Style::BuilderCustom::applyValueTextEmphasisStyle):
(WebCore::Style::BuilderCustom::applyInitialWebkitTextEmphasisStyle): Deleted.
(WebCore::Style::BuilderCustom::applyInheritWebkitTextEmphasisStyle): Deleted.
(WebCore::Style::BuilderCustom::applyValueWebkitTextEmphasisStyle): Deleted.

LayoutTests:

Adjust test expectations.

* platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
* platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* platform/mac/svg/css/getComputedStyle-basic-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (287355 => 287356)


--- trunk/LayoutTests/ChangeLog	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/ChangeLog	2021-12-22 16:57:45 UTC (rev 287356)
@@ -1,3 +1,16 @@
+2021-12-22  Tim Nguyen  <[email protected]>
+
+        Internally unprefix -webkit-text-emphasis properties
+        https://bugs.webkit.org/show_bug.cgi?id=234602
+
+        Reviewed by Antti Koivisto.
+
+        Adjust test expectations.
+
+        * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
+        * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * platform/mac/svg/css/getComputedStyle-basic-expected.txt:
+
 2021-12-22  Frédéric Wang  <[email protected]>
 
         null ptr deref in DocumentTimeline::animate

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (287355 => 287356)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2021-12-22 16:57:45 UTC (rev 287356)
@@ -1,3 +1,17 @@
+2021-12-22  Tim Nguyen  <[email protected]>
+
+        Internally unprefix -webkit-text-emphasis properties
+        https://bugs.webkit.org/show_bug.cgi?id=234602
+
+        Reviewed by Antti Koivisto.
+
+        Adjust test expectations.
+
+        * web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
+        * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
+        * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
+        * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:
+
 2021-12-21  Sergio Villar Senin  <[email protected]>
 
         [REGRESSION][[css-flexbox] child elements are shrunk to fit into container after r286206

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (287355 => 287356)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -287,6 +287,9 @@
 PASS text-decoration-skip-ink
 PASS text-decoration-style
 PASS text-decoration-thickness
+PASS text-emphasis-color
+PASS text-emphasis-position
+PASS text-emphasis-style
 PASS text-indent
 PASS text-orientation
 PASS text-overflow
@@ -387,9 +390,6 @@
 PASS -webkit-rtl-ordering
 PASS -webkit-ruby-position
 PASS -webkit-text-combine
-PASS -webkit-text-emphasis-color
-PASS -webkit-text-emphasis-position
-PASS -webkit-text-emphasis-style
 PASS -webkit-text-fill-color
 PASS -webkit-text-orientation
 PASS -webkit-text-security

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (287355 => 287356)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -152,6 +152,16 @@
 PASS text-decoration-style (type: discrete) has testAccumulation function
 PASS text-decoration-style: "dotted" onto "solid"
 PASS text-decoration-style: "solid" onto "dotted"
+PASS text-emphasis-color (type: color) has testAccumulation function
+FAIL text-emphasis-color supports animating as color of rgb() with overflowed  from and to values assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of #RGB assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of hsl() assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of #RGBa assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+FAIL text-emphasis-color supports animating as color of rgba() assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+FAIL text-emphasis-color supports animating as color of hsla() assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+PASS text-emphasis-position (type: discrete) has testAccumulation function
+PASS text-emphasis-position: "under left" onto "over right"
+PASS text-emphasis-position: "over right" onto "under left"
 PASS text-overflow (type: discrete) has testAccumulation function
 PASS text-overflow: "ellipsis" onto "clip"
 PASS text-overflow: "clip" onto "ellipsis"

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (287355 => 287356)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -152,6 +152,16 @@
 PASS text-decoration-style (type: discrete) has testAddition function
 PASS text-decoration-style: "dotted" onto "solid"
 PASS text-decoration-style: "solid" onto "dotted"
+PASS text-emphasis-color (type: color) has testAddition function
+FAIL text-emphasis-color supports animating as color of rgb() with overflowed  from and to values assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of #RGB assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of hsl() assert_equals: The value should be rgb(255, 128, 128) at 0ms expected "rgb(255, 128, 128)" but got "rgb(255, 0, 0)"
+FAIL text-emphasis-color supports animating as color of #RGBa assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+FAIL text-emphasis-color supports animating as color of rgba() assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+FAIL text-emphasis-color supports animating as color of hsla() assert_equals: The value should be rgb(230, 128, 128) at 0ms expected "rgb(230, 128, 128)" but got "rgba(255, 0, 0, 0.4)"
+PASS text-emphasis-position (type: discrete) has testAddition function
+PASS text-emphasis-position: "under left" onto "over right"
+PASS text-emphasis-position: "over right" onto "under left"
 PASS text-overflow (type: discrete) has testAddition function
 PASS text-overflow: "ellipsis" onto "clip"
 PASS text-overflow: "clip" onto "ellipsis"

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (287355 => 287356)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -178,6 +178,17 @@
 PASS text-decoration-style uses discrete animation when animating between "solid" and "dotted" with linear easing
 PASS text-decoration-style uses discrete animation when animating between "solid" and "dotted" with effect easing
 PASS text-decoration-style uses discrete animation when animating between "solid" and "dotted" with keyframe easing
+PASS text-emphasis-color (type: color) has testInterpolation function
+FAIL text-emphasis-color supports animating as color of rgb() assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
+FAIL text-emphasis-color supports animating as color of #RGB assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
+FAIL text-emphasis-color supports animating as color of hsl() assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
+FAIL text-emphasis-color supports animating as color of #RGBa assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
+FAIL text-emphasis-color supports animating as color of rgba() assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
+FAIL text-emphasis-color supports animating as color of hsla() assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
+PASS text-emphasis-position (type: discrete) has testInterpolation function
+PASS text-emphasis-position uses discrete animation when animating between "over right" and "under left" with linear easing
+PASS text-emphasis-position uses discrete animation when animating between "over right" and "under left" with effect easing
+PASS text-emphasis-position uses discrete animation when animating between "over right" and "under left" with keyframe easing
 PASS text-overflow (type: discrete) has testInterpolation function
 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with linear easing
 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with effect easing

Modified: trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt (287355 => 287356)


--- trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -246,9 +246,6 @@
 -webkit-print-color-adjust: economy;
 -webkit-rtl-ordering: logical;
 -webkit-text-combine: none;
--webkit-text-emphasis-color: rgb(0, 0, 0);
--webkit-text-emphasis-position: over right;
--webkit-text-emphasis-style: none;
 -webkit-text-fill-color: rgb(0, 0, 0);
 -webkit-text-orientation: mixed;
 -webkit-text-security: none;

Modified: trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (287355 => 287356)


--- trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -245,9 +245,6 @@
 -webkit-print-color-adjust: economy
 -webkit-rtl-ordering: logical
 -webkit-text-combine: none
--webkit-text-emphasis-color: rgb(0, 0, 0)
--webkit-text-emphasis-position: over right
--webkit-text-emphasis-style: none
 -webkit-text-fill-color: rgb(0, 0, 0)
 -webkit-text-orientation: mixed
 -webkit-text-security: none

Modified: trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt (287355 => 287356)


--- trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt	2021-12-22 16:57:45 UTC (rev 287356)
@@ -490,12 +490,6 @@
 rect: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-combine) : none
 rect: style.getPropertyCSSValue(-webkit-text-combine) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-text-emphasis-color) : rgb(0, 0, 0)
-rect: style.getPropertyCSSValue(-webkit-text-emphasis-color) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-text-emphasis-position) : over right
-rect: style.getPropertyCSSValue(-webkit-text-emphasis-position) : [object CSSValueList]
-rect: style.getPropertyValue(-webkit-text-emphasis-style) : none
-rect: style.getPropertyCSSValue(-webkit-text-emphasis-style) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)
 rect: style.getPropertyCSSValue(-webkit-text-fill-color) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-orientation) : mixed
@@ -1006,12 +1000,6 @@
 g: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-combine) : none
 g: style.getPropertyCSSValue(-webkit-text-combine) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-text-emphasis-color) : rgb(0, 0, 0)
-g: style.getPropertyCSSValue(-webkit-text-emphasis-color) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-text-emphasis-position) : over right
-g: style.getPropertyCSSValue(-webkit-text-emphasis-position) : [object CSSValueList]
-g: style.getPropertyValue(-webkit-text-emphasis-style) : none
-g: style.getPropertyCSSValue(-webkit-text-emphasis-style) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)
 g: style.getPropertyCSSValue(-webkit-text-fill-color) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-orientation) : mixed

Modified: trunk/Source/WebCore/ChangeLog (287355 => 287356)


--- trunk/Source/WebCore/ChangeLog	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/ChangeLog	2021-12-22 16:57:45 UTC (rev 287356)
@@ -1,3 +1,44 @@
+2021-12-22  Tim Nguyen  <[email protected]>
+
+        Internally unprefix -webkit-text-emphasis properties
+        https://bugs.webkit.org/show_bug.cgi?id=234602
+
+        Reviewed by Antti Koivisto.
+
+        It's already exposed unprefixed externally, let's reflect this internally as well.
+
+        Makes it easier to remove prefixed versions later on if needed, and it's also less confusing when
+        going through the CSSProperties.json file.
+
+        * animation/CSSPropertyAnimation.cpp:
+        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+        * css/CSSProperties.json:
+        * css/CSSValueKeywords.in:
+        * css/StyleProperties.cpp:
+        (WebCore::StyleProperties::getPropertyValue const):
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::CSSPropertyParser::parseSingleValue):
+        (WebCore::CSSPropertyParser::parseShorthand):
+        * rendering/RenderElement.cpp:
+        (WebCore::RenderElement::selectionEmphasisMarkColor const):
+        * rendering/TextPaintStyle.cpp:
+        (WebCore::computeTextPaintStyle):
+        * rendering/style/RenderStyle.cpp:
+        (WebCore::RenderStyle::unresolvedColorForProperty const):
+        * style/PropertyAllowlist.cpp:
+        (WebCore::Style::isValidMarkerStyleProperty):
+        * style/StyleBuilder.cpp:
+        (WebCore::Style::isValidVisitedLinkProperty):
+        * style/StyleBuilderCustom.h:
+        (WebCore::Style::BuilderCustom::applyInitialTextEmphasisStyle):
+        (WebCore::Style::BuilderCustom::applyInheritTextEmphasisStyle):
+        (WebCore::Style::BuilderCustom::applyValueTextEmphasisStyle):
+        (WebCore::Style::BuilderCustom::applyInitialWebkitTextEmphasisStyle): Deleted.
+        (WebCore::Style::BuilderCustom::applyInheritWebkitTextEmphasisStyle): Deleted.
+        (WebCore::Style::BuilderCustom::applyValueWebkitTextEmphasisStyle): Deleted.
+
 2021-12-21  Sergio Villar Senin  <[email protected]>
 
         [REGRESSION][[css-flexbox] child elements are shrunk to fit into container after r286206

Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (287355 => 287356)


--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -2764,8 +2764,8 @@
         new DiscretePropertyWrapper<TextAlignMode>(CSSPropertyTextAlign, &RenderStyle::textAlign, &RenderStyle::setTextAlign),
         new DiscretePropertyWrapper<OptionSet<TextDecorationLine>>(CSSPropertyTextDecorationLine, &RenderStyle::textDecoration, &RenderStyle::setTextDecoration),
         new DiscretePropertyWrapper<TextDecorationStyle>(CSSPropertyTextDecorationStyle, &RenderStyle::textDecorationStyle, &RenderStyle::setTextDecorationStyle),
-        new DiscretePropertyWrapper<const Color&>(CSSPropertyWebkitTextEmphasisColor, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasisColor),
-        new DiscretePropertyWrapper<OptionSet<TextEmphasisPosition>>(CSSPropertyWebkitTextEmphasisPosition, &RenderStyle::textEmphasisPosition, &RenderStyle::setTextEmphasisPosition),
+        new DiscretePropertyWrapper<const Color&>(CSSPropertyTextEmphasisColor, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasisColor),
+        new DiscretePropertyWrapper<OptionSet<TextEmphasisPosition>>(CSSPropertyTextEmphasisPosition, &RenderStyle::textEmphasisPosition, &RenderStyle::setTextEmphasisPosition),
         new DiscretePropertyWrapper<TextOverflow>(CSSPropertyTextOverflow, &RenderStyle::textOverflow, &RenderStyle::setTextOverflow),
         new DiscretePropertyWrapper<OptionSet<TouchAction>>(CSSPropertyTouchAction, &RenderStyle::touchActions, &RenderStyle::setTouchActions),
         new DiscretePropertyWrapper<TextTransform>(CSSPropertyTextTransform, &RenderStyle::textTransform, &RenderStyle::setTextTransform),

Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (287355 => 287356)


--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -3359,11 +3359,11 @@
             return renderTextDecorationLineFlagsToCSSValue(style.textDecorationsInEffect());
         case CSSPropertyWebkitTextFillColor:
             return currentColorOrValidColor(&style, style.textFillColor());
-        case CSSPropertyWebkitTextEmphasisColor:
+        case CSSPropertyTextEmphasisColor:
             return currentColorOrValidColor(&style, style.textEmphasisColor());
-        case CSSPropertyWebkitTextEmphasisPosition:
+        case CSSPropertyTextEmphasisPosition:
             return renderEmphasisPositionFlagsToCSSValue(style.textEmphasisPosition());
-        case CSSPropertyWebkitTextEmphasisStyle:
+        case CSSPropertyTextEmphasisStyle:
             switch (style.textEmphasisMark()) {
             case TextEmphasisMark::None:
                 return cssValuePool.createIdentifierValue(CSSValueNone);
@@ -4088,7 +4088,7 @@
         /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */
         case CSSPropertyAll:
         case CSSPropertyAnimation:
-        case CSSPropertyWebkitTextEmphasis:
+        case CSSPropertyTextEmphasis:
             break;
 
         /* Directional properties are resolved by resolveDirectionAwareProperty() before the switch. */

Modified: trunk/Source/WebCore/css/CSSProperties.json (287355 => 287356)


--- trunk/Source/WebCore/css/CSSProperties.json	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/css/CSSProperties.json	2021-12-22 16:57:45 UTC (rev 287356)
@@ -6910,16 +6910,16 @@
             },
             "status": "non-standard"
         },
-        "-webkit-text-emphasis": {
+        "text-emphasis": {
             "inherited": true,
             "codegen-properties": {
                 "aliases": [
                     "-epub-text-emphasis",
-                    "text-emphasis"
+                    "-webkit-text-emphasis"
                 ],
                 "longhands": [
-                    "-webkit-text-emphasis-style",
-                    "-webkit-text-emphasis-color"
+                    "text-emphasis-style",
+                    "text-emphasis-color"
                 ]
             },
             "status": {
@@ -6930,12 +6930,12 @@
                 "url": "https://www.w3.org/TR/css-text-decor-3/#text-emphasis"
             }
         },
-        "-webkit-text-emphasis-color": {
+        "text-emphasis-color": {
             "inherited": true,
             "codegen-properties": {
                 "aliases": [
                     "-epub-text-emphasis-color",
-                    "text-emphasis-color"
+                    "-webkit-text-emphasis-color"
                 ],
                 "initial": "currentColor",
                 "visited-link-color-support": true,
@@ -6949,11 +6949,11 @@
                 "url": "https://www.w3.org/TR/css-text-decor-3/#text-emphasis-color"
             }
         },
-        "-webkit-text-emphasis-position": {
+        "text-emphasis-position": {
             "inherited": true,
             "codegen-properties": {
                 "aliases": [
-                    "text-emphasis-position"
+                    "-webkit-text-emphasis-position"
                 ],
                 "converter": "TextEmphasisPosition"
             },
@@ -6965,12 +6965,12 @@
                 "url": "https://www.w3.org/TR/css-text-decor-3/#text-emphasis-position"
             }
         },
-        "-webkit-text-emphasis-style": {
+        "text-emphasis-style": {
             "inherited": true,
             "codegen-properties": {
                 "aliases": [
                     "-epub-text-emphasis-style",
-                    "text-emphasis-style"
+                    "-webkit-text-emphasis-style"
                 ],
                 "custom": "All"
             },

Modified: trunk/Source/WebCore/css/CSSValueKeywords.in (287355 => 287356)


--- trunk/Source/WebCore/css/CSSValueKeywords.in	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/css/CSSValueKeywords.in	2021-12-22 16:57:45 UTC (rev 287356)
@@ -1114,11 +1114,11 @@
 before
 inter-character
 
-// -webkit-text-emphasis-position
+// text-emphasis-position
 over
 under
 
-// -webkit-text-emphasis-style
+// text-emphasis-style
 filled
 open
 dot

Modified: trunk/Source/WebCore/css/StyleProperties.cpp (287355 => 287356)


--- trunk/Source/WebCore/css/StyleProperties.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/css/StyleProperties.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -310,8 +310,8 @@
     case CSSPropertyMask:
     case CSSPropertyWebkitMask:
         return getLayeredShorthandValue(shorthandForProperty(propertyID));
-    case CSSPropertyWebkitTextEmphasis:
-        return getShorthandValue(webkitTextEmphasisShorthand());
+    case CSSPropertyTextEmphasis:
+        return getShorthandValue(textEmphasisShorthand());
     case CSSPropertyWebkitTextStroke:
         return getShorthandValue(webkitTextStrokeShorthand());
     case CSSPropertyPerspectiveOrigin:

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (287355 => 287356)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -4344,7 +4344,7 @@
 #if ENABLE(TOUCH_EVENTS)
     case CSSPropertyWebkitTapHighlightColor:
 #endif
-    case CSSPropertyWebkitTextEmphasisColor:
+    case CSSPropertyTextEmphasisColor:
     case CSSPropertyBorderInlineStartColor:
     case CSSPropertyBorderInlineEndColor:
     case CSSPropertyBorderBlockStartColor:
@@ -4407,7 +4407,7 @@
     case CSSPropertyWebkitTextDecorationsInEffect:
     case CSSPropertyTextDecorationLine:
         return consumeTextDecorationLine(m_range);
-    case CSSPropertyWebkitTextEmphasisStyle:
+    case CSSPropertyTextEmphasisStyle:
         return consumeTextEmphasisStyle(m_range);
     case CSSPropertyOutlineColor:
         return consumeOutlineColor(m_range, m_context.mode);
@@ -4633,7 +4633,7 @@
         if (!m_context.containmentEnabled)
             return nullptr;
         return consumeContain(m_range);
-    case CSSPropertyWebkitTextEmphasisPosition:
+    case CSSPropertyTextEmphasisPosition:
         return consumeTextEmphasisPosition(m_range);
 #if ENABLE(DARK_MODE_CSS)
     case CSSPropertyColorScheme:
@@ -6183,8 +6183,8 @@
         return consume2ValueShorthand(scrollPaddingBlockShorthand(), important);
     case CSSPropertyScrollPaddingInline:
         return consume2ValueShorthand(scrollPaddingInlineShorthand(), important);
-    case CSSPropertyWebkitTextEmphasis:
-        return consumeShorthandGreedily(webkitTextEmphasisShorthand(), important);
+    case CSSPropertyTextEmphasis:
+        return consumeShorthandGreedily(textEmphasisShorthand(), important);
     case CSSPropertyOutline:
         return consumeShorthandGreedily(outlineShorthand(), important);
     case CSSPropertyBorderInline: {

Modified: trunk/Source/WebCore/rendering/RenderElement.cpp (287355 => 287356)


--- trunk/Source/WebCore/rendering/RenderElement.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/rendering/RenderElement.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -1590,7 +1590,7 @@
 
 Color RenderElement::selectionEmphasisMarkColor() const
 {
-    return selectionColor(CSSPropertyWebkitTextEmphasisColor);
+    return selectionColor(CSSPropertyTextEmphasisColor);
 }
 
 Color RenderElement::selectionBackgroundColor() const

Modified: trunk/Source/WebCore/rendering/TextPaintStyle.cpp (287355 => 287356)


--- trunk/Source/WebCore/rendering/TextPaintStyle.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/rendering/TextPaintStyle.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -126,7 +126,7 @@
     if (forceBackgroundToWhite)
         paintStyle.strokeColor = adjustColorForVisibilityOnBackground(paintStyle.strokeColor, Color::white);
 
-    paintStyle.emphasisMarkColor = lineStyle.visitedDependentColorWithColorFilter(CSSPropertyWebkitTextEmphasisColor);
+    paintStyle.emphasisMarkColor = lineStyle.visitedDependentColorWithColorFilter(CSSPropertyTextEmphasisColor);
 
     // Make the text stroke color legible against a white background
     if (forceBackgroundToWhite)

Modified: trunk/Source/WebCore/rendering/style/RenderStyle.cpp (287355 => 287356)


--- trunk/Source/WebCore/rendering/style/RenderStyle.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -2147,7 +2147,7 @@
         return unresolvedColorForProperty(CSSProperty::resolveDirectionAwareProperty(colorProperty, direction(), writingMode()));
     case CSSPropertyColumnRuleColor:
         return visitedLink ? visitedLinkColumnRuleColor() : columnRuleColor();
-    case CSSPropertyWebkitTextEmphasisColor:
+    case CSSPropertyTextEmphasisColor:
         return visitedLink ? visitedLinkTextEmphasisColor() : textEmphasisColor();
     case CSSPropertyWebkitTextFillColor:
         return visitedLink ? visitedLinkTextFillColor() : textFillColor();

Modified: trunk/Source/WebCore/style/PropertyAllowlist.cpp (287355 => 287356)


--- trunk/Source/WebCore/style/PropertyAllowlist.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/style/PropertyAllowlist.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -70,10 +70,10 @@
     case CSSPropertyOverflowWrap:
     case CSSPropertyTabSize:
     case CSSPropertyTextDecorationSkipInk:
-    case CSSPropertyWebkitTextEmphasis:
-    case CSSPropertyWebkitTextEmphasisColor:
-    case CSSPropertyWebkitTextEmphasisPosition:
-    case CSSPropertyWebkitTextEmphasisStyle:
+    case CSSPropertyTextEmphasis:
+    case CSSPropertyTextEmphasisColor:
+    case CSSPropertyTextEmphasisPosition:
+    case CSSPropertyTextEmphasisStyle:
     case CSSPropertyTextShadow:
     case CSSPropertyTextTransform:
     case CSSPropertyUnicodeBidi:

Modified: trunk/Source/WebCore/style/StyleBuilder.cpp (287355 => 287356)


--- trunk/Source/WebCore/style/StyleBuilder.cpp	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/style/StyleBuilder.cpp	2021-12-22 16:57:45 UTC (rev 287356)
@@ -66,7 +66,7 @@
     case CSSPropertyOutlineColor:
     case CSSPropertyColumnRuleColor:
     case CSSPropertyTextDecorationColor:
-    case CSSPropertyWebkitTextEmphasisColor:
+    case CSSPropertyTextEmphasisColor:
     case CSSPropertyWebkitTextFillColor:
     case CSSPropertyWebkitTextStrokeColor:
     case CSSPropertyFill:

Modified: trunk/Source/WebCore/style/StyleBuilderCustom.h (287355 => 287356)


--- trunk/Source/WebCore/style/StyleBuilderCustom.h	2021-12-22 15:27:57 UTC (rev 287355)
+++ trunk/Source/WebCore/style/StyleBuilderCustom.h	2021-12-22 16:57:45 UTC (rev 287356)
@@ -112,7 +112,7 @@
     DECLARE_PROPERTY_CUSTOM_HANDLERS(WebkitMaskBoxImageRepeat);
     DECLARE_PROPERTY_CUSTOM_HANDLERS(WebkitMaskBoxImageSlice);
     DECLARE_PROPERTY_CUSTOM_HANDLERS(WebkitMaskBoxImageWidth);
-    DECLARE_PROPERTY_CUSTOM_HANDLERS(WebkitTextEmphasisStyle);
+    DECLARE_PROPERTY_CUSTOM_HANDLERS(TextEmphasisStyle);
     DECLARE_PROPERTY_CUSTOM_HANDLERS(Zoom);
 
     // Custom handling of initial + inherit value setting only.
@@ -1187,7 +1187,7 @@
     }
 }
 
-inline void BuilderCustom::applyInitialWebkitTextEmphasisStyle(BuilderState& builderState)
+inline void BuilderCustom::applyInitialTextEmphasisStyle(BuilderState& builderState)
 {
     builderState.style().setTextEmphasisFill(RenderStyle::initialTextEmphasisFill());
     builderState.style().setTextEmphasisMark(RenderStyle::initialTextEmphasisMark());
@@ -1194,7 +1194,7 @@
     builderState.style().setTextEmphasisCustomMark(RenderStyle::initialTextEmphasisCustomMark());
 }
 
-inline void BuilderCustom::applyInheritWebkitTextEmphasisStyle(BuilderState& builderState)
+inline void BuilderCustom::applyInheritTextEmphasisStyle(BuilderState& builderState)
 {
     builderState.style().setTextEmphasisFill(builderState.parentStyle().textEmphasisFill());
     builderState.style().setTextEmphasisMark(builderState.parentStyle().textEmphasisMark());
@@ -1287,7 +1287,7 @@
     return builderState.style().setContain(containment);
 }
 
-inline void BuilderCustom::applyValueWebkitTextEmphasisStyle(BuilderState& builderState, CSSValue& value)
+inline void BuilderCustom::applyValueTextEmphasisStyle(BuilderState& builderState, CSSValue& value)
 {
     if (is<CSSValueList>(value)) {
         auto& list = downcast<CSSValueList>(value);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to