| Index: sky/engine/core/html/HTMLImageLoader.cpp
|
| diff --git a/sky/engine/core/html/HTMLImageLoader.cpp b/sky/engine/core/html/HTMLImageLoader.cpp
|
| index 591e1e37cdb19f43c4bcf348fe04e3506c7b5f23..3a96c009b70369d3bc6b3adbba73246e7a4ec30a 100644
|
| --- a/sky/engine/core/html/HTMLImageLoader.cpp
|
| +++ b/sky/engine/core/html/HTMLImageLoader.cpp
|
| @@ -43,11 +43,6 @@ HTMLImageLoader::~HTMLImageLoader()
|
| void HTMLImageLoader::dispatchLoadEvent()
|
| {
|
| WTF_LOG(Timers, "HTMLImageLoader::dispatchLoadEvent %p", this);
|
| -
|
| - // HTMLVideoElement uses this class to load the poster image, but it should not fire events for loading or failure.
|
| - if (isHTMLVideoElement(*element()))
|
| - return;
|
| -
|
| bool errorOccurred = image()->errorOccurred();
|
| element()->dispatchEvent(Event::create(errorOccurred ? EventTypeNames::error : EventTypeNames::load));
|
| }
|
|
|