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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 visitor->trace(m_query); | 55 visitor->trace(m_query); |
56 } | 56 } |
57 | 57 |
58 MediaQueryMatcher::MediaQueryMatcher(Document* document) | 58 MediaQueryMatcher::MediaQueryMatcher(Document* document) |
59 : m_document(document) | 59 : m_document(document) |
60 , m_evaluationRound(1) | 60 , m_evaluationRound(1) |
61 { | 61 { |
62 ASSERT(m_document); | 62 ASSERT(m_document); |
63 } | 63 } |
64 | 64 |
| 65 #if !ENABLE(OILPAN) |
65 MediaQueryMatcher::~MediaQueryMatcher() | 66 MediaQueryMatcher::~MediaQueryMatcher() |
66 { | 67 { |
67 } | 68 } |
| 69 #endif |
68 | 70 |
69 void MediaQueryMatcher::documentDestroyed() | 71 void MediaQueryMatcher::documentDestroyed() |
70 { | 72 { |
71 m_listeners.clear(); | 73 m_listeners.clear(); |
72 m_document = 0; | 74 m_document = 0; |
73 } | 75 } |
74 | 76 |
75 AtomicString MediaQueryMatcher::mediaType() const | 77 AtomicString MediaQueryMatcher::mediaType() const |
76 { | 78 { |
77 if (!m_document || !m_document->frame() || !m_document->frame()->view()) | 79 if (!m_document || !m_document->frame() || !m_document->frame()->view()) |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void MediaQueryMatcher::trace(Visitor* visitor) | 164 void MediaQueryMatcher::trace(Visitor* visitor) |
163 { | 165 { |
164 // We don't support tracing of vectors of OwnPtrs (ie. Vector<OwnPtr<Listene
r> >). | 166 // We don't support tracing of vectors of OwnPtrs (ie. Vector<OwnPtr<Listene
r> >). |
165 // Since this is a transitional object we are just ifdef'ing it out when oil
pan is not enabled. | 167 // Since this is a transitional object we are just ifdef'ing it out when oil
pan is not enabled. |
166 #if ENABLE(OILPAN) | 168 #if ENABLE(OILPAN) |
167 visitor->trace(m_listeners); | 169 visitor->trace(m_listeners); |
168 #endif | 170 #endif |
169 } | 171 } |
170 | 172 |
171 } | 173 } |
OLD | NEW |