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

Unified Diff: Source/core/editing/EditorCommand.cpp

Issue 110723005: Make calls to AtomicString(const String&) explicit in editing/ (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/editing/EditorCommand.cpp
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp
index 8c6291af1e013a5190945fdca9431aaa2e9e45aa..b98f3da95e33c50f6c6ba87cf90b4f5502a15cc9 100644
--- a/Source/core/editing/EditorCommand.cpp
+++ b/Source/core/editing/EditorCommand.cpp
@@ -489,7 +489,7 @@ static bool executeInsertHorizontalRule(Frame& frame, Event*, EditorCommandSourc
ASSERT(frame.document());
RefPtr<HTMLHRElement> rule = HTMLHRElement::create(*frame.document());
if (!value.isEmpty())
- rule->setIdAttribute(value);
+ rule->setIdAttribute(AtomicString(value));
return executeInsertNode(frame, rule.release());
}

Powered by Google App Engine
This is Rietveld 408576698