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

Unified Diff: Source/core/layout/LayoutLayerModelObject.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/LayerStackingNodeIterator.cpp ('k') | Source/core/layout/LayoutLayerModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutLayerModelObject.h
diff --git a/Source/core/rendering/RenderLayerModelObject.h b/Source/core/layout/LayoutLayerModelObject.h
similarity index 80%
rename from Source/core/rendering/RenderLayerModelObject.h
rename to Source/core/layout/LayoutLayerModelObject.h
index 25588284877933c07f73bdd14998d5708d365dc8..88224c53ad8f4ba8c1dca6b3484f8efb09f937e3 100644
--- a/Source/core/rendering/RenderLayerModelObject.h
+++ b/Source/core/layout/LayoutLayerModelObject.h
@@ -20,15 +20,15 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef RenderLayerModelObject_h
-#define RenderLayerModelObject_h
+#ifndef LayoutLayerModelObject_h
+#define LayoutLayerModelObject_h
#include "core/rendering/RenderObject.h"
namespace blink {
-class RenderLayer;
-class RenderLayerScrollableArea;
+class Layer;
+class LayerScrollableArea;
enum LayerType {
NoLayer,
@@ -39,17 +39,17 @@ enum LayerType {
ForcedLayer
};
-class RenderLayerModelObject : public RenderObject {
+class LayoutLayerModelObject : public RenderObject {
public:
- explicit RenderLayerModelObject(ContainerNode*);
- virtual ~RenderLayerModelObject();
+ explicit LayoutLayerModelObject(ContainerNode*);
+ virtual ~LayoutLayerModelObject();
// This is the only way layers should ever be destroyed.
void destroyLayer();
bool hasSelfPaintingLayer() const;
- RenderLayer* layer() const { return m_layer.get(); }
- RenderLayerScrollableArea* scrollableArea() const;
+ Layer* layer() const { return m_layer.get(); }
+ LayerScrollableArea* scrollableArea() const;
virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) override;
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
@@ -74,21 +74,21 @@ protected:
virtual void willBeDestroyed() override;
- virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer*, const LayoutPoint&, const LayoutRect&) const override;
+ virtual void addLayerHitTestRects(LayerHitTestRects&, const Layer*, const LayoutPoint&, const LayoutRect&) const override;
void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffset) const;
private:
- virtual bool isLayerModelObject() const override final { return true; }
+ virtual bool isLayoutLayerModelObject() const override final { return true; }
- OwnPtr<RenderLayer> m_layer;
+ OwnPtr<Layer> m_layer;
// Used to store state between styleWillChange and styleDidChange
static bool s_wasFloating;
};
-DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderLayerModelObject, isLayerModelObject());
+DEFINE_RENDER_OBJECT_TYPE_CASTS(LayoutLayerModelObject, isLayoutLayerModelObject());
} // namespace blink
-#endif // RenderLayerModelObject_h
+#endif // LayoutLayerModelObject_h
« no previous file with comments | « Source/core/layout/LayerStackingNodeIterator.cpp ('k') | Source/core/layout/LayoutLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698