| Index: Source/core/html/HTMLImageLoader.cpp
|
| diff --git a/Source/core/html/HTMLImageLoader.cpp b/Source/core/html/HTMLImageLoader.cpp
|
| index a6d9042ee277211ab718f9d21dc7fed4448af26f..bf89f1ffc0b17e6748370177eb4a2e1b8eddbe3f 100644
|
| --- a/Source/core/html/HTMLImageLoader.cpp
|
| +++ b/Source/core/html/HTMLImageLoader.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "core/dom/Event.h"
|
| #include "core/dom/EventNames.h"
|
| #include "core/html/HTMLObjectElement.h"
|
| +#include "core/html/HTMLVideoElement.h"
|
| #include "core/html/parser/HTMLParserIdioms.h"
|
| #include "core/loader/cache/CachedImage.h"
|
|
|
| @@ -44,7 +45,7 @@ HTMLImageLoader::~HTMLImageLoader()
|
| void HTMLImageLoader::dispatchLoadEvent()
|
| {
|
| // HTMLVideoElement uses this class to load the poster image, but it should not fire events for loading or failure.
|
| - if (element()->hasTagName(HTMLNames::videoTag))
|
| + if (isHTMLVideoElement(element()))
|
| return;
|
|
|
| bool errorOccurred = image()->errorOccurred();
|
|
|