[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 Review URL: https://codereview.chromium.org/235943003 git-svn-id: svn://svn.chromium.org/blink/trunk@171420 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment