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

Issue 319013003: Set multiplier to 1 on blocks with no direct text children. (Closed)

Created:
6 years, 6 months ago by skobes
Modified:
6 years, 6 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Set multiplier to 1 on blocks with no direct text children. This fixes cases where a node that previously had a >1 multiplier ceases to have direct text children. This can happen if its text content is removed in script, or if its 'display' style is changed from inline to block. (There are probably other ways for it to happen also.) Previously such a node would have a "stale" multiplier, since the autosizer only updated multipliers on text nodes and their immediate parents. In theory the stale multiplier should not have affected the rendering, but: - it is observable through the lineHeight property, and - due to http://crbug.com/380903 the stale multiplier on an ancestor might be used to render text, even when the text node has the correct multiplier BUG=378959 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175603

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -17 lines) Patch
A LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html View 1 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/display-type-change-lineHeight-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/text-removal.html View 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/text-removal-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/FastTextAutosizer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 2 chunks +28 lines, -16 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
skobes
6 years, 6 months ago (2014-06-05 19:33:08 UTC) #1
pdr.
This is clever! I like this patch. https://codereview.chromium.org/319013003/diff/20001/LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html File LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html (right): https://codereview.chromium.org/319013003/diff/20001/LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html#newcode22 LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html:22: <div id="ddd"> ...
6 years, 6 months ago (2014-06-05 20:13:49 UTC) #2
skobes
https://codereview.chromium.org/319013003/diff/20001/LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html File LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html (right): https://codereview.chromium.org/319013003/diff/20001/LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html#newcode22 LayoutTests/fast/text-autosizing/display-type-change-lineHeight.html:22: <div id="ddd"> On 2014/06/05 20:13:49, pdr wrote: > Remove ...
6 years, 6 months ago (2014-06-05 21:19:20 UTC) #3
pdr.
> https://codereview.chromium.org/319013003/diff/20001/Source/core/rendering/FastTextAutosizer.cpp#newcode456 > Source/core/rendering/FastTextAutosizer.cpp:456: if (parent->isRenderBlock() && > parent->childrenInline()) > On 2014/06/05 20:13:49, pdr wrote: ...
6 years, 6 months ago (2014-06-05 21:52:21 UTC) #4
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-05 21:52:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/319013003/40001
6 years, 6 months ago (2014-06-05 21:53:06 UTC) #6
pdr.
Please add a little more to the change description before landing.
6 years, 6 months ago (2014-06-05 21:53:32 UTC) #7
skobes
The CQ bit was unchecked by skobes@chromium.org
6 years, 6 months ago (2014-06-05 21:54:58 UTC) #8
skobes
On 2014/06/05 21:53:32, pdr wrote: > Please add a little more to the change description ...
6 years, 6 months ago (2014-06-05 22:03:28 UTC) #9
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-05 22:03:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/319013003/40001
6 years, 6 months ago (2014-06-05 22:04:11 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-05 23:06:24 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 23:06:45 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/14515)
6 years, 6 months ago (2014-06-05 23:06:45 UTC) #14
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-06 00:17:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/319013003/40001
6 years, 6 months ago (2014-06-06 00:17:26 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 00:18:55 UTC) #17
Message was sent while issue was closed.
Change committed as 175603

Powered by Google App Engine
This is Rietveld 408576698