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

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: 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/LayoutFlowThread.cpp ('k') | Source/core/layout/LayoutFullScreen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFrameSet.cpp
diff --git a/Source/core/layout/LayoutFrameSet.cpp b/Source/core/layout/LayoutFrameSet.cpp
index 38d555f99b760882c57c7f2389b208f048397998..cd3c4efb5e2a8c8e44157798e8498a882e1c22a0 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)
« no previous file with comments | « Source/core/layout/LayoutFlowThread.cpp ('k') | Source/core/layout/LayoutFullScreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698