Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Issue 1403643002: Rework list marker spacing for better web compatibility. (Closed)

Created:
5 years, 2 months ago by wkorman
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@472084_use_list_item_painter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rework list marker spacing for better web compatibility. - Revise spacing between list marker and list item text to position marker directly alongside text. This essentially leads to rendering the marker text a bit farther to the right (for LTR) or left (for RTL), which is more compatible with what we see in IE/FF. Previously we applied varying logic that led to a larger space, typically ~several font-space-width in width, between marker and item text. Our deviance from other browser behavior is what led to the associated bug wherein web developer was surprised that, only in Chrome, marker text was cut off by overflow: hidden. - Only highlight selected list markers when SelectionPaintingWithoutSelectionGaps is disabled. Note even prior to this change the text of the first list marker could never be selected. - Introduce implementation-internal notion of list style 'category' to reduce redundant verbose switch statements. - Render 'symbol' list style (disc, square, circle) markers by just rendering their associated marker text character. Previously we painted the symbols with appropriate graphics calls. This leads to a slightly different look for the symbol bullets (in default font, for example, smaller). This simplifies layout and paint logic. BUG=472084

Patch Set 1 #

Patch Set 2 : Simplify verbose switch statements. #

Patch Set 3 : Remove fprintf. #

Patch Set 4 : Sync to head. #

Patch Set 5 : Fix compile error with default switch case. #

Total comments: 10

Patch Set 6 : Integrate feedback, update tests. #

Patch Set 7 : Remove unused context configuration. Add initial set of test expectations. #

Patch Set 8 : More updated expectations. #

Messages

Total messages: 17 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403643002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403643002/1
5 years, 2 months ago (2015-10-10 06:20:18 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/124952)
5 years, 2 months ago (2015-10-10 08:10:29 UTC) #4
wkorman
Seeking initial feedback. I want to make sure I'm not doing anything fundamentally untoward. Still ...
5 years, 2 months ago (2015-10-12 02:49:58 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403643002/20002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403643002/20002
5 years, 2 months ago (2015-10-12 03:00:53 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/126211)
5 years, 2 months ago (2015-10-12 03:12:23 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403643002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403643002/70001
5 years, 2 months ago (2015-10-12 03:33:52 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/119130)
5 years, 2 months ago (2015-10-12 04:38:09 UTC) #14
eae
I like it! If we use text to draw the list markers it should be ...
5 years, 2 months ago (2015-10-12 06:02:01 UTC) #15
wkorman
Finishing up test expectation rebaseline review now. Seeking your feedback on a few tests, reference ...
5 years, 2 months ago (2015-10-14 01:55:31 UTC) #16
wkorman
5 years, 2 months ago (2015-10-14 05:44:02 UTC) #17
I'm breaking this apart into smaller changes, several already mailed to eae@.
Will explore keeping the painted symbols. It seems pretty deviant to abandon
them now that I've looked more closely at FF behavior. If you feel strongly
otherwise let me know. See my previous note on this change for more detail.

Powered by Google App Engine
This is Rietveld 408576698