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

Unified Diff: Source/core/html/forms/HiddenInputType.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/BaseCheckableInputType.cpp ('k') | Source/core/html/track/TextTrack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/HiddenInputType.cpp
diff --git a/Source/core/html/forms/HiddenInputType.cpp b/Source/core/html/forms/HiddenInputType.cpp
index 5ce1c5d9318d134b82d36a71f3e1a8e5d4ae9c76..7609742da689d49673e371875fc6d7f8838396d3 100644
--- a/Source/core/html/forms/HiddenInputType.cpp
+++ b/Source/core/html/forms/HiddenInputType.cpp
@@ -64,7 +64,7 @@ FormControlState HiddenInputType::saveFormControlState() const
void HiddenInputType::restoreFormControlState(const FormControlState& state)
{
- element().setAttribute(valueAttr, state[0]);
+ element().setAttribute(valueAttr, AtomicString(state[0]));
}
bool HiddenInputType::supportsValidation() const
@@ -94,7 +94,7 @@ bool HiddenInputType::storesValueSeparateFromAttribute()
void HiddenInputType::setValue(const String& sanitizedValue, bool, TextFieldEventBehavior)
{
- element().setAttribute(valueAttr, sanitizedValue);
+ element().setAttribute(valueAttr, AtomicString(sanitizedValue));
}
bool HiddenInputType::isHiddenType() const
« no previous file with comments | « Source/core/html/forms/BaseCheckableInputType.cpp ('k') | Source/core/html/track/TextTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698