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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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 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);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMarqueeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698