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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceClipper.h

Issue 908243002: Move rendering/svg/RenderSVGResource* to layout/svg. (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/LayerFilterInfo.cpp ('k') | Source/core/layout/svg/LayoutSVGResourceClipper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceClipper.h
diff --git a/Source/core/rendering/svg/RenderSVGResourceClipper.h b/Source/core/layout/svg/LayoutSVGResourceClipper.h
similarity index 82%
rename from Source/core/rendering/svg/RenderSVGResourceClipper.h
rename to Source/core/layout/svg/LayoutSVGResourceClipper.h
index 911ab35283f30cbb0d0acd3129e841344d7b22a2..c00a5c688e06b3e887c880cb4393f31b40e9da43 100644
--- a/Source/core/rendering/svg/RenderSVGResourceClipper.h
+++ b/Source/core/layout/svg/LayoutSVGResourceClipper.h
@@ -17,17 +17,17 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef RenderSVGResourceClipper_h
-#define RenderSVGResourceClipper_h
+#ifndef LayoutSVGResourceClipper_h
+#define LayoutSVGResourceClipper_h
-#include "core/rendering/svg/RenderSVGResourceContainer.h"
+#include "core/layout/svg/LayoutSVGResourceContainer.h"
#include "core/svg/SVGClipPathElement.h"
class SkPicture;
namespace blink {
-class RenderSVGResourceClipper final : public RenderSVGResourceContainer {
+class LayoutSVGResourceClipper final : public LayoutSVGResourceContainer {
public:
enum ClipperState {
ClipperNotApplied,
@@ -35,10 +35,10 @@ public:
ClipperAppliedMask
};
- explicit RenderSVGResourceClipper(SVGClipPathElement*);
- virtual ~RenderSVGResourceClipper();
+ explicit LayoutSVGResourceClipper(SVGClipPathElement*);
+ virtual ~LayoutSVGResourceClipper();
- virtual const char* renderName() const override { return "RenderSVGResourceClipper"; }
+ virtual const char* renderName() const override { return "LayoutSVGResourceClipper"; }
virtual void removeAllClientsFromCache(bool markForInvalidation = true) override;
virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override;
@@ -50,14 +50,14 @@ public:
void postApplyStatefulResource(LayoutObject*, GraphicsContext*&, ClipperState&);
// clipPath can be clipped too, but don't have a boundingBox or paintInvalidationRect. So we can't call
- // applyResource directly and use the rects from the object, since they are empty for RenderSVGResources
+ // applyResource directly and use the rects from the object, since they are empty for LayoutSVGResources
// FIXME: We made applyClippingToContext public because we cannot call applyResource on HTML elements (it asserts on LayoutObject::objectBoundingBox)
bool applyClippingToContext(LayoutObject*, const FloatRect&, const FloatRect&, GraphicsContext*, ClipperState&);
FloatRect resourceBoundingBox(const LayoutObject*);
- static const RenderSVGResourceType s_resourceType = ClipperResourceType;
- virtual RenderSVGResourceType resourceType() const override { return s_resourceType; }
+ static const LayoutSVGResourceType s_resourceType = ClipperResourceType;
+ virtual LayoutSVGResourceType resourceType() const override { return s_resourceType; }
bool hitTestClipContent(const FloatRect&, const FloatPoint&);
@@ -76,7 +76,7 @@ private:
bool m_inClipExpansion;
};
-DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceClipper, ClipperResourceType);
+DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceClipper, ClipperResourceType);
}
« no previous file with comments | « Source/core/layout/LayerFilterInfo.cpp ('k') | Source/core/layout/svg/LayoutSVGResourceClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698