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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/style/ClipPathOperation.h"
6
7 namespace blink {
8
9 void ReferenceClipPathOperation::addClient(SVGResourceClient* client) {
10 m_elementProxy->addClient(client);
11 }
12
13 void ReferenceClipPathOperation::removeClient(SVGResourceClient* client) {
14 m_elementProxy->removeClient(client);
15 }
16
17 SVGElement* ReferenceClipPathOperation::findElement(
18 TreeScope& treeScope) const {
19 return m_elementProxy->findElement(treeScope);
20 }
21
22 bool ReferenceClipPathOperation::operator==(const ClipPathOperation& o) const {
23 if (!isSameType(o))
24 return false;
25 const ReferenceClipPathOperation& other = toReferenceClipPathOperation(o);
26 return m_elementProxy == other.m_elementProxy && m_url == other.m_url;
27 }
28
29 } // namespace blink
OLDNEW
« 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