Index: Source/core/paint/ClipRecorder.h |
diff --git a/Source/core/paint/ClipRecorder.h b/Source/core/paint/ClipRecorder.h |
index 3dfe3725f506b6f492f5944ba53aebd018e874cc..4fd370ab13452b7bc667c25a0b751a9f4df34349 100644 |
--- a/Source/core/paint/ClipRecorder.h |
+++ b/Source/core/paint/ClipRecorder.h |
@@ -19,7 +19,7 @@ class RenderLayer; |
class ClipDisplayItem : public DisplayItem { |
public: |
- ClipDisplayItem(RenderObject* renderer, RenderLayer*, Type type, IntRect clipRect) |
+ ClipDisplayItem(const RenderObject* renderer, RenderLayer*, Type type, IntRect clipRect) |
leviw_travelin_and_unemployed
2014/11/13 01:46:40
This should be a RenderLayerModelObject.
pdr.
2014/11/13 06:49:29
Done
|
: DisplayItem(renderer, type), m_clipRect(clipRect) { } |
Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; } |
@@ -36,7 +36,7 @@ private: |
class EndClipDisplayItem : public DisplayItem { |
public: |
- EndClipDisplayItem() : DisplayItem(0, EndClip) { } |
+ EndClipDisplayItem(const RenderObject* renderer) : DisplayItem(renderer, EndClip) { } |
private: |
virtual void replay(GraphicsContext*) override; |
@@ -44,7 +44,7 @@ private: |
class ClipRecorder { |
public: |
- explicit ClipRecorder(RenderLayer*, GraphicsContext*, DisplayItem::Type, const ClipRect&); |
+ explicit ClipRecorder(const RenderObject*, RenderLayer*, GraphicsContext*, DisplayItem::Type, const ClipRect&); |
void addRoundedRectClip(const RoundedRect&); |
~ClipRecorder(); |
@@ -53,6 +53,7 @@ private: |
ClipDisplayItem* m_clipDisplayItem; |
GraphicsContext* m_graphicsContext; |
RenderLayer* m_renderLayer; |
leviw_travelin_and_unemployed
2014/11/13 01:46:40
We can kill the RenderLayer member, no?
pdr.
2014/11/13 06:49:29
R.I.P. RenderLayer member.
|
+ const RenderObject* m_renderer; |
}; |
} // namespace blink |