| 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 24 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |