| 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 27533f77e295c20bfddcc65fe6ac89140b941243..ea8b8166198b829bf8c81da050555b1187da765b 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
|
| @@ -90,13 +90,13 @@ void HTMLMapElement::parseAttribute(const QualifiedName& name, const AtomicStrin
|
| return;
|
| }
|
| if (inShadowIncludingDocument())
|
| - treeScope().removeImageMap(this);
|
| + treeScopeOrDocument().removeImageMap(this);
|
| String mapName = value;
|
| if (mapName[0] == '#')
|
| mapName = mapName.substring(1);
|
| m_name = AtomicString(document().isHTMLDocument() ? mapName.lower() : mapName);
|
| if (inShadowIncludingDocument())
|
| - treeScope().addImageMap(this);
|
| + treeScopeOrDocument().addImageMap(this);
|
|
|
| return;
|
| }
|
| @@ -112,14 +112,14 @@ HTMLCollection* HTMLMapElement::areas()
|
| Node::InsertionNotificationRequest HTMLMapElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| if (insertionPoint->inShadowIncludingDocument())
|
| - treeScope().addImageMap(this);
|
| + treeScopeOrDocument().addImageMap(this);
|
| return HTMLElement::insertedInto(insertionPoint);
|
| }
|
|
|
| void HTMLMapElement::removedFrom(ContainerNode* insertionPoint)
|
| {
|
| if (insertionPoint->inShadowIncludingDocument())
|
| - treeScope().removeImageMap(this);
|
| + treeScopeOrDocument().removeImageMap(this);
|
| HTMLElement::removedFrom(insertionPoint);
|
| }
|
|
|
|
|