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 13 matching lines...) Expand all Loading... |
24 #include "core/css/MediaQueryEvaluator.h" | 24 #include "core/css/MediaQueryEvaluator.h" |
25 #include "core/css/MediaQueryList.h" | 25 #include "core/css/MediaQueryList.h" |
26 #include "core/css/MediaQueryListListener.h" | 26 #include "core/css/MediaQueryListListener.h" |
27 #include "core/css/resolver/StyleResolver.h" | 27 #include "core/css/resolver/StyleResolver.h" |
28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
29 #include "core/frame/FrameView.h" | 29 #include "core/frame/FrameView.h" |
30 #include "core/frame/LocalFrame.h" | 30 #include "core/frame/LocalFrame.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
| 34 PassRefPtrWillBeRawPtr<MediaQueryMatcher> MediaQueryMatcher::create(Document& do
cument) |
| 35 { |
| 36 return adoptRefWillBeNoop(new MediaQueryMatcher(document)); |
| 37 } |
| 38 |
34 MediaQueryMatcher::MediaQueryMatcher(Document& document) | 39 MediaQueryMatcher::MediaQueryMatcher(Document& document) |
35 : m_document(&document) | 40 : m_document(&document) |
36 { | 41 { |
37 ASSERT(m_document); | 42 ASSERT(m_document); |
38 } | 43 } |
39 | 44 |
40 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryMatcher) | 45 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryMatcher) |
41 | 46 |
42 void MediaQueryMatcher::documentDetached() | 47 void MediaQueryMatcher::documentDetached() |
43 { | 48 { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 m_document->enqueueMediaQueryChangeListeners(listenersToNotify); | 117 m_document->enqueueMediaQueryChangeListeners(listenersToNotify); |
113 } | 118 } |
114 | 119 |
115 void MediaQueryMatcher::trace(Visitor* visitor) | 120 void MediaQueryMatcher::trace(Visitor* visitor) |
116 { | 121 { |
117 visitor->trace(m_document); | 122 visitor->trace(m_document); |
118 visitor->trace(m_mediaLists); | 123 visitor->trace(m_mediaLists); |
119 } | 124 } |
120 | 125 |
121 } | 126 } |
OLD | NEW |