Support 'disclosure-open' and 'disclosure-closed' for 'list-style-type'
property * core/css, core/style, web_tests/external/wpt: Changes to recognize new keywords 'disclosure-open' and 'disclosure-closed'. * layout/layout_details_marker.*, layout/layout_tree_as_text.cc, paint/details_marker_painter.*: Changes to make DetailsMarkerPainter::GetCanonicalPath() static in order to share it with ListMarkerPainter. These files has no behavior changes. * paint/list_marker_painter.cc: Calls DetailsMarkerPainter::GetCanonicalPath() to get a Path, and draw it on |context|. * layout/list_marker.cc: Adjust the layout size for 'disclosure-*'. The size of 'circle', 'disc', 'square' is "ascent * 1 / 3", and it's too small for 'disclosure-*'. We apply "font_height * 2 / 3" instead, and it's same as the default size of ::-webkit-details-marker. * layout/list_marker_text.cc, wtf/text/character_names.h: Add text representations of 'disclosure-open' and 'disclosure-closed'. This CL adds a simple rendering test. A following CL will add more coverage. I2S: https://t.co/1a7z357RV9 Bug: 590014 Change-Id: I1acad5a102c7cfcc91101fca283fde32fefae06f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567548 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#833566}
Showing


