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 MediaQueryList::~MediaQueryList() | 44 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryList) |
45 { | |
46 } | |
47 | 45 |
48 String MediaQueryList::media() const | 46 String MediaQueryList::media() const |
49 { | 47 { |
50 return m_media->mediaText(); | 48 return m_media->mediaText(); |
51 } | 49 } |
52 | 50 |
53 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) | 51 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) |
54 { | 52 { |
55 if (!listener) | 53 if (!listener) |
56 return; | 54 return; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return m_matches; | 89 return m_matches; |
92 } | 90 } |
93 | 91 |
94 void MediaQueryList::trace(Visitor* visitor) | 92 void MediaQueryList::trace(Visitor* visitor) |
95 { | 93 { |
96 visitor->trace(m_matcher); | 94 visitor->trace(m_matcher); |
97 visitor->trace(m_media); | 95 visitor->trace(m_media); |
98 } | 96 } |
99 | 97 |
100 } | 98 } |
OLD | NEW |