-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSS Quotes] Some CSS properties cause quotes to be reset
https://bugs.webkit.org/show_bug.cgi?id=277154 rdar://132585704 Reviewed by Simon Fraser. Some RenderStyle setters trigger copy-on-write, so the copy constructors need to be accurate. In this case, quotes were not being copied over. To avoid future similar issues, add ASSERTs to the copy constructors for classes that RenderStyle directly refers too. * LayoutTests/fast/css/quotes-with-text-shadow-expected.html: Added. * LayoutTests/fast/css/quotes-with-text-shadow.html: Added. * Source/WebCore/rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setQuotes): Use arePointingToEqualData as it's easier to read and equivalent. * Source/WebCore/rendering/style/SVGRenderStyle.cpp: (WebCore::SVGRenderStyle::SVGRenderStyle): * Source/WebCore/rendering/style/StyleInheritedData.cpp: (WebCore::StyleInheritedData::StyleInheritedData): * Source/WebCore/rendering/style/StyleNonInheritedData.cpp: (WebCore::StyleNonInheritedData::StyleNonInheritedData): * Source/WebCore/rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): Canonical link: https://commits.webkit.org/281444@main
- Loading branch information
Showing
7 changed files
with
15 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span>start<span style="text-shadow: 2px 2px red">startend</span>end</span> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<style> | ||
q { | ||
quotes: "start" "end"; | ||
} | ||
</style><q><q style="text-shadow: 2px 2px red"></q></q> |
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
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