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

Unified Diff: Source/core/rendering/RenderLayerClipPathInfo.h

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unwanted code from RenderLayerClipPathInfo.* and Renderlayer.cpp and Renamed filters to svg… Created 6 years, 5 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
Index: Source/core/rendering/RenderLayerClipPathInfo.h
diff --git a/Source/core/rendering/RenderLayerClipPathInfo.h b/Source/core/rendering/RenderLayerClipPathInfo.h
new file mode 100644
index 0000000000000000000000000000000000000000..a19ef73ae1a47514077146911aaaf00a98a24bf6
--- /dev/null
+++ b/Source/core/rendering/RenderLayerClipPathInfo.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef RenderLayerClipPathInfo_h
+#define RenderLayerClipPathInfo_h
+
+#include "core/svg/SVGClipPathElement.h"
+#include "wtf/RefPtr.h"
+
+namespace blink {
+
+class ClipPathOperation;
+class RenderLayer;
+class RenderLayerClipPathInfo;
+
+class RenderLayerClipPathInfo {
+ WTF_MAKE_NONCOPYABLE(RenderLayerClipPathInfo);
+
+public:
+ explicit RenderLayerClipPathInfo(RenderLayer*);
+ virtual ~RenderLayerClipPathInfo();
+
+ void updateReferenceClipPathClients(ClipPathOperation*);
+ void removeReferenceClipPathClients();
+
+private:
+ RenderLayer* m_layer;
+
+ RefPtr<SVGClipPathElement> m_clipPathElement;
+};
+
+} // namespace blink
+
+#endif // RenderLayerClipPathInfo_h

Powered by Google App Engine
This is Rietveld 408576698