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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.h

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible Created 3 years, 9 months 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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); 233 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*);
234 static void markForLayoutAndParentResourceInvalidation(LayoutObject*); 234 static void markForLayoutAndParentResourceInvalidation(LayoutObject*);
235 235
236 virtual bool selfHasRelativeLengths() const { return false; } 236 virtual bool selfHasRelativeLengths() const { return false; }
237 237
238 bool hasSVGParent() const; 238 bool hasSVGParent() const;
239 239
240 SVGElementRareData* ensureSVGRareData(); 240 SVGElementRareData* ensureSVGRareData();
241 inline bool hasSVGRareData() const { return m_SVGRareData; } 241 inline bool hasSVGRareData() const { return m_SVGRareData; }
242 inline SVGElementRareData* svgRareData() const { 242 inline SVGElementRareData* svgRareData() const {
243 ASSERT(m_SVGRareData); 243 DCHECK(m_SVGRareData);
244 return m_SVGRareData.get(); 244 return m_SVGRareData.get();
245 } 245 }
246 246
247 void reportAttributeParsingError(SVGParsingError, 247 void reportAttributeParsingError(SVGParsingError,
248 const QualifiedName&, 248 const QualifiedName&,
249 const AtomicString&); 249 const AtomicString&);
250 bool hasFocusEventListeners() const; 250 bool hasFocusEventListeners() const;
251 251
252 void addedEventListener(const AtomicString& eventType, 252 void addedEventListener(const AtomicString& eventType,
253 RegisteredEventListener&) final; 253 RegisteredEventListener&) final;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ 336 inline bool isElementOfType<const thisType>(const SVGElement& element) { \
337 return is##thisType(element); \ 337 return is##thisType(element); \
338 } \ 338 } \
339 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 339 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
340 340
341 } // namespace blink 341 } // namespace blink
342 342
343 #include "core/SVGElementTypeHelpers.h" 343 #include "core/SVGElementTypeHelpers.h"
344 344
345 #endif // SVGElement_h 345 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698