| Index: third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
|
| index 445dcf6320104355d38b653f5247cf2f58e0d5ec..79806ce88199b8025c14243311e9eef602de3e3d 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp
|
| @@ -97,6 +97,25 @@ bool HTMLOptGroupElement::matchesEnabledPseudoClass() const
|
| return !isDisabledFormControl();
|
| }
|
|
|
| +Node::InsertionNotificationRequest HTMLOptGroupElement::insertedInto(ContainerNode* insertionPoint)
|
| +{
|
| + HTMLElement::insertedInto(insertionPoint);
|
| + if (HTMLSelectElement* select = ownerSelectElement()) {
|
| + if (insertionPoint == select)
|
| + select->optGroupInsertedOrRemoved(*this);
|
| + }
|
| + return InsertionDone;
|
| +}
|
| +
|
| +void HTMLOptGroupElement::removedFrom(ContainerNode* insertionPoint)
|
| +{
|
| + if (isHTMLSelectElement(*insertionPoint)) {
|
| + if (!parentNode())
|
| + toHTMLSelectElement(insertionPoint)->optGroupInsertedOrRemoved(*this);
|
| + }
|
| + HTMLElement::removedFrom(insertionPoint);
|
| +}
|
| +
|
| void HTMLOptGroupElement::updateNonComputedStyle()
|
| {
|
| m_style = originalStyleForLayoutObject();
|
|
|