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

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 5b27fcc0feb3bf8790289c54e209d3d4ba2bfe36..2d353410f458e82caf14f39257b638eb605c70a3 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)
@@ -207,6 +213,8 @@ public:
void disableLayoutState() { m_layoutStateDisableCount++; }
void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutStateDisableCount--; }
+ OutlineRects* outlineRects() { return &m_outlineRects; }
Julien - ping for review 2014/03/04 18:22:10 It really seems like it should be a reference as t
dsinclair 2014/03/04 19:21:52 Changed the return to be a reference. I didn't cha
+
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;
@@ -271,6 +279,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