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

Unified Diff: Source/core/css/MediaQuery.h

Issue 178803006: Turn MQ classes into thread safe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed StringImpl comparison atomic check Created 6 years, 9 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 | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQuery.h
diff --git a/Source/core/css/MediaQuery.h b/Source/core/css/MediaQuery.h
index 02709d0f1de518c72aacbd2514203efe150e775a..794e31ec3549fe12da1a8afb41fe33ded70c1386 100644
--- a/Source/core/css/MediaQuery.h
+++ b/Source/core/css/MediaQuery.h
@@ -47,12 +47,12 @@ public:
Only, Not, None
};
- MediaQuery(Restrictor, const AtomicString& mediaType, PassOwnPtrWillBeRawPtr<ExpressionHeapVector> exprs);
+ MediaQuery(Restrictor, const String& mediaType, PassOwnPtrWillBeRawPtr<ExpressionHeapVector> exprs);
~MediaQuery();
Restrictor restrictor() const { return m_restrictor; }
const ExpressionHeapVector& expressions() const { return *m_expressions; }
- const AtomicString& mediaType() const { return m_mediaType; }
+ const String& mediaType() const { return m_mediaType; }
bool operator==(const MediaQuery& other) const;
String cssText() const;
@@ -64,7 +64,7 @@ private:
MediaQuery(const MediaQuery&);
Restrictor m_restrictor;
- AtomicString m_mediaType;
+ String m_mediaType;
OwnPtrWillBeMember<ExpressionHeapVector> m_expressions;
String m_serializationCache;
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698