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

Unified Diff: Source/core/layout/LayoutFullScreen.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/LayoutFrameSet.cpp ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFullScreen.cpp
diff --git a/Source/core/layout/LayoutFullScreen.cpp b/Source/core/layout/LayoutFullScreen.cpp
index 32fe1fb189d26799dd582252d25f12ae10412a03..969b6f925613e4cadc4fa4b6a33ca2a93ffc7fa9 100644
--- a/Source/core/layout/LayoutFullScreen.cpp
+++ b/Source/core/layout/LayoutFullScreen.cpp
@@ -143,11 +143,11 @@ LayoutObject* LayoutFullScreen::wrapRenderer(LayoutObject* object, LayoutObject*
// Always just do a full layout to ensure that line boxes get deleted properly.
// Because objects moved from |parent| to |fullscreenRenderer|, we want to
// make new line boxes instead of leaving the old ones around.
- parent->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
- containingBlock->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ parent->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
+ containingBlock->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
}
fullscreenRenderer->addChild(object);
- fullscreenRenderer->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ fullscreenRenderer->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
}
ASSERT(document);
@@ -170,7 +170,7 @@ void LayoutFullScreen::unwrapRenderer()
toLayoutBox(child)->clearOverrideSize();
child->remove();
parent()->addChild(child, this);
- parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
}
}
if (placeholder())
@@ -196,7 +196,7 @@ void LayoutFullScreen::createPlaceholder(PassRefPtr<ComputedStyle> style, const
m_placeholder->setStyle(style);
if (parent()) {
parent()->addChild(m_placeholder, this);
- parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
}
} else {
m_placeholder->setStyle(style);
« no previous file with comments | « Source/core/layout/LayoutFrameSet.cpp ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698