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 "third_party/blink/renderer/core/style/reference_clip_path_operation.h" 6 7 namespace blink { 8 AddClient(SVGResourceClient & client)9void ReferenceClipPathOperation::AddClient(SVGResourceClient& client) { 10 if (resource_) 11 resource_->AddClient(client); 12 } 13 RemoveClient(SVGResourceClient & client)14void ReferenceClipPathOperation::RemoveClient(SVGResourceClient& client) { 15 if (resource_) 16 resource_->RemoveClient(client); 17 } 18 Resource() const19SVGResource* ReferenceClipPathOperation::Resource() const { 20 return resource_; 21 } 22 operator ==(const ClipPathOperation & o) const23bool ReferenceClipPathOperation::operator==(const ClipPathOperation& o) const { 24 if (!IsSameType(o)) 25 return false; 26 const ReferenceClipPathOperation& other = To<ReferenceClipPathOperation>(o); 27 return resource_ == other.resource_ && url_ == other.url_; 28 } 29 30 } // namespace blink 31