OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |