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

Issue 235943003: [FastTextAutosizer] Do not pre-inflate nested tables (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, pdr., rune+blink
Visibility:
Public.

Description

[FastTextAutosizer] Do not pre-inflate nested tables Instead of pre-inflating all children in inflateTable(), this patch only pre-inflates non-table children. This fixes a bug where nested tables had their cell widths inflated with their parent table's multiplier but ended up not being inflated at all--leading to extra wide cells. This fixes a bug on codereview.chromium.org where people's names would have extra space around them (http://pr.gg/tablewidth.png). There is the potential for regressions with this change if a table has enough text to autosize but where the width ends up being less than 100% of the containing <td>. The real world impact script showed no changes on the top 100 websites and hackernews (the canonical nested- table mess) renders fine after this change. BUG=362930 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171420

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -19 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/platform/mac/virtual/fasttextautosizing/fast/text-autosizing/tables/nested-table-wrapping-expected.png View Binary file 0 comments Download
A + LayoutTests/virtual/fasttextautosizing/fast/text-autosizing/tables/nested-table-wrapping.html View 1 chunk +9 lines, -15 lines 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 chunk +11 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pdr.
6 years, 8 months ago (2014-04-13 21:47:40 UTC) #1
skobes
lgtm
6 years, 8 months ago (2014-04-14 04:07:58 UTC) #2
pdr
The CQ bit was checked by pdr@google.com
6 years, 8 months ago (2014-04-14 04:09:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/235943003/1
6 years, 8 months ago (2014-04-14 04:09:51 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 05:15:55 UTC) #5
Message was sent while issue was closed.
Change committed as 171420

Powered by Google App Engine
This is Rietveld 408576698