| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   94 { |   94 { | 
|   95     setAttribute(typeAttr, type); |   95     setAttribute(typeAttr, type); | 
|   96 } |   96 } | 
|   97  |   97  | 
|   98 void HTMLSourceElement::scheduleErrorEvent() |   98 void HTMLSourceElement::scheduleErrorEvent() | 
|   99 { |   99 { | 
|  100     WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this); |  100     WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this); | 
|  101     if (m_errorEventTimer.isActive()) |  101     if (m_errorEventTimer.isActive()) | 
|  102         return; |  102         return; | 
|  103  |  103  | 
|  104     m_errorEventTimer.startOneShot(0); |  104     m_errorEventTimer.startOneShot(0, FROM_HERE); | 
|  105 } |  105 } | 
|  106  |  106  | 
|  107 void HTMLSourceElement::cancelPendingErrorEvent() |  107 void HTMLSourceElement::cancelPendingErrorEvent() | 
|  108 { |  108 { | 
|  109     WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this); |  109     WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this); | 
|  110     m_errorEventTimer.stop(); |  110     m_errorEventTimer.stop(); | 
|  111 } |  111 } | 
|  112  |  112  | 
|  113 void HTMLSourceElement::errorEventTimerFired(Timer<HTMLSourceElement>*) |  113 void HTMLSourceElement::errorEventTimerFired(Timer<HTMLSourceElement>*) | 
|  114 { |  114 { | 
|  115     WTF_LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this); |  115     WTF_LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this); | 
|  116     dispatchEvent(Event::createCancelable(EventTypeNames::error)); |  116     dispatchEvent(Event::createCancelable(EventTypeNames::error)); | 
|  117 } |  117 } | 
|  118  |  118  | 
|  119 bool HTMLSourceElement::isURLAttribute(const Attribute& attribute) const |  119 bool HTMLSourceElement::isURLAttribute(const Attribute& attribute) const | 
|  120 { |  120 { | 
|  121     return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
     ; |  121     return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute)
     ; | 
|  122 } |  122 } | 
|  123  |  123  | 
|  124 } |  124 } | 
| OLD | NEW |