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

Unified Diff: Source/core/dom/TreeScope.cpp

Issue 112843002: Make calls to AtomicString(const String&) explicit in dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comments Created 7 years 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: Source/core/dom/TreeScope.cpp
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp
index a54da2e6e3f33204f3cecd35781fb7aff03572d3..594a6f147fe4be0d6076cda189c09021b89fb6eb 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -319,7 +319,7 @@ Element* TreeScope::findAnchor(const String& name)
{
if (name.isEmpty())
return 0;
- if (Element* element = getElementById(name))
+ if (Element* element = getElementById(AtomicString(name)))
return element;
ASSERT(rootNode());
for (Element* element = ElementTraversal::firstWithin(*rootNode()); element; element = ElementTraversal::next(*element)) {

Powered by Google App Engine
This is Rietveld 408576698