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

Unified Diff: Source/core/css/MediaQueryListEvent.h

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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 | « Source/core/css/MediaQueryList.cpp ('k') | Source/core/css/StyleMedia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryListEvent.h
diff --git a/Source/core/css/MediaQueryListEvent.h b/Source/core/css/MediaQueryListEvent.h
index 10ee3da023ecde8dce76f595486b5640bad28b24..57e0daa4bc9e50760b1997493baae4262fb458af 100644
--- a/Source/core/css/MediaQueryListEvent.h
+++ b/Source/core/css/MediaQueryListEvent.h
@@ -53,34 +53,22 @@ public:
private:
MediaQueryListEvent()
- : m_matches(false)
- {
- ScriptWrappable::init(this);
- }
+ : m_matches(false) { }
MediaQueryListEvent(const String& media, bool matches)
: Event(EventTypeNames::change, false, false)
, m_media(media)
- , m_matches(matches)
- {
- ScriptWrappable::init(this);
- }
+ , m_matches(matches) { }
explicit MediaQueryListEvent(PassRefPtrWillBeRawPtr<MediaQueryList> list)
: Event(EventTypeNames::change, false, false)
, m_mediaQueryList(list)
- , m_matches(false)
- {
- ScriptWrappable::init(this);
- }
+ , m_matches(false) { }
MediaQueryListEvent(const AtomicString& eventType, const MediaQueryListEventInit& initializer)
: Event(eventType, initializer)
, m_media(initializer.media)
- , m_matches(initializer.matches)
- {
- ScriptWrappable::init(this);
- }
+ , m_matches(initializer.matches) { }
// We have m_media/m_matches for JS-created events; we use m_mediaQueryList
// for events that blink generates.
« no previous file with comments | « Source/core/css/MediaQueryList.cpp ('k') | Source/core/css/StyleMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698