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

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

Issue 2375873003: Make DOMWindowProperty::m_frame private (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StyleMedia.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleMedia.cpp b/third_party/WebKit/Source/core/css/StyleMedia.cpp
index 9fdbe323fd5e42f317ea5df97a16eb57cde314e1..3e0eb0d55f53810aed4ac7d9a244791014084110 100644
--- a/third_party/WebKit/Source/core/css/StyleMedia.cpp
+++ b/third_party/WebKit/Source/core/css/StyleMedia.cpp
@@ -40,7 +40,7 @@ StyleMedia::StyleMedia(LocalFrame* frame)
AtomicString StyleMedia::type() const
{
- FrameView* view = m_frame ? m_frame->view() : nullptr;
+ FrameView* view = frame() ? frame()->view() : nullptr;
if (view)
return view->mediaType();
@@ -49,10 +49,10 @@ AtomicString StyleMedia::type() const
bool StyleMedia::matchMedium(const String& query) const
{
- if (!m_frame)
+ if (!frame())
return false;
- Document* document = m_frame->document();
+ Document* document = frame()->document();
ASSERT(document);
Element* documentElement = document->documentElement();
if (!documentElement)
@@ -62,7 +62,7 @@ bool StyleMedia::matchMedium(const String& query) const
if (!media->set(query))
return false;
- MediaQueryEvaluator screenEval(m_frame);
+ MediaQueryEvaluator screenEval(frame());
return screenEval.eval(media);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698