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

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: 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
Index: Source/core/layout/TextAutosizer.cpp
diff --git a/Source/core/layout/TextAutosizer.cpp b/Source/core/layout/TextAutosizer.cpp
index ffa92f2e2017fae2f753b4afb00c13d7ad2e518b..9291692765f51d0e88fddee52ea52c7c86103ea1 100644
--- a/Source/core/layout/TextAutosizer.cpp
+++ b/Source/core/layout/TextAutosizer.cpp
@@ -584,7 +584,7 @@ void TextAutosizer::setAllTextNeedsLayout()
LayoutObject* renderer = m_document->layoutView();
while (renderer) {
if (renderer->isText())
- renderer->setNeedsLayoutAndFullPaintInvalidation();
+ renderer->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::TextAutosizing);
renderer = renderer->nextInPreOrder();
}
}
@@ -985,7 +985,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:

Powered by Google App Engine
This is Rietveld 408576698