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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
index 73a4b6e214270910fc4214403b04771d4473a4a0..444af68fc91c09ffc8dfd80485adfc35bf60f908 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
@@ -32,9 +32,9 @@
namespace blink {
-PassRefPtrWillBeRawPtr<MediaQueryMatcher> MediaQueryMatcher::create(Document& document)
+RawPtr<MediaQueryMatcher> MediaQueryMatcher::create(Document& document)
{
- return adoptRefWillBeNoop(new MediaQueryMatcher(document));
+ return new MediaQueryMatcher(document);
}
MediaQueryMatcher::MediaQueryMatcher(Document& document)
@@ -53,12 +53,12 @@ void MediaQueryMatcher::documentDetached()
m_evaluator = nullptr;
}
-PassOwnPtrWillBeRawPtr<MediaQueryEvaluator> MediaQueryMatcher::createEvaluator() const
+RawPtr<MediaQueryEvaluator> MediaQueryMatcher::createEvaluator() const
{
if (!m_document || !m_document->frame())
return nullptr;
- return adoptPtrWillBeNoop(new MediaQueryEvaluator(m_document->frame()));
+ return new MediaQueryEvaluator(m_document->frame());
}
bool MediaQueryMatcher::evaluate(const MediaQuerySet* media)
@@ -78,12 +78,12 @@ bool MediaQueryMatcher::evaluate(const MediaQuerySet* media)
return false;
}
-PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const String& query)
+RawPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const String& query)
{
if (!m_document)
return nullptr;
- RefPtrWillBeRawPtr<MediaQuerySet> media = MediaQuerySet::create(query);
+ RawPtr<MediaQuerySet> media = MediaQuerySet::create(query);
return MediaQueryList::create(m_document, this, media);
}
@@ -101,14 +101,14 @@ void MediaQueryMatcher::removeMediaQueryList(MediaQueryList* query)
m_mediaLists.remove(query);
}
-void MediaQueryMatcher::addViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
+void MediaQueryMatcher::addViewportListener(RawPtr<MediaQueryListListener> listener)
{
if (!m_document)
return;
m_viewportListeners.add(listener);
}
-void MediaQueryMatcher::removeViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
+void MediaQueryMatcher::removeViewportListener(RawPtr<MediaQueryListListener> listener)
{
if (!m_document)
return;
@@ -120,10 +120,10 @@ void MediaQueryMatcher::mediaFeaturesChanged()
if (!m_document)
return;
- WillBeHeapVector<RefPtrWillBeMember<MediaQueryListListener>> listenersToNotify;
+ HeapVector<Member<MediaQueryListListener>> listenersToNotify;
for (const auto& list : m_mediaLists) {
if (list->mediaFeaturesChanged(&listenersToNotify)) {
- RefPtrWillBeRawPtr<Event> event(MediaQueryListEvent::create(list));
+ RawPtr<Event> event(MediaQueryListEvent::create(list));
event->setTarget(list);
m_document->enqueueUniqueAnimationFrameEvent(event);
}
@@ -136,7 +136,7 @@ void MediaQueryMatcher::viewportChanged()
if (!m_document)
return;
- WillBeHeapVector<RefPtrWillBeMember<MediaQueryListListener>> listenersToNotify;
+ HeapVector<Member<MediaQueryListListener>> listenersToNotify;
for (const auto& listener : m_viewportListeners)
listenersToNotify.append(listener);
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryMatcher.h ('k') | third_party/WebKit/Source/core/css/MediaQueryMatcherTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698