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

Unified Diff: Source/core/layout/LayerReflectionInfo.cpp

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/LayerReflectionInfo.h ('k') | Source/core/layout/LayerScrollableArea.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayerReflectionInfo.cpp
diff --git a/Source/core/rendering/RenderLayerReflectionInfo.cpp b/Source/core/layout/LayerReflectionInfo.cpp
similarity index 92%
rename from Source/core/rendering/RenderLayerReflectionInfo.cpp
rename to Source/core/layout/LayerReflectionInfo.cpp
index 483766273f299d5eca85aee7a81a66b3bdc5f4ec..25533ecfc9bce03120f2542e701bc231f6414cf4 100644
--- a/Source/core/rendering/RenderLayerReflectionInfo.cpp
+++ b/Source/core/layout/LayerReflectionInfo.cpp
@@ -42,11 +42,11 @@
*/
#include "config.h"
-#include "core/rendering/RenderLayerReflectionInfo.h"
+#include "core/layout/LayerReflectionInfo.h"
#include "core/frame/UseCounter.h"
+#include "core/layout/Layer.h"
#include "core/paint/LayerPainter.h"
-#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderReplica.h"
#include "core/rendering/style/RenderStyle.h"
#include "platform/transforms/ScaleTransformOperation.h"
@@ -56,7 +56,7 @@
namespace blink {
-RenderLayerReflectionInfo::RenderLayerReflectionInfo(RenderBox& renderer)
+LayerReflectionInfo::LayerReflectionInfo(RenderBox& renderer)
: m_box(&renderer)
, m_isPaintingInsideReflection(false)
{
@@ -66,7 +66,7 @@ RenderLayerReflectionInfo::RenderLayerReflectionInfo(RenderBox& renderer)
m_reflection->setParent(m_box); // We create a 1-way connection.
}
-void RenderLayerReflectionInfo::destroy()
+void LayerReflectionInfo::destroy()
{
if (!m_reflection->documentBeingDestroyed())
m_reflection->removeLayers(box().layer());
@@ -76,12 +76,12 @@ void RenderLayerReflectionInfo::destroy()
m_reflection = nullptr;
}
-RenderLayer* RenderLayerReflectionInfo::reflectionLayer() const
+Layer* LayerReflectionInfo::reflectionLayer() const
{
return m_reflection->layer();
}
-void RenderLayerReflectionInfo::updateAfterStyleChange(const RenderStyle* oldStyle)
+void LayerReflectionInfo::updateAfterStyleChange(const RenderStyle* oldStyle)
{
RefPtr<RenderStyle> newStyle = RenderStyle::create();
newStyle->inheritFrom(box().style());
@@ -129,7 +129,7 @@ void RenderLayerReflectionInfo::updateAfterStyleChange(const RenderStyle* oldSty
m_reflection->setStyle(newStyle.release());
}
-void RenderLayerReflectionInfo::paint(GraphicsContext* context, const LayerPaintingInfo& paintingInfo, PaintLayerFlags flags)
+void LayerReflectionInfo::paint(GraphicsContext* context, const LayerPaintingInfo& paintingInfo, PaintLayerFlags flags)
{
if (m_isPaintingInsideReflection)
return;
« no previous file with comments | « Source/core/layout/LayerReflectionInfo.h ('k') | Source/core/layout/LayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698