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

Unified Diff: Source/core/dom/Document.h

Issue 100463004: Make calls to AtomicString(const String&) explicit in css/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make MediaQuery::mediaType() return an AtomicString 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 861c304b69e311fae0ec8d23cabc8619fe25e64f..a9a6446f4324bd1a7565ffc763ffbdb418d6e0d1 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -337,8 +337,8 @@ public:
String suggestedMIMEType() const;
- String contentLanguage() const { return m_contentLanguage; }
- void setContentLanguage(const String&);
+ const AtomicString& contentLanguage() const { return m_contentLanguage; }
+ void setContentLanguage(const AtomicString&);
String xmlEncoding() const { return m_xmlEncoding; }
String xmlVersion() const { return m_xmlVersion; }
@@ -703,7 +703,7 @@ public:
* @param equiv The http header name (value of the meta tag's "equiv" attribute)
* @param content The header value (value of the meta tag's "content" attribute)
*/
- void processHttpEquiv(const String& equiv, const String& content);
+ void processHttpEquiv(const AtomicString& equiv, const AtomicString& content);
void processViewport(const String& features, ViewportDescription::Type origin);
void updateViewportDescription();
void processReferrerPolicy(const String& policy);
@@ -1087,11 +1087,11 @@ private:
void didAssociateFormControlsTimerFired(Timer<Document>*);
void styleResolverThrowawayTimerFired(Timer<Document>*);
- void processHttpEquivDefaultStyle(const String& content);
- void processHttpEquivRefresh(const String& content);
- void processHttpEquivSetCookie(const String& content);
- void processHttpEquivXFrameOptions(const String& content);
- void processHttpEquivContentSecurityPolicy(const String& equiv, const String& content);
+ void processHttpEquivDefaultStyle(const AtomicString& content);
+ void processHttpEquivRefresh(const AtomicString& content);
+ void processHttpEquivSetCookie(const AtomicString& content);
+ void processHttpEquivXFrameOptions(const AtomicString& content);
+ void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content);
DocumentLifecycle m_lifecyle;
@@ -1214,7 +1214,7 @@ private:
unsigned m_xmlStandalone : 2;
unsigned m_hasXMLDeclaration : 1;
- String m_contentLanguage;
+ AtomicString m_contentLanguage;
DocumentEncodingData m_encodingData;

Powered by Google App Engine
This is Rietveld 408576698