| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |