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

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

Issue 23890025: WIP (Introduce WTF::NonNullPtr<T>.) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/page/FocusController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMapElement.cpp
diff --git a/Source/core/html/HTMLMapElement.cpp b/Source/core/html/HTMLMapElement.cpp
index bdded68b16b8589766084c0b9c8af886aec055fd..b0d0fac60c6e64cd350ae03b9abdf61a209a9264 100644
--- a/Source/core/html/HTMLMapElement.cpp
+++ b/Source/core/html/HTMLMapElement.cpp
@@ -110,13 +110,13 @@ void HTMLMapElement::parseAttribute(const QualifiedName& name, const AtomicStrin
return;
}
if (inDocument())
- treeScope().removeImageMap(this);
+ treeScope()->removeImageMap(this);
String mapName = value;
if (mapName[0] == '#')
mapName = mapName.substring(1);
m_name = document().isHTMLDocument() ? mapName.lower() : mapName;
if (inDocument())
- treeScope().addImageMap(this);
+ treeScope()->addImageMap(this);
return;
}
@@ -132,14 +132,14 @@ PassRefPtr<HTMLCollection> HTMLMapElement::areas()
Node::InsertionNotificationRequest HTMLMapElement::insertedInto(ContainerNode* insertionPoint)
{
if (insertionPoint->inDocument())
- treeScope().addImageMap(this);
+ treeScope()->addImageMap(this);
return HTMLElement::insertedInto(insertionPoint);
}
void HTMLMapElement::removedFrom(ContainerNode* insertionPoint)
{
if (insertionPoint->inDocument())
- treeScope().removeImageMap(this);
+ treeScope()->removeImageMap(this);
HTMLElement::removedFrom(insertionPoint);
}
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/page/FocusController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698