| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 188 ASSERT(node); | 188 ASSERT(node); |
| 189 ASSERT_WITH_SECURITY_IMPLICATION(node->isSVGElement()); | 189 SECURITY_DCHECK(node->isSVGElement()); |
| 190 | 190 |
| 191 SVGElement* element = toSVGElement(node); | 191 SVGElement* element = toSVGElement(node); |
| 192 ASSERT(element); | 192 ASSERT(element); |
| 193 | 193 |
| 194 const AtomicString& tagName = element->localName(); | 194 const AtomicString& tagName = element->localName(); |
| 195 ASSERT(!tagName.isNull()); | 195 ASSERT(!tagName.isNull()); |
| 196 | 196 |
| 197 TreeScope& treeScope = element->treeScope(); | 197 TreeScope& treeScope = element->treeScope(); |
| 198 SVGDocumentExtensions& extensions = element->document().accessSVGExtensions(); | 198 SVGDocumentExtensions& extensions = element->document().accessSVGExtensions(); |
| 199 | 199 |
| (...skipping 473 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 |