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

Issue 1308693003: Ensure the text autosizer creates a root cluster when needed (Closed)

Created:
5 years, 4 months ago by pdr.
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Ensure the text autosizer creates a root cluster when needed The text autosizer demarcates certain nodes as "clusters" that autosize using a consistent font multiplier (see http://tinyurl.com/TextAutosizer for a full description). Clusters can nest forming a tree, and a root cluster is assumed to be available to all Nodes except the LayoutView. This patch fixes a bug where no root cluster was created by a LayoutView which contained LayoutObject children (in this case, a sole pagination anonymous block) but no Node children. A similar situation can occur with completely empty documents. Asserts & comments have been added to clarify the root cluster concept. BUG=521657 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201172

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address reviewer comments: cleanup test #

Patch Set 3 : Force a layout in the test #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
A LayoutTests/fast/text-autosizing/anonymous-block-crash.html View 1 2 1 chunk +13 lines, -0 lines 3 comments Download
A + LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/TextAutosizer.cpp View 4 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 39 (14 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/1308693003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/1
5 years, 4 months ago (2015-08-22 05:26:53 UTC) #2
pdr.
5 years, 4 months ago (2015-08-22 05:54:18 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-22 07:48:42 UTC) #6
mstensho (USE GERRIT)
I'm not familiar with the text autosizer, but this lgtm. https://codereview.chromium.org/1308693003/diff/1/LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html File LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html (right): https://codereview.chromium.org/1308693003/diff/1/LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html#newcode1 ...
5 years, 4 months ago (2015-08-24 10:55:10 UTC) #7
pdr.
https://codereview.chromium.org/1308693003/diff/1/LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html File LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html (right): https://codereview.chromium.org/1308693003/diff/1/LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html#newcode1 LayoutTests/fast/text-autosizing/anonymous-block-crash-expected.html:1: Test for crbug.com/521657: this test passes if it does ...
5 years, 4 months ago (2015-08-24 17:43:28 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 4 months ago (2015-08-24 17:43:47 UTC) #10
skobes
lgtm https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp File Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp#newcode156 Source/core/layout/TextAutosizer.cpp:156: if (node && !node->hasChildren() && !layoutObject->isLayoutView()) On 2015/08/24 ...
5 years, 4 months ago (2015-08-24 17:47:57 UTC) #11
mstensho (USE GERRIT)
https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp File Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp#newcode156 Source/core/layout/TextAutosizer.cpp:156: if (node && !node->hasChildren() && !layoutObject->isLayoutView()) On 2015/08/24 17:43:28, ...
5 years, 4 months ago (2015-08-24 17:51:50 UTC) #12
skobes
https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp File Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/1308693003/diff/1/Source/core/layout/TextAutosizer.cpp#newcode156 Source/core/layout/TextAutosizer.cpp:156: if (node && !node->hasChildren() && !layoutObject->isLayoutView()) On 2015/08/24 17:51:49, ...
5 years, 4 months ago (2015-08-24 17:57:37 UTC) #13
pdr.
Are folks okay with the latest patch?
5 years, 4 months ago (2015-08-24 18:20:29 UTC) #14
mstensho (USE GERRIT)
lgtm
5 years, 4 months ago (2015-08-24 18:24:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 4 months ago (2015-08-24 18:31:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/59883)
5 years, 4 months ago (2015-08-24 19:03:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 3 months ago (2015-08-25 16:00:42 UTC) #22
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 3 months ago (2015-08-25 16:00:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 3 months ago (2015-08-25 17:17:16 UTC) #26
pdr.
On 2015/08/25 at 16:00:45, commit-bot wrote: > No L-G-T-M from a valid reviewer yet. Only ...
5 years, 3 months ago (2015-08-25 17:18:12 UTC) #27
skobes
On 2015/08/25 17:18:12, pdr wrote: > On 2015/08/25 at 16:00:45, commit-bot wrote: > > No ...
5 years, 3 months ago (2015-08-25 17:19:42 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103991)
5 years, 3 months ago (2015-08-25 18:18:32 UTC) #30
skobes
On 2015/08/25 18:18:32, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 3 months ago (2015-08-25 18:20:45 UTC) #31
pdr.
On 2015/08/25 at 18:20:45, skobes wrote: > On 2015/08/25 18:18:32, commit-bot: I haz the power ...
5 years, 3 months ago (2015-08-25 18:31:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 3 months ago (2015-08-25 21:26:22 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/104198)
5 years, 3 months ago (2015-08-25 22:32:33 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308693003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308693003/40001
5 years, 3 months ago (2015-08-25 23:39:29 UTC) #38
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 00:16:03 UTC) #39
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201172

Powered by Google App Engine
This is Rietveld 408576698