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

Unified Diff: third_party/WebKit/Source/core/style/ClipPathOperation.cpp

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement Created 4 years, 1 month 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: third_party/WebKit/Source/core/style/ClipPathOperation.cpp
diff --git a/third_party/WebKit/Source/core/style/ClipPathOperation.cpp b/third_party/WebKit/Source/core/style/ClipPathOperation.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..857cdce7d7fd38fb4eb4acea1adbeed8744ae342
--- /dev/null
+++ b/third_party/WebKit/Source/core/style/ClipPathOperation.cpp
@@ -0,0 +1,29 @@
+// Copyright 2016 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.
+
+#include "core/style/ClipPathOperation.h"
+
+namespace blink {
+
+void ReferenceClipPathOperation::addClient(SVGResourceClient* client) {
+ m_elementProxy->addClient(client);
+}
+
+void ReferenceClipPathOperation::removeClient(SVGResourceClient* client) {
+ m_elementProxy->removeClient(client);
+}
+
+SVGElement* ReferenceClipPathOperation::findElement(
+ TreeScope& treeScope) const {
+ return m_elementProxy->findElement(treeScope);
+}
+
+bool ReferenceClipPathOperation::operator==(const ClipPathOperation& o) const {
+ if (!isSameType(o))
+ return false;
+ const ReferenceClipPathOperation& other = toReferenceClipPathOperation(o);
+ return m_elementProxy == other.m_elementProxy && m_url == other.m_url;
+}
+
+} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/ClipPathOperation.h ('k') | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698