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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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, 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, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
6 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 6 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
7 * Copyright (C) 2012 University of Szeged 7 * Copyright (C) 2012 University of Szeged
8 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 8 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 visitor->trace(m_y); 96 visitor->trace(m_y);
97 visitor->trace(m_width); 97 visitor->trace(m_width);
98 visitor->trace(m_height); 98 visitor->trace(m_height);
99 visitor->trace(m_targetElementInstance); 99 visitor->trace(m_targetElementInstance);
100 visitor->trace(m_resource); 100 visitor->trace(m_resource);
101 SVGGraphicsElement::trace(visitor); 101 SVGGraphicsElement::trace(visitor);
102 SVGURIReference::trace(visitor); 102 SVGURIReference::trace(visitor);
103 DocumentResourceClient::trace(visitor); 103 DocumentResourceClient::trace(visitor);
104 } 104 }
105 105
106 #if ENABLE(ASSERT) 106 #if DCHECK_IS_ON()
107 static inline bool isWellFormedDocument(Document* document) { 107 static inline bool isWellFormedDocument(Document* document) {
108 if (document->isXMLDocument()) 108 if (document->isXMLDocument())
109 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed(); 109 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed();
110 return true; 110 return true;
111 } 111 }
112 #endif 112 #endif
113 113
114 Node::InsertionNotificationRequest SVGUseElement::insertedInto( 114 Node::InsertionNotificationRequest SVGUseElement::insertedInto(
115 ContainerNode* rootParent) { 115 ContainerNode* rootParent) {
116 // This functions exists to assure assumptions made in the code regarding 116 // This functions exists to assure assumptions made in the code regarding
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 724
725 if (m_resource) 725 if (m_resource)
726 m_resource->removeClient(this); 726 m_resource->removeClient(this);
727 727
728 m_resource = resource; 728 m_resource = resource;
729 if (m_resource) 729 if (m_resource)
730 m_resource->addClient(this); 730 m_resource->addClient(this);
731 } 731 }
732 732
733 } // namespace blink 733 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698