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

Side by Side Diff: Source/core/layout/LayerClipper.h

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/Layer.cpp ('k') | Source/core/layout/LayerClipper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 friend class LayerClipper; 89 friend class LayerClipper;
90 90
91 ClipRectsCacheSlot cacheSlot; 91 ClipRectsCacheSlot cacheSlot;
92 LayoutSize subPixelAccumulation; 92 LayoutSize subPixelAccumulation;
93 ShouldRespectOverflowClip respectOverflowClip; 93 ShouldRespectOverflowClip respectOverflowClip;
94 }; 94 };
95 95
96 class LayerClipper { 96 class LayerClipper {
97 WTF_MAKE_NONCOPYABLE(LayerClipper); 97 WTF_MAKE_NONCOPYABLE(LayerClipper);
98 public: 98 public:
99 explicit LayerClipper(LayoutLayerModelObject&); 99 explicit LayerClipper(LayoutBoxModelObject&);
100 100
101 void clearClipRectsIncludingDescendants(); 101 void clearClipRectsIncludingDescendants();
102 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot); 102 void clearClipRectsIncludingDescendants(ClipRectsCacheSlot);
103 103
104 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of the layer in the document's coordinate space. 104 LayoutRect childrenClipRect() const; // Returns the foreground clip rect of the layer in the document's coordinate space.
105 LayoutRect localClipRect() const; // Returns the background clip rect of the layer in the local coordinate space. 105 LayoutRect localClipRect() const; // Returns the background clip rect of the layer in the local coordinate space.
106 106
107 ClipRects* getClipRects(const ClipRectsContext&) const; 107 ClipRects* getClipRects(const ClipRectsContext&) const;
108 108
109 ClipRect backgroundClipRect(const ClipRectsContext&) const; 109 ClipRect backgroundClipRect(const ClipRectsContext&) const;
(...skipping 23 matching lines...) Expand all
133 Layer* clippingRootForPainting() const; 133 Layer* clippingRootForPainting() const;
134 134
135 ClipRectsCache& cache() const 135 ClipRectsCache& cache() const
136 { 136 {
137 if (!m_cache) 137 if (!m_cache)
138 m_cache = adoptPtr(new ClipRectsCache); 138 m_cache = adoptPtr(new ClipRectsCache);
139 return *m_cache; 139 return *m_cache;
140 } 140 }
141 141
142 // FIXME: Could this be a RenderBox? 142 // FIXME: Could this be a RenderBox?
143 LayoutLayerModelObject& m_renderer; 143 LayoutBoxModelObject& m_renderer;
144 mutable OwnPtr<ClipRectsCache> m_cache; 144 mutable OwnPtr<ClipRectsCache> m_cache;
145 }; 145 };
146 146
147 } // namespace blink 147 } // namespace blink
148 148
149 #endif // LayerClipper_h 149 #endif // LayerClipper_h
OLDNEW
« no previous file with comments | « Source/core/layout/Layer.cpp ('k') | Source/core/layout/LayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698