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

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

Issue 144063004: Add support for DOM4's XMLDocument interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove FIXME about XMLDocument.load() Created 6 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
« no previous file with comments | « Source/core/svg/SVGDocument.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 else if (SVGURIReference::parseAttribute(name, value)) { 143 else if (SVGURIReference::parseAttribute(name, value)) {
144 } else 144 } else
145 ASSERT_NOT_REACHED(); 145 ASSERT_NOT_REACHED();
146 146
147 reportAttributeParsingError(parseError, name, value); 147 reportAttributeParsingError(parseError, name, value);
148 } 148 }
149 149
150 #if !ASSERT_DISABLED 150 #if !ASSERT_DISABLED
151 static inline bool isWellFormedDocument(Document* document) 151 static inline bool isWellFormedDocument(Document* document)
152 { 152 {
153 if (document->isSVGDocument() || document->isXHTMLDocument()) 153 if (document->isXMLDocument())
154 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed() ; 154 return static_cast<XMLDocumentParser*>(document->parser())->wellFormed() ;
155 return true; 155 return true;
156 } 156 }
157 #endif 157 #endif
158 158
159 Node::InsertionNotificationRequest SVGUseElement::insertedInto(ContainerNode* ro otParent) 159 Node::InsertionNotificationRequest SVGUseElement::insertedInto(ContainerNode* ro otParent)
160 { 160 {
161 // This functions exists to assure assumptions made in the code regarding SV GElementInstance creation/destruction are satisfied. 161 // This functions exists to assure assumptions made in the code regarding SV GElementInstance creation/destruction are satisfied.
162 SVGGraphicsElement::insertedInto(rootParent); 162 SVGGraphicsElement::insertedInto(rootParent);
163 if (!rootParent->inDocument()) 163 if (!rootParent->inDocument())
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 981
982 if (m_resource) 982 if (m_resource)
983 m_resource->removeClient(this); 983 m_resource->removeClient(this);
984 984
985 m_resource = resource; 985 m_resource = resource;
986 if (m_resource) 986 if (m_resource)
987 m_resource->addClient(this); 987 m_resource->addClient(this);
988 } 988 }
989 989
990 } 990 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGDocument.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698