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

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

Issue 160903002: Move RenderLayer repainting to repaint-after-layout framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
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
Index: Source/core/rendering/RenderView.h
diff --git a/Source/core/rendering/RenderView.h b/Source/core/rendering/RenderView.h
index d7be0bf07ff373b1f5c2b6e9359ab205427f90bc..0fb0fd014fd18424965dbde55970c1929afe3f09 100644
--- a/Source/core/rendering/RenderView.h
+++ b/Source/core/rendering/RenderView.h
@@ -35,6 +35,12 @@ class FlowThreadController;
class RenderLayerCompositor;
class RenderQuote;
+struct OutlineRectInfo {
+ LayoutRect oldOutlineRect;
+ LayoutRect newOutlineRect;
+};
+typedef HashMap<RenderObject*, OutlineRectInfo> OutlineRects;
+
// The root of the render tree, corresponding to the CSS initial containing block.
// It's dimensions match that of the logical viewport (which may be different from
// the visible viewport in fixed-layout mode), and it is always at position (0,0)
@@ -209,6 +215,8 @@ public:
void disableLayoutState() { m_layoutStateDisableCount++; }
void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutStateDisableCount--; }
+ OutlineRects* outlineRects() { return &m_outlineRects; }
+
private:
virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
@@ -273,6 +281,8 @@ private:
RenderQuote* m_renderQuoteHead;
unsigned m_renderCounterCount;
+
+ OutlineRects m_outlineRects;
};
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView());
« Source/core/rendering/RenderObject.cpp ('K') | « Source/core/rendering/RenderObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698