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

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

Issue 171843005: Avoid repainting non needs-self-layout container (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve the description of the test. 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.h
diff --git a/Source/core/rendering/LayoutRepainter.h b/Source/core/rendering/LayoutRepainter.h
index 55fdd1eb23a674d0d57b2bdff214b9d2d48d7d69..604001aa9ecb0be42c4acc92e96925a62e43b3f5 100644
--- a/Source/core/rendering/LayoutRepainter.h
+++ b/Source/core/rendering/LayoutRepainter.h
@@ -43,12 +43,17 @@ public:
bool repaintAfterLayout();
private:
+ bool canSkipRepaint() const;
+
RenderObject& m_object;
RenderLayerModelObject* m_repaintContainer;
// We store these values as LayoutRects, but the final invalidations will be pixel snapped
LayoutRect m_oldBounds;
LayoutRect m_oldOutlineBox;
bool m_checkForRepaint;
+
+ LayoutUnit m_oldLogicalWidth;
+ LayoutUnit m_oldLogicalHeight;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698