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

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: Changed LayoutTests and Aligned with review comments Created 6 years, 4 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..3ca6a1077b757fb24b157e82d9d2f02062d66fa6
--- /dev/null
+++ b/Source/core/rendering/RenderLayerClipPathInfo.h
@@ -0,0 +1,39 @@
+// 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*);
esprehn 2014/08/06 17:25:10 RenderLayer&
+ virtual ~RenderLayerClipPathInfo();
+
+ void updateReferenceClipPathClients(ClipPathOperation*);
+ void removeReferenceClipPathClients();
+ SVGClipPathElement* getClipPathElement()
esprehn 2014/08/06 17:25:10 We don't prefix getters with get. Also const.
+ {
+ return m_clipPathElement.get();
+ }
+
+private:
+ RenderLayer* m_layer;
+
+ RefPtr<SVGClipPathElement> m_clipPathElement;
+};
+
+} // namespace blink
+
+#endif // RenderLayerClipPathInfo_h

Powered by Google App Engine
This is Rietveld 408576698