|
|
Chromium Code Reviews
DescriptionFix gap for "text-underline-position:under"
This patch fixes the gap for "under" to match to the spec and to the use
cases.
Unlike Roman baseline, "under" position is at the bottom of em-box. It
should not be offset by the gap.
To avoid computing the gap for "under", roman baseline is extracted to a
separate function |computeUnderlineOffsetForRoman|.
BUG=677240
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2643293004
Cr-Commit-Position: refs/heads/master@{#447345}
Committed: https://chromium.googlesource.com/chromium/src/+/eb6c3ce7ce15059e6411b8b018df85b2dbf0e18d
Patch Set 1 #Patch Set 2 : Fix comments #Patch Set 3 : Rebase #
Total comments: 1
Patch Set 4 : Resolved merge conflict #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 39 (28 generated)
Description was changed from ========== ul-gap BUG= ========== to ========== ul-gap BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
The CQ bit was checked by kojii@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== ul-gap BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec nor to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
kojii@chromium.org changed reviewers: + drott@chromium.org
PTAL. Split the "gap" fix.
The CQ bit was checked by kojii@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec nor to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec nor to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. To avoid computing the gap for "under", roman baseline is extracted to a separate function |computeUnderlineOffsetForRoman|. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by kojii@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Mostly looks good, one question regarding alternative values, and could you please clarify/elaborate on this part of the commit msg: "This patch fixes the gap for "under" to match to the spec nor to the use cases." What do you meany by "to match to the spec nor to the use cases." Do you mean "to neither match the spec nor the use cases?" Thanks! https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:108: default: Do we parse other values than Auto and Under in CSSPropertyParser?
Description was changed from ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec nor to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. To avoid computing the gap for "under", roman baseline is extracted to a separate function |computeUnderlineOffsetForRoman|. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec and to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. To avoid computing the gap for "under", roman baseline is extracted to a separate function |computeUnderlineOffsetForRoman|. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
On 2017/01/23 at 08:20:23, drott wrote: > Mostly looks good, one question regarding alternative values, and could you please clarify/elaborate on this part of the commit msg: > > "This patch fixes the gap for "under" to match to the spec nor to the use > cases." > > What do you meany by "to match to the spec nor to the use > cases." Do you mean "to neither match the spec nor the use cases?" s/nor/and/, spec has some ambiguities, filled in UA-defined behavior from the use case. Does this make sense? > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): > > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:108: default: > Do we parse other values than Auto and Under in CSSPropertyParser? I can't add them yet, there are still open issues in github. I'll work on it once WG solves issues and other impls reach consensus.
On 2017/01/23 at 09:04:46, kojii wrote: > On 2017/01/23 at 08:20:23, drott wrote: > > Mostly looks good, one question regarding alternative values, and could you please clarify/elaborate on this part of the commit msg: > > > > "This patch fixes the gap for "under" to match to the spec nor to the use > > cases." > > > > What do you meany by "to match to the spec nor to the use > > cases." Do you mean "to neither match the spec nor the use cases?" > > s/nor/and/, spec has some ambiguities, filled in UA-defined behavior from the use case. Does this make sense? It makes more sense, although now I don't understand what you mean by: "filled in UA-defined behavior from the use case". > > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > > File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): > > > > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > > third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:108: default: > > Do we parse other values than Auto and Under in CSSPropertyParser? > > I can't add them yet, there are still open issues in github. I'll work on it once WG solves issues and other impls reach consensus. No rush with that, the direction of my question was mainly that only if we parse them, we could get to the NOTREACHED() here. So I am assuming you meant: No, we don't parse them? If that's the case: LGTM. Otherwise, they should either be removed from parsing, or the NOTREACHED should be softened into a default: break or so. Thanks for the clarification - as mentioned, LGTM.
On 2017/01/23 at 10:29:42, drott wrote: > On 2017/01/23 at 09:04:46, kojii wrote: > > On 2017/01/23 at 08:20:23, drott wrote: > > > Mostly looks good, one question regarding alternative values, and could you please clarify/elaborate on this part of the commit msg: > > > > > > "This patch fixes the gap for "under" to match to the spec nor to the use > > > cases." > > > > > > What do you meany by "to match to the spec nor to the use > > > cases." Do you mean "to neither match the spec nor the use cases?" > > > > s/nor/and/, spec has some ambiguities, filled in UA-defined behavior from the use case. Does this make sense? > > It makes more sense, although now I don't understand what you mean by: "filled in UA-defined behavior from the use case". The spec defines "under the element’s text content", and doesn't define whether to add a gap or not, for both "under" and "auto". For CJK use case, gap is undesired, so removing gap matches to the use case better. Sorry my word choice often looks not good ;( > > > > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > > > File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): > > > > > > https://codereview.chromium.org/2643293004/diff/40001/third_party/WebKit/Sour... > > > third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:108: default: > > > Do we parse other values than Auto and Under in CSSPropertyParser? > > > > I can't add them yet, there are still open issues in github. I'll work on it once WG solves issues and other impls reach consensus. > > No rush with that, the direction of my question was mainly that only if we parse them, we could get to the NOTREACHED() here. So I am assuming you meant: No, we don't parse them? If that's the case: LGTM. Otherwise, they should either be removed from parsing, or the NOTREACHED should be softened into a default: break or so. Yes, that's the case. Syntax is also on the discussion, so I'd like not to parse until the discussion is settled down.
kojii@chromium.org changed reviewers: + eae@chromium.org
eae@, PTAL.
On 2017/01/23 at 10:35:12, kojii wrote: > On 2017/01/23 at 10:29:42, drott wrote: > > On 2017/01/23 at 09:04:46, kojii wrote: > > > On 2017/01/23 at 08:20:23, drott wrote: > > > > Mostly looks good, one question regarding alternative values, and could you please clarify/elaborate on this part of the commit msg: > > > > > > > > "This patch fixes the gap for "under" to match to the spec nor to the use > > > > cases." > > > > > > > > What do you meany by "to match to the spec nor to the use > > > > cases." Do you mean "to neither match the spec nor the use cases?" > > > > > > s/nor/and/, spec has some ambiguities, filled in UA-defined behavior from the use case. Does this make sense? > > > > It makes more sense, although now I don't understand what you mean by: "filled in UA-defined behavior from the use case". > > The spec defines "under the element’s text content", and doesn't define whether to add a gap or not, for both "under" and "auto". For CJK use case, gap is undesired, so removing gap matches to the use case better. Sorry my word choice often looks not good ;( Thanks, got it now, I just needed a bit more background to understand.
The CQ bit was checked by kojii@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
eae@, PTAL (sorry many similar ones in a row)
The CQ bit was checked by kojii@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
LGTM!
The CQ bit was checked by kojii@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from drott@chromium.org Link to the patchset: https://codereview.chromium.org/2643293004/#ps60001 (title: "Resolved merge conflict")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1485891131387990,
"parent_rev": "e4e4b0140002c58d760bf8d9f3fcfd7d29343486", "commit_rev":
"eb6c3ce7ce15059e6411b8b018df85b2dbf0e18d"}
Message was sent while issue was closed.
Description was changed from ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec and to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. To avoid computing the gap for "under", roman baseline is extracted to a separate function |computeUnderlineOffsetForRoman|. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Fix gap for "text-underline-position:under" This patch fixes the gap for "under" to match to the spec and to the use cases. Unlike Roman baseline, "under" position is at the bottom of em-box. It should not be offset by the gap. To avoid computing the gap for "under", roman baseline is extracted to a separate function |computeUnderlineOffsetForRoman|. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2643293004 Cr-Commit-Position: refs/heads/master@{#447345} Committed: https://chromium.googlesource.com/chromium/src/+/eb6c3ce7ce15059e6411b8b018df... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/eb6c3ce7ce15059e6411b8b018df... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
