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

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

Issue 7942002: Merge 94905 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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/WebCore/svg/SVGStyledElement.cpp ('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 * 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
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
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)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGStyledElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698