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

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

Issue 204843002: Reduce invalidation on children-needs-layout containers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/rendering/LayoutRepainter.cpp
diff --git a/Source/core/rendering/LayoutRepainter.cpp b/Source/core/rendering/LayoutRepainter.cpp
index 0e1f7791ce75f65c0d9aed0d2a2077bdb2f42991..2aebd1a7ddfe357ac1fefcabf612db53a1beaa93 100644
--- a/Source/core/rendering/LayoutRepainter.cpp
+++ b/Source/core/rendering/LayoutRepainter.cpp
@@ -55,6 +55,9 @@ bool LayoutRepainter::repaintAfterLayout()
if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
return false;
+ if (!m_object.needsLayoutBecauseOfChildren() && m_object.hasNothingToPaint())
leviw_travelin_and_unemployed 2014/03/19 17:47:32 Why bother with the hasNothingToPaint bitfield ins
Julien - ping for review 2014/03/20 01:30:33 Very good point, sir! Changed.
+ return false;
+
// Hits in compositing/video/video-controls-layer-creation.html
DisableCompositingQueryAsserts disabler;
« no previous file with comments | « LayoutTests/platform/win/fast/repaint/table-collapsed-border-expected.txt ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698