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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 bool SVGResources::hasResourceData() const { 169 bool SVGResources::hasResourceData() const {
170 return m_clipperFilterMaskerData || m_markerData || m_fillStrokeData || 170 return m_clipperFilterMaskerData || m_markerData || m_fillStrokeData ||
171 m_linkedResource; 171 m_linkedResource;
172 } 172 }
173 173
174 static inline SVGResources& ensureResources( 174 static inline SVGResources& ensureResources(
175 std::unique_ptr<SVGResources>& resources) { 175 std::unique_ptr<SVGResources>& resources) {
176 if (!resources) 176 if (!resources)
177 resources = wrapUnique(new SVGResources); 177 resources = WTF::wrapUnique(new SVGResources);
178 178
179 return *resources.get(); 179 return *resources.get();
180 } 180 }
181 181
182 std::unique_ptr<SVGResources> SVGResources::buildResources( 182 std::unique_ptr<SVGResources> SVGResources::buildResources(
183 const LayoutObject* object, 183 const LayoutObject* object,
184 const ComputedStyle& computedStyle) { 184 const ComputedStyle& computedStyle) {
185 ASSERT(object); 185 ASSERT(object);
186 186
187 Node* node = object->node(); 187 Node* node = object->node();
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 stroke->element()); 673 stroke->element());
674 } 674 }
675 675
676 if (m_linkedResource) 676 if (m_linkedResource)
677 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, 677 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource,
678 m_linkedResource->element()); 678 m_linkedResource->element());
679 } 679 }
680 #endif 680 #endif
681 681
682 } // namespace blink 682 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698