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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryList.h

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.h
diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.h b/third_party/WebKit/Source/core/css/MediaQueryList.h
index 26bab243fb88190adb54f74e90479bfeec875686..88011a92f84c723a6d2ddd68bd794023cdb6acef 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryList.h
+++ b/third_party/WebKit/Source/core/css/MediaQueryList.h
@@ -47,7 +47,7 @@ class CORE_EXPORT MediaQueryList final : public EventTargetWithInlineData, publi
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
public:
- static RawPtr<MediaQueryList> create(ExecutionContext*, RawPtr<MediaQueryMatcher>, RawPtr<MediaQuerySet>);
+ static MediaQueryList* create(ExecutionContext*, MediaQueryMatcher*, MediaQuerySet*);
~MediaQueryList() override;
String media() const;
@@ -57,12 +57,12 @@ public:
// These two functions are provided for compatibility with JS code
// written before the change listener became a DOM event.
- void addDeprecatedListener(RawPtr<EventListener>);
- void removeDeprecatedListener(RawPtr<EventListener>);
+ void addDeprecatedListener(EventListener*);
+ void removeDeprecatedListener(EventListener*);
// C++ code can use these functions to listen to changes instead of having to use DOM event listeners.
- void addListener(RawPtr<MediaQueryListListener>);
- void removeListener(RawPtr<MediaQueryListListener>);
+ void addListener(MediaQueryListListener*);
+ void removeListener(MediaQueryListListener*);
// Will return true if a DOM event should be scheduled.
bool mediaFeaturesChanged(HeapVector<Member<MediaQueryListListener>>* listenersToNotify);
@@ -79,7 +79,7 @@ public:
ExecutionContext* getExecutionContext() const override;
private:
- MediaQueryList(ExecutionContext*, RawPtr<MediaQueryMatcher>, RawPtr<MediaQuerySet>);
+ MediaQueryList(ExecutionContext*, MediaQueryMatcher*, MediaQuerySet*);
bool updateMatches();
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryExp.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698