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

Issue 218863002: [FastTextAutosizer] Fix the inline overlap issue. (Closed)

Created:
6 years, 8 months ago by pdr.
Modified:
6 years, 8 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, rune+blink
Visibility:
Public.

Description

[FastTextAutosizer] Fix the inline overlap issue. Inline renderers have preferred logical widths that end up depending on the autosizing font scale. This patch forces these preferred widths to be recomputed. This recomputation is not necessary for text in blocks because the block layout algorithm does not depend on the text width. The parent null check (renderer->parent()...) is for list markers which, interestingly, can not be in the render tree. This patch fixes rendering on many sites, including hacker news. BUG=338494 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170638

Patch Set 1 #

Total comments: 6

Patch Set 2 : Cleanup test #

Patch Set 3 : Move the pref width invalidation into inflate, add a test #

Patch Set 4 : Really move setPreferredLogicalWidthsDirty #

Patch Set 5 : Add fixme #

Patch Set 6 : update expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -0 lines) Patch
A LayoutTests/fast/text-autosizing/inline-width.html View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/inline-width-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/table-inline-width.html View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/fast/text-autosizing/table-inline-width-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
pdr.
Finally figured this one out!
6 years, 8 months ago (2014-03-31 01:25:46 UTC) #1
skobes
Very nice! https://codereview.chromium.org/218863002/diff/1/LayoutTests/fast/text-autosizing/inline-width.html File LayoutTests/fast/text-autosizing/inline-width.html (right): https://codereview.chromium.org/218863002/diff/1/LayoutTests/fast/text-autosizing/inline-width.html#newcode8 LayoutTests/fast/text-autosizing/inline-width.html:8: .inline { display: inline; font-weight: normal; font-style: ...
6 years, 8 months ago (2014-03-31 17:19:58 UTC) #2
pdr.
PTAL https://codereview.chromium.org/218863002/diff/1/LayoutTests/fast/text-autosizing/inline-width.html File LayoutTests/fast/text-autosizing/inline-width.html (right): https://codereview.chromium.org/218863002/diff/1/LayoutTests/fast/text-autosizing/inline-width.html#newcode8 LayoutTests/fast/text-autosizing/inline-width.html:8: .inline { display: inline; font-weight: normal; font-style: normal; ...
6 years, 8 months ago (2014-04-01 06:06:42 UTC) #3
skobes
LGTM On 2014/04/01 06:06:42, pdr wrote: > Because all children are walked, we can get ...
6 years, 8 months ago (2014-04-01 18:49:05 UTC) #4
pdr.
On 2014/04/01 18:49:05, skobes wrote: > LGTM > > On 2014/04/01 06:06:42, pdr wrote: > ...
6 years, 8 months ago (2014-04-01 22:27:12 UTC) #5
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 8 months ago (2014-04-01 22:27:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/218863002/80001
6 years, 8 months ago (2014-04-01 22:44:10 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 23:18:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-01 23:18:16 UTC) #9
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 8 months ago (2014-04-02 04:47:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/218863002/100001
6 years, 8 months ago (2014-04-02 04:47:27 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 06:20:40 UTC) #12
Message was sent while issue was closed.
Change committed as 170638

Powered by Google App Engine
This is Rietveld 408576698