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

Unified Diff: Source/core/html/forms/BaseCheckableInputType.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/forms/BaseButtonInputType.cpp ('k') | Source/core/html/forms/HiddenInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/BaseCheckableInputType.cpp
diff --git a/Source/core/html/forms/BaseCheckableInputType.cpp b/Source/core/html/forms/BaseCheckableInputType.cpp
index 0b1e73943d3aea80b3bc5a99792b4ac899798d2e..7ffe40b29da09b5859feb4eb739f8ef965be8d86 100644
--- a/Source/core/html/forms/BaseCheckableInputType.cpp
+++ b/Source/core/html/forms/BaseCheckableInputType.cpp
@@ -103,7 +103,7 @@ bool BaseCheckableInputType::storesValueSeparateFromAttribute()
void BaseCheckableInputType::setValue(const String& sanitizedValue, bool, TextFieldEventBehavior)
{
- element().setAttribute(valueAttr, sanitizedValue);
+ element().setAttribute(valueAttr, AtomicString(sanitizedValue));
}
bool BaseCheckableInputType::isCheckable()
« no previous file with comments | « Source/core/html/forms/BaseButtonInputType.cpp ('k') | Source/core/html/forms/HiddenInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698