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