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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 11 months 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 | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index c0772b8d0f533d4eda4f3b0162426c5193e04b42..c52fdff4153cdd8d0abd7607f3fce00156b8a131 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -677,7 +677,7 @@ String getTypeExtension(Document* document,
const StringOrDictionary& stringOrOptions,
ExceptionState& exceptionState) {
if (stringOrOptions.isNull())
- return emptyString();
+ return emptyString;
if (stringOrOptions.isString()) {
UseCounter::count(document,
@@ -696,7 +696,7 @@ String getTypeExtension(Document* document,
return toCoreString(dict.v8Value()->ToString());
}
- return emptyString();
+ return emptyString;
}
// https://dom.spec.whatwg.org/#dom-document-createelement
@@ -5386,7 +5386,7 @@ void Document::initSecurityContext(const DocumentInit& initializer) {
if (!initializer.hasSecurityContext()) {
// No source for a security context.
// This can occur via document.implementation.createDocument().
- m_cookieURL = KURL(ParsedURLString, emptyString());
+ m_cookieURL = KURL(ParsedURLString, emptyString);
setSecurityOrigin(SecurityOrigin::createUnique());
initContentSecurityPolicy();
// Unique security origins cannot have a suborigin
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698