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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } else if (name == SVGNames::heightAttr) { 108 } else if (name == SVGNames::heightAttr) {
109 m_height->setBaseValueAsString(value, parseError); 109 m_height->setBaseValueAsString(value, parseError);
110 } else if (SVGURIReference::parseAttribute(name, value, parseError)) { 110 } else if (SVGURIReference::parseAttribute(name, value, parseError)) {
111 } else { 111 } else {
112 ASSERT_NOT_REACHED(); 112 ASSERT_NOT_REACHED();
113 } 113 }
114 114
115 reportAttributeParsingError(parseError, name, value); 115 reportAttributeParsingError(parseError, name, value);
116 } 116 }
117 117
118 #if ASSERT_ENABLED 118 #if ENABLE(ASSERT)
119 static inline bool isWellFormedDocument(Document* document) 119 static inline bool isWellFormedDocument(Document* document)
120 { 120 {
121 if (document->isXMLDocument()) 121 if (document->isXMLDocument())
122 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed() ; 122 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed() ;
123 return true; 123 return true;
124 } 124 }
125 #endif 125 #endif
126 126
127 Node::InsertionNotificationRequest SVGUseElement::insertedInto(ContainerNode* ro otParent) 127 Node::InsertionNotificationRequest SVGUseElement::insertedInto(ContainerNode* ro otParent)
128 { 128 {
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 m_resource->addClient(this); 767 m_resource->addClient(this);
768 } 768 }
769 769
770 void SVGUseElement::trace(Visitor* visitor) 770 void SVGUseElement::trace(Visitor* visitor)
771 { 771 {
772 visitor->trace(m_targetElementInstance); 772 visitor->trace(m_targetElementInstance);
773 SVGGraphicsElement::trace(visitor); 773 SVGGraphicsElement::trace(visitor);
774 } 774 }
775 775
776 } 776 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698