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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann
3 * <zimmermann@kde.org> 3 * <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // and just clear their sets. 327 // and just clear their sets.
328 if (rootParent->isSVGElement() && !parentNode()) { 328 if (rootParent->isSVGElement() && !parentNode()) {
329 ASSERT(toSVGElement(rootParent) 329 ASSERT(toSVGElement(rootParent)
330 ->m_elementsWithRelativeLengths.contains(this)); 330 ->m_elementsWithRelativeLengths.contains(this));
331 toSVGElement(rootParent)->updateRelativeLengthsInformation(false, this); 331 toSVGElement(rootParent)->updateRelativeLengthsInformation(false, this);
332 } 332 }
333 333
334 m_elementsWithRelativeLengths.clear(); 334 m_elementsWithRelativeLengths.clear();
335 } 335 }
336 336
337 ASSERT_WITH_SECURITY_IMPLICATION( 337 SECURITY_DCHECK(
338 !rootParent->isSVGElement() || 338 !rootParent->isSVGElement() ||
339 !toSVGElement(rootParent)->m_elementsWithRelativeLengths.contains(this)); 339 !toSVGElement(rootParent)->m_elementsWithRelativeLengths.contains(this));
340 340
341 Element::removedFrom(rootParent); 341 Element::removedFrom(rootParent);
342 342
343 if (wasInDocument) { 343 if (wasInDocument) {
344 rebuildAllIncomingReferences(); 344 rebuildAllIncomingReferences();
345 removeAllIncomingReferences(); 345 removeAllIncomingReferences();
346 } 346 }
347 347
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 visitor->trace(m_className); 1226 visitor->trace(m_className);
1227 Element::trace(visitor); 1227 Element::trace(visitor);
1228 } 1228 }
1229 1229
1230 const AtomicString& SVGElement::eventParameterName() { 1230 const AtomicString& SVGElement::eventParameterName() {
1231 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); 1231 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt"));
1232 return evtString; 1232 return evtString;
1233 } 1233 }
1234 1234
1235 } // namespace blink 1235 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698