OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryList::create(ExecutionContext*
context, PassRefPtrWillBeRawPtr<MediaQueryMatcher> matcher, PassRefPtrWillBeRawP
tr<MediaQuerySet> media) | 30 PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryList::create(ExecutionContext*
context, PassRefPtrWillBeRawPtr<MediaQueryMatcher> matcher, PassRefPtrWillBeRawP
tr<MediaQuerySet> media) |
31 { | 31 { |
32 RefPtrWillBeRawPtr<MediaQueryList> list = adoptRefWillBeNoop(new MediaQueryL
ist(context, matcher, media)); | 32 RefPtrWillBeRawPtr<MediaQueryList> list = adoptRefWillBeNoop(new MediaQueryL
ist(context, matcher, media)); |
33 list->suspendIfNeeded(); | 33 list->suspendIfNeeded(); |
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 : ActiveScriptWrappable(this) |
| 39 , ActiveDOMObject(context) |
39 , m_matcher(matcher) | 40 , m_matcher(matcher) |
40 , m_media(media) | 41 , m_media(media) |
41 , m_matchesDirty(true) | 42 , m_matchesDirty(true) |
42 , m_matches(false) | 43 , m_matches(false) |
43 { | 44 { |
44 m_matcher->addMediaQueryList(this); | 45 m_matcher->addMediaQueryList(this); |
45 updateMatches(); | 46 updateMatches(); |
46 } | 47 } |
47 | 48 |
48 MediaQueryList::~MediaQueryList() | 49 MediaQueryList::~MediaQueryList() |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 { | 146 { |
146 return EventTargetNames::MediaQueryList; | 147 return EventTargetNames::MediaQueryList; |
147 } | 148 } |
148 | 149 |
149 ExecutionContext* MediaQueryList::getExecutionContext() const | 150 ExecutionContext* MediaQueryList::getExecutionContext() const |
150 { | 151 { |
151 return ActiveDOMObject::getExecutionContext(); | 152 return ActiveDOMObject::getExecutionContext(); |
152 } | 153 } |
153 | 154 |
154 } // namespace blink | 155 } // namespace blink |
OLD | NEW |