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

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: Created 6 years, 10 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 | « no previous file | Source/core/rendering/LayoutRepainter.cpp » ('j') | Source/core/rendering/LayoutRepainter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/LayoutRepainter.h
diff --git a/Source/core/rendering/LayoutRepainter.h b/Source/core/rendering/LayoutRepainter.h
index 55fdd1eb23a674d0d57b2bdff214b9d2d48d7d69..aa8138f024801c716a09759dbd7733ade811a3b2 100644
--- a/Source/core/rendering/LayoutRepainter.h
+++ b/Source/core/rendering/LayoutRepainter.h
@@ -30,6 +30,7 @@
namespace WebCore {
+class RenderBox;
class RenderLayerModelObject;
class RenderObject;
@@ -43,12 +44,18 @@ 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_logicalWidth;
+ LayoutUnit m_logicalHeight;
+ bool m_selfNeededLayout;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/rendering/LayoutRepainter.cpp » ('j') | Source/core/rendering/LayoutRepainter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698