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

Unified Diff: third_party/WebKit/Source/core/html/HTMLOptionElement.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/html/HTMLOptionElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
index 8594640e7522501ba53531aa0dab8101a2b95f5b..8e38035ddc55cdc732c785a48f05dfcacfd502b3 100644
--- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
@@ -387,7 +387,7 @@ Node::InsertionNotificationRequest HTMLOptionElement::insertedInto(ContainerNode
return InsertionDone;
}
-void HTMLOptionElement::removedFrom(ContainerNode* insertionPoint)
+void HTMLOptionElement::removedFrom(ContainerNode* insertionPoint, Node* next)
{
if (isHTMLSelectElement(*insertionPoint)) {
if (!parentNode() || isHTMLOptGroupElement(*parentNode()))
@@ -397,7 +397,7 @@ void HTMLOptionElement::removedFrom(ContainerNode* insertionPoint)
if (isHTMLSelectElement(parent))
toHTMLSelectElement(parent)->optionRemoved(*this);
}
- HTMLElement::removedFrom(insertionPoint);
+ HTMLElement::removedFrom(insertionPoint, next);
}
String HTMLOptionElement::collectOptionInnerText() const

Powered by Google App Engine
This is Rietveld 408576698