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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index be63df4c5578d76e8fda05c3e553e27398f816c3..0aa7239f0420a5006aa9e89606d2765e93f5994f 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -290,7 +290,7 @@ Node::InsertionNotificationRequest SVGElement::insertedInto(ContainerNode* rootP
return InsertionDone;
}
-void SVGElement::removedFrom(ContainerNode* rootParent)
+void SVGElement::removedFrom(ContainerNode* rootParent, Node* next)
{
bool wasInDocument = rootParent->inDocument();
@@ -308,7 +308,7 @@ void SVGElement::removedFrom(ContainerNode* rootParent)
ASSERT_WITH_SECURITY_IMPLICATION(!rootParent->isSVGElement() || !toSVGElement(rootParent)->m_elementsWithRelativeLengths.contains(this));
- Element::removedFrom(rootParent);
+ Element::removedFrom(rootParent, next);
if (wasInDocument) {
rebuildAllIncomingReferences();

Powered by Google App Engine
This is Rietveld 408576698