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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 e462d77fea0394044a6992e9f518687b08e2caed..3a5c8f9bebdc38e6b704dde1ea6f02f0f28808f7 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 (inDocument())
+ if (inShadowIncludingDocument())
treeScope().removeImageMap(this);
String mapName = value;
if (mapName[0] == '#')
mapName = mapName.substring(1);
m_name = AtomicString(document().isHTMLDocument() ? mapName.lower() : mapName);
- if (inDocument())
+ if (inShadowIncludingDocument())
treeScope().addImageMap(this);
return;
@@ -111,14 +111,14 @@ RawPtr<HTMLCollection> HTMLMapElement::areas()
Node::InsertionNotificationRequest HTMLMapElement::insertedInto(ContainerNode* insertionPoint)
{
- if (insertionPoint->inDocument())
+ if (insertionPoint->inShadowIncludingDocument())
treeScope().addImageMap(this);
return HTMLElement::insertedInto(insertionPoint);
}
void HTMLMapElement::removedFrom(ContainerNode* insertionPoint)
{
- if (insertionPoint->inDocument())
+ if (insertionPoint->inShadowIncludingDocument())
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