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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryList.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/MediaQueryList.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.cpp b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
index 931c63f0818620293675e1a6a274a59aa144a203..f73268c9f39f958c1678246a2d40454a34cbc24f 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryList.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
@@ -27,14 +27,14 @@
namespace blink {
-PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryList::create(ExecutionContext* context, PassRefPtrWillBeRawPtr<MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
+RawPtr<MediaQueryList> MediaQueryList::create(ExecutionContext* context, RawPtr<MediaQueryMatcher> matcher, RawPtr<MediaQuerySet> media)
{
- RefPtrWillBeRawPtr<MediaQueryList> list = adoptRefWillBeNoop(new MediaQueryList(context, matcher, media));
+ RawPtr<MediaQueryList> list = new MediaQueryList(context, matcher, media);
list->suspendIfNeeded();
return list.release();
}
-MediaQueryList::MediaQueryList(ExecutionContext* context, PassRefPtrWillBeRawPtr<MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
+MediaQueryList::MediaQueryList(ExecutionContext* context, RawPtr<MediaQueryMatcher> matcher, RawPtr<MediaQuerySet> media)
: ActiveScriptWrappable(this)
, ActiveDOMObject(context)
, m_matcher(matcher)
@@ -58,7 +58,7 @@ String MediaQueryList::media() const
return m_media->mediaText();
}
-void MediaQueryList::addDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener> listener)
+void MediaQueryList::addDeprecatedListener(RawPtr<EventListener> listener)
{
if (!listener)
return;
@@ -66,7 +66,7 @@ void MediaQueryList::addDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener>
addEventListener(EventTypeNames::change, listener, false);
}
-void MediaQueryList::removeDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener> listener)
+void MediaQueryList::removeDeprecatedListener(RawPtr<EventListener> listener)
{
if (!listener)
return;
@@ -74,7 +74,7 @@ void MediaQueryList::removeDeprecatedListener(PassRefPtrWillBeRawPtr<EventListen
removeEventListener(EventTypeNames::change, listener, false);
}
-void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
+void MediaQueryList::addListener(RawPtr<MediaQueryListListener> listener)
{
if (!listener)
return;
@@ -82,12 +82,12 @@ void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
m_listeners.add(listener);
}
-void MediaQueryList::removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
+void MediaQueryList::removeListener(RawPtr<MediaQueryListListener> listener)
{
if (!listener)
return;
- RefPtrWillBeRawPtr<MediaQueryList> protect(this);
+ RawPtr<MediaQueryList> protect(this);
m_listeners.remove(listener);
}
@@ -99,12 +99,12 @@ bool MediaQueryList::hasPendingActivity() const
void MediaQueryList::stop()
{
// m_listeners.clear() can drop the last ref to this MediaQueryList.
- RefPtrWillBeRawPtr<MediaQueryList> protect(this);
+ RawPtr<MediaQueryList> protect(this);
m_listeners.clear();
removeAllEventListeners();
}
-bool MediaQueryList::mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryListListener>>* listenersToNotify)
+bool MediaQueryList::mediaFeaturesChanged(HeapVector<Member<MediaQueryListListener>>* listenersToNotify)
{
m_matchesDirty = true;
if (!updateMatches())
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.h ('k') | third_party/WebKit/Source/core/css/MediaQueryListEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698