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

Unified Diff: Source/core/rendering/FastTextAutosizer.cpp

Issue 236033005: [FastTextAutosizer] Do not inflate table parts that do not need layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix TestExpectations Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/virtual/fasttextautosizing/fast/text-autosizing/tables/nested-tables.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/FastTextAutosizer.cpp
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
index fa0076113f73d673e516d63b771ff539c2a8c0d2..55c73198ebd536bfbcf42976482ca08c61e3b9e1 100644
--- a/Source/core/rendering/FastTextAutosizer.cpp
+++ b/Source/core/rendering/FastTextAutosizer.cpp
@@ -389,7 +389,7 @@ void FastTextAutosizer::inflateTable(RenderTable* table)
if (!row->isTableRow())
continue;
for (RenderObject* cell = row->firstChild(); cell; cell = cell->nextSibling()) {
- if (!cell->isTableCell())
+ if (!cell->isTableCell() || !cell->needsLayout())
continue;
RenderTableCell* renderTableCell = toRenderTableCell(cell);
@@ -403,7 +403,7 @@ void FastTextAutosizer::inflateTable(RenderTable* table)
if (shouldAutosize) {
for (RenderObject* child = cell; child; child = child->nextInPreOrder(cell)) {
- if (child->isText()) {
+ if (child->isText() && child->needsLayout()) {
applyMultiplier(child, multiplier);
applyMultiplier(child->parent(), multiplier); // Parent handles line spacing.
}
« no previous file with comments | « LayoutTests/virtual/fasttextautosizing/fast/text-autosizing/tables/nested-tables.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698