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

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

Issue 412183003: bindings: Makes more DOM classes inherit from ScriptWrappable (part 3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted RGBColor and Rect. Created 6 years, 4 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/MediaQueryList.h ('k') | Source/core/css/RGBColor.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 23 matching lines...) Expand all
34 return list.release(); 34 return list.release();
35 } 35 }
36 36
37 MediaQueryList::MediaQueryList(ExecutionContext* context, PassRefPtrWillBeRawPtr <MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media) 37 MediaQueryList::MediaQueryList(ExecutionContext* context, PassRefPtrWillBeRawPtr <MediaQueryMatcher> matcher, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
38 : ActiveDOMObject(context) 38 : ActiveDOMObject(context)
39 , m_matcher(matcher) 39 , m_matcher(matcher)
40 , m_media(media) 40 , m_media(media)
41 , m_matchesDirty(true) 41 , m_matchesDirty(true)
42 , m_matches(false) 42 , m_matches(false)
43 { 43 {
44 ScriptWrappable::init(this);
44 m_matcher->addMediaQueryList(this); 45 m_matcher->addMediaQueryList(this);
45 updateMatches(); 46 updateMatches();
46 } 47 }
47 48
48 MediaQueryList::~MediaQueryList() 49 MediaQueryList::~MediaQueryList()
49 { 50 {
50 #if !ENABLE(OILPAN) 51 #if !ENABLE(OILPAN)
51 m_matcher->removeMediaQueryList(this); 52 m_matcher->removeMediaQueryList(this);
52 #endif 53 #endif
53 } 54 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void MediaQueryList::trace(Visitor* visitor) 126 void MediaQueryList::trace(Visitor* visitor)
126 { 127 {
127 #if ENABLE(OILPAN) 128 #if ENABLE(OILPAN)
128 visitor->trace(m_matcher); 129 visitor->trace(m_matcher);
129 visitor->trace(m_media); 130 visitor->trace(m_media);
130 visitor->trace(m_listeners); 131 visitor->trace(m_listeners);
131 #endif 132 #endif
132 } 133 }
133 134
134 } 135 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryList.h ('k') | Source/core/css/RGBColor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698