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

Unified Diff: Source/core/layout/TextAutosizer.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 9 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 | « Source/core/layout/SubtreeLayoutScope.cpp ('k') | Source/core/layout/svg/LayoutSVGInlineText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/TextAutosizer.cpp
diff --git a/Source/core/layout/TextAutosizer.cpp b/Source/core/layout/TextAutosizer.cpp
index e1026e9de142606723c9c8757e16c4b9d254e816..0ddacbaadf4f32dcc1de1e985d18bedb7d38c5fa 100644
--- a/Source/core/layout/TextAutosizer.cpp
+++ b/Source/core/layout/TextAutosizer.cpp
@@ -582,7 +582,7 @@ void TextAutosizer::setAllTextNeedsLayout()
LayoutObject* renderer = m_document->layoutView();
while (renderer) {
if (renderer->isText())
- renderer->setNeedsLayoutAndFullPaintInvalidation();
+ renderer->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::TextAutosizing);
renderer = renderer->nextInPreOrder();
}
}
@@ -983,7 +983,7 @@ void TextAutosizer::applyMultiplier(LayoutObject* renderer, float multiplier, Re
m_stylesRetainedDuringLayout.append(&currentStyle);
renderer->setStyleInternal(style.release());
- renderer->setNeedsLayoutAndFullPaintInvalidation();
+ renderer->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::TextAutosizing);
break;
case LayoutNeeded:
« no previous file with comments | « Source/core/layout/SubtreeLayoutScope.cpp ('k') | Source/core/layout/svg/LayoutSVGInlineText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698