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

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: 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 3e0494c950cca921f54a5a229db8d9b093f2b840..b3f2457b68d2fc72951efc9441436f1d2040b9b2 100644
--- a/Source/core/dom/TreeScope.cpp
+++ b/Source/core/dom/TreeScope.cpp
@@ -309,7 +309,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