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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMapElement.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months 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/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);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLabelElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698