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

Unified Diff: Source/core/html/forms/BaseButtonInputType.cpp

Issue 99333011: Make sure getAttribute() / setAttribute() callers use AtomicStrings (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
« no previous file with comments | « Source/core/html/PluginDocument.cpp ('k') | Source/core/html/forms/BaseCheckableInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/BaseButtonInputType.cpp
diff --git a/Source/core/html/forms/BaseButtonInputType.cpp b/Source/core/html/forms/BaseButtonInputType.cpp
index 55505510e813848a55ab8e9e9df9a85c3bb4b392..a41645c24284c83c60b7c24cd22dce681e003b97 100644
--- a/Source/core/html/forms/BaseButtonInputType.cpp
+++ b/Source/core/html/forms/BaseButtonInputType.cpp
@@ -76,7 +76,7 @@ bool BaseButtonInputType::storesValueSeparateFromAttribute()
void BaseButtonInputType::setValue(const String& sanitizedValue, bool, TextFieldEventBehavior)
{
- element().setAttribute(valueAttr, sanitizedValue);
+ element().setAttribute(valueAttr, AtomicString(sanitizedValue));
}
} // namespace WebCore
« no previous file with comments | « Source/core/html/PluginDocument.cpp ('k') | Source/core/html/forms/BaseCheckableInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698