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

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

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // This functions exists to assure assumptions made in the code regarding SV GElementInstance creation/destruction are satisfied. 113 // This functions exists to assure assumptions made in the code regarding SV GElementInstance creation/destruction are satisfied.
114 SVGGraphicsElement::insertedInto(rootParent); 114 SVGGraphicsElement::insertedInto(rootParent);
115 if (!rootParent->inDocument()) 115 if (!rootParent->inDocument())
116 return InsertionDone; 116 return InsertionDone;
117 ASSERT(!m_targetElementInstance || !isWellFormedDocument(&document())); 117 ASSERT(!m_targetElementInstance || !isWellFormedDocument(&document()));
118 ASSERT(!hasPendingResources() || !isWellFormedDocument(&document())); 118 ASSERT(!hasPendingResources() || !isWellFormedDocument(&document()));
119 invalidateShadowTree(); 119 invalidateShadowTree();
120 return InsertionDone; 120 return InsertionDone;
121 } 121 }
122 122
123 void SVGUseElement::removedFrom(ContainerNode* rootParent) 123 void SVGUseElement::removedFrom(ContainerNode* rootParent, Node* next)
124 { 124 {
125 SVGGraphicsElement::removedFrom(rootParent); 125 SVGGraphicsElement::removedFrom(rootParent, next);
126 if (rootParent->inDocument()) { 126 if (rootParent->inDocument()) {
127 clearShadowTree(); 127 clearShadowTree();
128 cancelShadowTreeRecreation(); 128 cancelShadowTreeRecreation();
129 } 129 }
130 } 130 }
131 131
132 TreeScope* SVGUseElement::referencedScope() const 132 TreeScope* SVGUseElement::referencedScope() const
133 { 133 {
134 if (isStructurallyExternal()) 134 if (isStructurallyExternal())
135 return externalDocument(); 135 return externalDocument();
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 817
818 if (m_resource) 818 if (m_resource)
819 m_resource->removeClient(this); 819 m_resource->removeClient(this);
820 820
821 m_resource = resource; 821 m_resource = resource;
822 if (m_resource) 822 if (m_resource)
823 m_resource->addClient(this); 823 m_resource->addClient(this);
824 } 824 }
825 825
826 } 826 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698