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

Unified Diff: Source/core/layout/LayerClipper.h

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/Layer.cpp ('k') | Source/core/layout/LayerClipper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayerClipper.h
diff --git a/Source/core/rendering/RenderLayerClipper.h b/Source/core/layout/LayerClipper.h
similarity index 89%
rename from Source/core/rendering/RenderLayerClipper.h
rename to Source/core/layout/LayerClipper.h
index 00d5b1f85e3fd1df22ea7957a90163c71bb126b8..103d984d37f5d7b6238da476060c4e5dca0f01f8 100644
--- a/Source/core/rendering/RenderLayerClipper.h
+++ b/Source/core/layout/LayerClipper.h
@@ -42,15 +42,15 @@
* version of this file under any of the LGPL, the MPL or the GPL.
*/
-#ifndef RenderLayerClipper_h
-#define RenderLayerClipper_h
+#ifndef LayerClipper_h
+#define LayerClipper_h
#include "core/rendering/ClipRectsCache.h"
#include "core/rendering/RenderBox.h"
namespace blink {
-class RenderLayer;
+class Layer;
enum ShouldRespectOverflowClip {
IgnoreOverflowClip,
@@ -59,7 +59,7 @@ enum ShouldRespectOverflowClip {
class ClipRectsContext {
public:
- ClipRectsContext(const RenderLayer* root, ClipRectsCacheSlot slot, OverlayScrollbarSizeRelevancy relevancy = IgnoreOverlayScrollbarSize, const LayoutSize& accumulation = LayoutSize())
+ ClipRectsContext(const Layer* root, ClipRectsCacheSlot slot, OverlayScrollbarSizeRelevancy relevancy = IgnoreOverlayScrollbarSize, const LayoutSize& accumulation = LayoutSize())
: rootLayer(root)
, scrollbarRelevancy(relevancy)
, cacheSlot(slot)
@@ -82,21 +82,21 @@ public:
return cacheSlot != UncachedClipRects;
}
- const RenderLayer* const rootLayer;
+ const Layer* const rootLayer;
const OverlayScrollbarSizeRelevancy scrollbarRelevancy;
private:
- friend class RenderLayerClipper;
+ friend class LayerClipper;
ClipRectsCacheSlot cacheSlot;
LayoutSize subPixelAccumulation;
ShouldRespectOverflowClip respectOverflowClip;
};
-class RenderLayerClipper {
- WTF_MAKE_NONCOPYABLE(RenderLayerClipper);
+class LayerClipper {
+ WTF_MAKE_NONCOPYABLE(LayerClipper);
public:
- explicit RenderLayerClipper(RenderLayerModelObject&);
+ explicit LayerClipper(LayoutLayerModelObject&);
void clearClipRectsIncludingDescendants();
void clearClipRectsIncludingDescendants(ClipRectsCacheSlot);
@@ -130,7 +130,7 @@ private:
void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const;
- RenderLayer* clippingRootForPainting() const;
+ Layer* clippingRootForPainting() const;
ClipRectsCache& cache() const
{
@@ -140,10 +140,10 @@ private:
}
// FIXME: Could this be a RenderBox?
- RenderLayerModelObject& m_renderer;
+ LayoutLayerModelObject& m_renderer;
mutable OwnPtr<ClipRectsCache> m_cache;
};
} // namespace blink
-#endif // RenderLayerClipper_h
+#endif // LayerClipper_h
« 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