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

Unified Diff: Source/core/html/HTMLParamElement.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/HTMLParamElement.h ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLParamElement.cpp
diff --git a/Source/core/html/HTMLParamElement.cpp b/Source/core/html/HTMLParamElement.cpp
index d1e1cdd7dc46be9d618b095b57204a71826150a7..982d53d993fa08ac5b985ee14299d80d507c5237 100644
--- a/Source/core/html/HTMLParamElement.cpp
+++ b/Source/core/html/HTMLParamElement.cpp
@@ -42,14 +42,14 @@ PassRefPtr<HTMLParamElement> HTMLParamElement::create(Document& document)
return adoptRef(new HTMLParamElement(document));
}
-String HTMLParamElement::name() const
+const AtomicString& HTMLParamElement::name() const
{
if (hasName())
return getNameAttribute();
return document().isHTMLDocument() ? emptyAtom : getIdAttribute();
}
-String HTMLParamElement::value() const
+const AtomicString& HTMLParamElement::value() const
{
return fastGetAttribute(valueAttr);
}
« no previous file with comments | « Source/core/html/HTMLParamElement.h ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698