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

Unified Diff: Source/core/css/StyleMedia.cpp

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/css/StyleMedia.cpp
diff --git a/Source/core/css/StyleMedia.cpp b/Source/core/css/StyleMedia.cpp
index d542f44255f3787578ef5504aa4ed83b183f68b9..791ef27328f2a10ca761be1c959cd9ce7423b5a5 100644
--- a/Source/core/css/StyleMedia.cpp
+++ b/Source/core/css/StyleMedia.cpp
@@ -40,13 +40,13 @@ StyleMedia::StyleMedia(Frame* frame)
{
}
-String StyleMedia::type() const
+AtomicString StyleMedia::type() const
{
FrameView* view = m_frame ? m_frame->view() : 0;
if (view)
return view->mediaType();
- return String();
+ return nullAtom;
}
bool StyleMedia::matchMedium(const String& query) const

Powered by Google App Engine
This is Rietveld 408576698