-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSS] Unprefix text-decoration shorthand
https://bugs.webkit.org/show_bug.cgi?id=230083 rdar://83182835 Reviewed by NOBODY (OOPS!). Explanation of why this fixes the bug (OOPS!). * LayoutTests/TestExpectations: * LayoutTests/fast/css/getComputedStyle/getComputedStyle-text-decoration-expected.txt: * LayoutTests/fast/css/getComputedStyle/getComputedStyle-text-decoration.html: * LayoutTests/fast/css/style-enumerate-properties-expected.txt: * LayoutTests/fast/css/style-enumerate-properties.html: * LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt: * LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html: * LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-dashed.html: * LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-dotted-dashed.html: * LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-dotted.html: * LayoutTests/fast/events/input-events-paste-rich-datatransfer-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-shorthand-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/parsing/text-decoration-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-serialization.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/inserttext_2001-last-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/multitest_4001-5000-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/multitest_8001-9000-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/multitest_9001-last-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/strikethrough_2001-last-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/editing/run/underline_2001-last-expected.txt: * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::ComputedStyleExtractor::valueForPropertyInStyle const): (WebCore::ComputedStyleExtractor::textDecorationShorthandValue const): * Source/WebCore/css/ComputedStyleExtractor.h: * Source/WebCore/css/MutableStyleProperties.cpp: (WebCore::MutableStyleProperties::setProperty): * Source/WebCore/css/MutableStyleProperties.h: * Source/WebCore/css/ShorthandSerializer.cpp: (WebCore::ShorthandSerializer::serialize): * Source/WebCore/css/StyleProperties.cpp: (WebCore::canUseShorthandForLonghand): * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::parseShorthand): * Source/WebCore/editing/EditingStyle.cpp: (WebCore::HTMLTextDecorationEquivalent::HTMLTextDecorationEquivalent): (WebCore::EditingStyle::init): (WebCore::EditingStyle::styleWithResolvedTextDecorations const): (WebCore::EditingStyle::collapseTextDecorationProperties): (WebCore::EditingStyle::conflictsWithInlineStyleOfElement const): (WebCore::EditingStyle::mergeStyle): (WebCore::EditingStyle::removeEquivalentProperties): (WebCore::reconcileTextDecorationProperties): (WebCore::StyleChange::StyleChange): (WebCore::setTextDecorationProperty): (WebCore::StyleChange::extractTextStyles): (WebCore::diffTextDecorations): * Source/WebCore/editing/markup.cpp: (WebCore::serializePreservingVisualAppearanceInternal):
- Loading branch information
Showing
66 changed files
with
363 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/editing/pasteboard/preserve-underline-color-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
This test for a bug copy/pasting underlined text. The color of the underline should be the color of the element that has the text-decoration property. | ||
| <span> | ||
| style="caret-color: rgb(255, 0, 0); color: rgb(255, 0, 0); text-decoration: underline;" | ||
| style="caret-color: rgb(255, 0, 0); color: rgb(255, 0, 0); text-decoration-line: underline;" | ||
| "This should be underlined.<#selection-caret>" | ||
| <br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.