| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 void HTMLSourceElement::cancelPendingErrorEvent() | 144 void HTMLSourceElement::cancelPendingErrorEvent() |
| 145 { | 145 { |
| 146 DVLOG(SOURCE_LOG_LEVEL) << "cancelPendingErrorEvent - " << (void*)this; | 146 DVLOG(SOURCE_LOG_LEVEL) << "cancelPendingErrorEvent - " << (void*)this; |
| 147 sourceErrorEventSender().cancelEvent(this); | 147 sourceErrorEventSender().cancelEvent(this); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void HTMLSourceElement::dispatchPendingEvent(SourceEventSender* eventSender) | 150 void HTMLSourceElement::dispatchPendingEvent(SourceEventSender* eventSender) |
| 151 { | 151 { |
| 152 ASSERT_UNUSED(eventSender, eventSender == &sourceErrorEventSender()); | 152 DCHECK_EQ(eventSender, &sourceErrorEventSender()); |
| 153 DVLOG(SOURCE_LOG_LEVEL) << "dispatchPendingEvent - " << (void*)this; | 153 DVLOG(SOURCE_LOG_LEVEL) << "dispatchPendingEvent - " << (void*)this; |
| 154 dispatchEvent(Event::createCancelable(EventTypeNames::error)); | 154 dispatchEvent(Event::createCancelable(EventTypeNames::error)); |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool HTMLSourceElement::mediaQueryMatches() const | 157 bool HTMLSourceElement::mediaQueryMatches() const |
| 158 { | 158 { |
| 159 if (!m_mediaQueryList) | 159 if (!m_mediaQueryList) |
| 160 return true; | 160 return true; |
| 161 | 161 |
| 162 return m_mediaQueryList->matches(); | 162 return m_mediaQueryList->matches(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 187 } | 187 } |
| 188 | 188 |
| 189 DEFINE_TRACE(HTMLSourceElement) | 189 DEFINE_TRACE(HTMLSourceElement) |
| 190 { | 190 { |
| 191 visitor->trace(m_mediaQueryList); | 191 visitor->trace(m_mediaQueryList); |
| 192 visitor->trace(m_listener); | 192 visitor->trace(m_listener); |
| 193 HTMLElement::trace(visitor); | 193 HTMLElement::trace(visitor); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace blink | 196 } // namespace blink |
| OLD | NEW |