| 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 | 34 |
| 35 MediaQueryList::MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher> vector,
PassRefPtrWillBeRawPtr<MediaQuerySet> media, bool matches) | 35 MediaQueryList::MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher> vector,
PassRefPtrWillBeRawPtr<MediaQuerySet> media, bool matches) |
| 36 : m_matcher(vector) | 36 : m_matcher(vector) |
| 37 , m_media(media) | 37 , m_media(media) |
| 38 , m_evaluationRound(m_matcher->evaluationRound()) | 38 , m_evaluationRound(m_matcher->evaluationRound()) |
| 39 , m_changeRound(m_evaluationRound - 1) // m_evaluationRound and m_changeRoun
d initial values must be different. | 39 , m_changeRound(m_evaluationRound - 1) // m_evaluationRound and m_changeRoun
d initial values must be different. |
| 40 , m_matches(matches) | 40 , m_matches(matches) |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 #if !ENABLE(OILPAN) |
| 44 MediaQueryList::~MediaQueryList() | 45 MediaQueryList::~MediaQueryList() |
| 45 { | 46 { |
| 46 } | 47 } |
| 48 #endif |
| 47 | 49 |
| 48 String MediaQueryList::media() const | 50 String MediaQueryList::media() const |
| 49 { | 51 { |
| 50 return m_media->mediaText(); | 52 return m_media->mediaText(); |
| 51 } | 53 } |
| 52 | 54 |
| 53 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) | 55 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) |
| 54 { | 56 { |
| 55 if (!listener) | 57 if (!listener) |
| 56 return; | 58 return; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return m_matches; | 93 return m_matches; |
| 92 } | 94 } |
| 93 | 95 |
| 94 void MediaQueryList::trace(Visitor* visitor) | 96 void MediaQueryList::trace(Visitor* visitor) |
| 95 { | 97 { |
| 96 visitor->trace(m_matcher); | 98 visitor->trace(m_matcher); |
| 97 visitor->trace(m_media); | 99 visitor->trace(m_media); |
| 98 } | 100 } |
| 99 | 101 |
| 100 } | 102 } |
| OLD | NEW |