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

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

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 years, 1 month 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 document().scheduleUseShadowTreeUpdate(*this); 279 document().scheduleUseShadowTreeUpdate(*this);
280 } 280 }
281 281
282 void SVGUseElement::clearResourceReferences() 282 void SVGUseElement::clearResourceReferences()
283 { 283 {
284 if (m_targetElementInstance) 284 if (m_targetElementInstance)
285 m_targetElementInstance = nullptr; 285 m_targetElementInstance = nullptr;
286 286
287 // FIXME: We should try to optimize this, to at least allow partial reclones . 287 // FIXME: We should try to optimize this, to at least allow partial reclones .
288 if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot()) 288 if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot())
289 shadowTreeRootElement->removeChildren(); 289 shadowTreeRootElement->removeChildren(false);
290 290
291 m_needsShadowTreeRecreation = false; 291 m_needsShadowTreeRecreation = false;
292 document().unscheduleUseShadowTreeUpdate(*this); 292 document().unscheduleUseShadowTreeUpdate(*this);
293 293
294 removeAllOutgoingReferences(); 294 removeAllOutgoingReferences();
295 } 295 }
296 296
297 void SVGUseElement::buildPendingResource() 297 void SVGUseElement::buildPendingResource()
298 { 298 {
299 if (!referencedScope() || inUseShadowTree()) 299 if (!referencedScope() || inUseShadowTree())
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 m_resource->addClient(this); 750 m_resource->addClient(this);
751 } 751 }
752 752
753 void SVGUseElement::trace(Visitor* visitor) 753 void SVGUseElement::trace(Visitor* visitor)
754 { 754 {
755 visitor->trace(m_targetElementInstance); 755 visitor->trace(m_targetElementInstance);
756 SVGGraphicsElement::trace(visitor); 756 SVGGraphicsElement::trace(visitor);
757 } 757 }
758 758
759 } 759 }
OLDNEW
« Source/core/html/HTMLTitleElement.cpp ('K') | « Source/core/html/HTMLTitleElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698