| Index: third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| index 985fa43eeebcb2876e0c852bc1286d347eaf02f0..d7b9ffbd9a77c4dc3f71e2ff414335af52e35919 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| @@ -89,13 +89,13 @@ void HTMLMapElement::parseAttribute(const QualifiedName& name, const AtomicStrin
|
| if (document().isHTMLDocument())
|
| return;
|
| }
|
| - if (inShadowIncludingDocument())
|
| + if (isConnected())
|
| treeScope().removeImageMap(this);
|
| String mapName = value;
|
| if (mapName[0] == '#')
|
| mapName = mapName.substring(1);
|
| m_name = AtomicString(document().isHTMLDocument() ? mapName.lower() : mapName);
|
| - if (inShadowIncludingDocument())
|
| + if (isConnected())
|
| treeScope().addImageMap(this);
|
|
|
| return;
|
| @@ -111,14 +111,14 @@ HTMLCollection* HTMLMapElement::areas()
|
|
|
| Node::InsertionNotificationRequest HTMLMapElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| - if (insertionPoint->inShadowIncludingDocument())
|
| + if (insertionPoint->isConnected())
|
| treeScope().addImageMap(this);
|
| return HTMLElement::insertedInto(insertionPoint);
|
| }
|
|
|
| void HTMLMapElement::removedFrom(ContainerNode* insertionPoint)
|
| {
|
| - if (insertionPoint->inShadowIncludingDocument())
|
| + if (insertionPoint->isConnected())
|
| treeScope().removeImageMap(this);
|
| HTMLElement::removedFrom(insertionPoint);
|
| }
|
|
|