| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #endif | 53 #endif |
| 54 } | 54 } |
| 55 | 55 |
| 56 String MediaQueryList::media() const | 56 String MediaQueryList::media() const |
| 57 { | 57 { |
| 58 return m_media->mediaText(); | 58 return m_media->mediaText(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void MediaQueryList::addDeprecatedListener(PassRefPtr<EventListener> listener) | 61 void MediaQueryList::addDeprecatedListener(PassRefPtr<EventListener> listener) |
| 62 { | 62 { |
| 63 if (!listener) |
| 64 return; |
| 65 |
| 63 addEventListener(EventTypeNames::change, listener, false); | 66 addEventListener(EventTypeNames::change, listener, false); |
| 64 } | 67 } |
| 65 | 68 |
| 66 void MediaQueryList::removeDeprecatedListener(PassRefPtr<EventListener> listener
) | 69 void MediaQueryList::removeDeprecatedListener(PassRefPtr<EventListener> listener
) |
| 67 { | 70 { |
| 71 if (!listener) |
| 72 return; |
| 73 |
| 68 removeEventListener(EventTypeNames::change, listener, false); | 74 removeEventListener(EventTypeNames::change, listener, false); |
| 69 } | 75 } |
| 70 | 76 |
| 71 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) | 77 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) |
| 72 { | 78 { |
| 73 if (!listener) | 79 if (!listener) |
| 74 return; | 80 return; |
| 75 | 81 |
| 76 m_listeners.add(listener); | 82 m_listeners.add(listener); |
| 77 } | 83 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 { | 145 { |
| 140 return EventTargetNames::MediaQueryList; | 146 return EventTargetNames::MediaQueryList; |
| 141 } | 147 } |
| 142 | 148 |
| 143 ExecutionContext* MediaQueryList::executionContext() const | 149 ExecutionContext* MediaQueryList::executionContext() const |
| 144 { | 150 { |
| 145 return ActiveDOMObject::executionContext(); | 151 return ActiveDOMObject::executionContext(); |
| 146 } | 152 } |
| 147 | 153 |
| 148 } | 154 } |
| OLD | NEW |