-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Paint disclosure-* list markers as images even in counter()
Counters with disclosure-open and disclosure-closed list markers should be sensitive to text direction and writing-mode. So we should paint them as images. https://w3c.github.io/csswg-drafts/css-counter-styles/#simple-symbolic > When used in list-style-type, a UA may instead render these styles > using a UA-generated image or a UA-chosen font instead of rendering > the specified character in the element’s own font. If using an image, > it must look similar to the character, and must be sized to > attractively fill a 1em by 1em square. > > For the disclosure-open and disclosure-closed counter styles, the > marker must be an image or character suitable for indicating the open > and closed states of a disclosure widget, such as HTML’s details > element. * NGInlineNode: - CollectInlinesInternal(): Call SetIsSymbolMarker() for disclosure-* counters - ShapeText(): Support for IsSymbolMaker() with LayoutCounter * ListMarkerPainter and NGTextFragmentPainter: Support for symbol markers with LayoutCounter * ListMarker::RelativeSymbolMarkerRect() and WidthOfSymbol(): Add list-style argument to support LayoutCounter The new behavior matches to Firefox. Bug: 1176195 Change-Id: Ic24e0bd50166a2a50c6970ecd63d6ed0aa0fb916 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3709517 Reviewed-by: Koji Ishii <kojii@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1085290}
- Loading branch information
1 parent
f23334b
commit 7abba76
Showing
14 changed files
with
233 additions
and
35 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
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
Oops, something went wrong.