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

Unified Diff: Source/core/rendering/RenderBlock.cpp

Issue 264963004: Mark when we may have been invalidated to early out on repaintTreeAfterLayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/rendering/RenderBlock.cpp
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
index 66e6126d4009e68919bbc0b2771651602a68ec54..b697f22c4346be117bd16fc0042f3c669f306667 100644
--- a/Source/core/rendering/RenderBlock.cpp
+++ b/Source/core/rendering/RenderBlock.cpp
@@ -362,8 +362,13 @@ void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty
void RenderBlock::repaintTreeAfterLayout()
{
+ bool checkInvalidations = shouldCheckForInvalidations();
+
RenderBox::repaintTreeAfterLayout();
+ if (!checkInvalidations)
leviw_travelin_and_unemployed 2014/05/05 18:52:32 What does the call to RenderBox::repaintTreeAfterL
dsinclair 2014/05/05 19:38:26 Done.
+ return;
+
// Take care of positioned objects. This is required as LayoutState keeps a single clip rect.
if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects()) {
TrackedRendererListHashSet::iterator end = positionedObjects->end();

Powered by Google App Engine
This is Rietveld 408576698