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

Side by Side Diff: Source/core/css/MediaQueryList.cpp

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQueryListEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 return list.release(); 35 return list.release();
36 } 36 }
37 37
38 MediaQueryList::MediaQueryList(ExecutionContext* context, PassRefPtrWillBeRawPtr <MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media) 38 MediaQueryList::MediaQueryList(ExecutionContext* context, PassRefPtrWillBeRawPtr <MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
39 : ActiveDOMObject(context) 39 : ActiveDOMObject(context)
40 , m_matcher(matcher) 40 , m_matcher(matcher)
41 , m_media(media) 41 , m_media(media)
42 , m_matchesDirty(true) 42 , m_matchesDirty(true)
43 , m_matches(false) 43 , m_matches(false)
44 { 44 {
45 ScriptWrappable::init(this);
46 m_matcher->addMediaQueryList(this); 45 m_matcher->addMediaQueryList(this);
47 updateMatches(); 46 updateMatches();
48 } 47 }
49 48
50 MediaQueryList::~MediaQueryList() 49 MediaQueryList::~MediaQueryList()
51 { 50 {
52 #if !ENABLE(OILPAN) 51 #if !ENABLE(OILPAN)
53 m_matcher->removeMediaQueryList(this); 52 m_matcher->removeMediaQueryList(this);
54 #endif 53 #endif
55 } 54 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 { 139 {
141 return EventTargetNames::MediaQueryList; 140 return EventTargetNames::MediaQueryList;
142 } 141 }
143 142
144 ExecutionContext* MediaQueryList::executionContext() const 143 ExecutionContext* MediaQueryList::executionContext() const
145 { 144 {
146 return ActiveDOMObject::executionContext(); 145 return ActiveDOMObject::executionContext();
147 } 146 }
148 147
149 } 148 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQueryListEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698