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

Unified Diff: Source/core/layout/LayoutFrameSet.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/LayoutFrameSet.cpp
diff --git a/Source/core/layout/LayoutFrameSet.cpp b/Source/core/layout/LayoutFrameSet.cpp
index 72a1a1cf1fa1639ec5fc832d85411ace8be01ee4..5412da3392803cdd4c53109e410e020e980daedf 100644
--- a/Source/core/layout/LayoutFrameSet.cpp
+++ b/Source/core/layout/LayoutFrameSet.cpp
@@ -421,7 +421,7 @@ void LayoutFrameSet::positionFrames()
// has to be resized and itself resize its contents
if (size != child->size()) {
child->setSize(size);
- child->setNeedsLayoutAndFullPaintInvalidation();
+ child->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SizeChanged);
child->layout();
}
@@ -461,7 +461,7 @@ void LayoutFrameSet::continueResizing(GridAxis& axis, int position)
return;
axis.m_deltas[axis.m_splitBeingResized - 1] += delta;
axis.m_deltas[axis.m_splitBeingResized] -= delta;
- setNeedsLayoutAndFullPaintInvalidation();
+ setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::SizeChanged);
}
bool LayoutFrameSet::userResize(MouseEvent* evt)

Powered by Google App Engine
This is Rietveld 408576698