| 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 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return; | 197 return; |
| 198 | 198 |
| 199 if (SVGURIReference::isKnownAttribute(attrName)) { | 199 if (SVGURIReference::isKnownAttribute(attrName)) { |
| 200 if (hasPendingResources()) { | 200 if (hasPendingResources()) { |
| 201 OwnPtr<SVGDocumentExtensions::SVGPendingElements> clients(document()
->accessSVGExtensions()->removePendingResource(m_resourceId)); | 201 OwnPtr<SVGDocumentExtensions::SVGPendingElements> clients(document()
->accessSVGExtensions()->removePendingResource(m_resourceId)); |
| 202 ASSERT(!clients->isEmpty()); | 202 ASSERT(!clients->isEmpty()); |
| 203 | 203 |
| 204 const SVGDocumentExtensions::SVGPendingElements::const_iterator end
= clients->end(); | 204 const SVGDocumentExtensions::SVGPendingElements::const_iterator end
= clients->end(); |
| 205 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it =
clients->begin(); it != end; ++it) { | 205 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it =
clients->begin(); it != end; ++it) { |
| 206 ASSERT((*it)->hasPendingResources()); | 206 ASSERT((*it)->hasPendingResources()); |
| 207 (*it)->setHasPendingResources(false); | 207 (*it)->clearHasPendingResourcesIfPossible(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 m_resourceId = String(); | 210 m_resourceId = String(); |
| 211 setHasPendingResources(false); | 211 clearHasPendingResourcesIfPossible(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 m_targetElementInstance = 0; | 214 m_targetElementInstance = 0; |
| 215 invalidateShadowTree(); | 215 invalidateShadowTree(); |
| 216 return; | 216 return; |
| 217 } | 217 } |
| 218 | 218 |
| 219 if (isXYAttribute) { | 219 if (isXYAttribute) { |
| 220 updateContainerOffsets(); | 220 updateContainerOffsets(); |
| 221 return; | 221 return; |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 SVGElement* element = m_targetElementInstance->correspondingElement(); | 1092 SVGElement* element = m_targetElementInstance->correspondingElement(); |
| 1093 if (!element || !element->isStyled()) | 1093 if (!element || !element->isStyled()) |
| 1094 return false; | 1094 return false; |
| 1095 | 1095 |
| 1096 return static_cast<SVGStyledElement*>(element)->hasRelativeLengths(); | 1096 return static_cast<SVGStyledElement*>(element)->hasRelativeLengths(); |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 #endif // ENABLE(SVG) | 1101 #endif // ENABLE(SVG) |
| OLD | NEW |