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

Issue 2683553002: Fix not autosizing ruby elements issue. (Closed)

Created:
3 years, 10 months ago by cathiechentx
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix not autosizing ruby elements issue. RubyRun is inline-block. When inflate ruby, skip rubyRun and inflate all rubyRun's inner blocks. BUG=688561 Review-Url: https://codereview.chromium.org/2683553002 Cr-Commit-Position: refs/heads/master@{#450897} Committed: https://chromium.googlesource.com/chromium/src/+/082b073b26e5f408462e4fd1f229d7614ace4364

Patch Set 1 #

Patch Set 2 : delete unused include #

Total comments: 1

Patch Set 3 : update comments #

Total comments: 9

Patch Set 4 : add testcase and fix other issues #

Patch Set 5 : Use MarkContainerChain for setPreferredLogicalWidthsDirty, when we skipped inline-block before #

Total comments: 10

Patch Set 6 : add testcase resizeRubyPage #

Patch Set 7 : update testcase #

Total comments: 1

Patch Set 8 : 1. fix the dcheck fire when sreen ratated and add test case 2. format TextAutosizerTest #

Total comments: 4

Patch Set 9 : cr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -29 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutText.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 2 3 4 5 6 7 8 7 chunks +27 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp View 1 2 3 4 5 6 7 6 chunks +114 lines, -23 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
cathiechentx
https://codereview.chromium.org/2683553002/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2683553002/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode478 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:478: if (parent->isRuby()) { Cause ruby could be block or ...
3 years, 10 months ago (2017-02-07 08:35:54 UTC) #4
mstensho (USE GERRIT)
This CL lacks a test. https://codereview.chromium.org/2683553002/diff/40001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2683553002/diff/40001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode33 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:33: #include <memory> Shouldn't have ...
3 years, 10 months ago (2017-02-07 10:32:36 UTC) #6
pdr.
This also looks reasonable to me, but please add a unittest https://codereview.chromium.org/2683553002/diff/40001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): ...
3 years, 10 months ago (2017-02-08 04:45:33 UTC) #7
cathiechentx
Thanks for reviewing :) Almost done with the issues. But I just found the position ...
3 years, 10 months ago (2017-02-08 07:07:41 UTC) #8
pdr.
https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: if (!preferredLogicalWidthsDirty()) { I think this dcheck should still ...
3 years, 10 months ago (2017-02-10 04:10:46 UTC) #9
cathiechentx
https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: if (!preferredLogicalWidthsDirty()) { On 2017/02/10 04:10:46, pdr. wrote: > ...
3 years, 10 months ago (2017-02-10 05:17:48 UTC) #10
pdr.
https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: if (!preferredLogicalWidthsDirty()) { On 2017/02/10 at 05:17:47, cathiechentx wrote: ...
3 years, 10 months ago (2017-02-10 19:27:09 UTC) #11
cathiechentx
https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: if (!preferredLogicalWidthsDirty()) { On 2017/02/10 19:27:09, pdr. wrote: > ...
3 years, 10 months ago (2017-02-13 14:53:56 UTC) #12
cathiechentx
https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: if (!preferredLogicalWidthsDirty()) { On 2017/02/13 14:53:56, cathiechentx wrote: > ...
3 years, 10 months ago (2017-02-15 14:19:21 UTC) #13
skobes
lgtm Thanks, this looks reasonable. I agree with your analysis about m_knownToHaveNoOverflowAndNoFallbackFonts. https://codereview.chromium.org/2683553002/diff/140001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp ...
3 years, 10 months ago (2017-02-16 02:48:37 UTC) #14
cathiechentx
On 2017/02/16 02:48:37, skobes wrote: > lgtm > > Thanks, this looks reasonable. I agree ...
3 years, 10 months ago (2017-02-16 03:17:35 UTC) #15
cathiechentx
https://codereview.chromium.org/2683553002/diff/140001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2683553002/diff/140001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode1391 third_party/WebKit/Source/core/layout/LayoutText.cpp:1391: DCHECK(!m_knownToHaveNoOverflowAndNoFallbackFonts || On 2017/02/16 02:48:37, skobes wrote: > If ...
3 years, 10 months ago (2017-02-16 03:17:56 UTC) #16
skobes
On 2017/02/16 03:17:35, cathiechentx wrote: > After the change to autosize Ruby, the assert issue ...
3 years, 10 months ago (2017-02-16 03:50:24 UTC) #17
pdr.
On 2017/02/16 at 03:50:24, skobes wrote: > On 2017/02/16 03:17:35, cathiechentx wrote: > > After ...
3 years, 10 months ago (2017-02-16 04:10:21 UTC) #18
cathiechentx
On 2017/02/16 04:10:21, pdr. wrote: > On 2017/02/16 at 03:50:24, skobes wrote: > > On ...
3 years, 10 months ago (2017-02-16 04:12:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2683553002/160001
3 years, 10 months ago (2017-02-16 04:13:14 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on ...
3 years, 10 months ago (2017-02-16 06:15:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2683553002/160001
3 years, 10 months ago (2017-02-16 06:26:40 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 08:31:24 UTC) #28
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/082b073b26e5f408462e4fd1f229...

Powered by Google App Engine
This is Rietveld 408576698