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

Side by Side Diff: sky/engine/core/rendering/RenderLayerClipper.h

Issue 953673002: Delete RenderLayerModelObject. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 private: 71 private:
72 friend class RenderLayerClipper; 72 friend class RenderLayerClipper;
73 73
74 ClipRectsCacheSlot cacheSlot; 74 ClipRectsCacheSlot cacheSlot;
75 LayoutSize subPixelAccumulation; 75 LayoutSize subPixelAccumulation;
76 }; 76 };
77 77
78 class RenderLayerClipper { 78 class RenderLayerClipper {
79 WTF_MAKE_NONCOPYABLE(RenderLayerClipper); 79 WTF_MAKE_NONCOPYABLE(RenderLayerClipper);
80 public: 80 public:
81 explicit RenderLayerClipper(RenderLayerModelObject&); 81 explicit RenderLayerClipper(RenderBox&);
82 82
83 void clearClipRectsIncludingDescendants(); 83 void clearClipRectsIncludingDescendants();
84 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); 84 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot);
85 85
86 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of the layer in the document's coordinate space. 86 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of the layer in the document's coordinate space.
87 LayoutRect localClipRect() const; // Returns the background clip rect of the layer in the local coordinate space. 87 LayoutRect localClipRect() const; // Returns the background clip rect of the layer in the local coordinate space.
88 88
89 ClipRects* getClipRects(const ClipRectsContext&) const; 89 ClipRects* getClipRects(const ClipRectsContext&) const;
90 90
91 ClipRect backgroundClipRect(const ClipRectsContext&) const; 91 ClipRect backgroundClipRect(const ClipRectsContext&) const;
(...skipping 23 matching lines...) Expand all
115 RenderLayer* clippingRootForPainting() const; 115 RenderLayer* clippingRootForPainting() const;
116 116
117 ClipRectsCache& cache() const 117 ClipRectsCache& cache() const
118 { 118 {
119 if (!m_cache) 119 if (!m_cache)
120 m_cache = adoptPtr(new ClipRectsCache); 120 m_cache = adoptPtr(new ClipRectsCache);
121 return *m_cache; 121 return *m_cache;
122 } 122 }
123 123
124 // FIXME: Could this be a RenderBox? 124 // FIXME: Could this be a RenderBox?
125 RenderLayerModelObject& m_renderer; 125 RenderBox& m_renderer;
126 mutable OwnPtr<ClipRectsCache> m_cache; 126 mutable OwnPtr<ClipRectsCache> m_cache;
127 }; 127 };
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERCLIPPER_H_ 131 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERCLIPPER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698