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

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

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix 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
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
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
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
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp ('k') | third_party/WebKit/Source/core/page/WindowFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698