| Index: Source/core/loader/ImageLoader.cpp
|
| diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp
|
| index 9094626e67df87ce68474f6ac00dbd166db3a164..5c2ecc7cd94ad11b2d6cc9ee95f0294a3d605bea 100644
|
| --- a/Source/core/loader/ImageLoader.cpp
|
| +++ b/Source/core/loader/ImageLoader.cpp
|
| @@ -22,7 +22,6 @@
|
| #include "config.h"
|
| #include "core/loader/ImageLoader.h"
|
|
|
| -#include "HTMLNames.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Element.h"
|
| #include "core/events/Event.h"
|
| @@ -380,8 +379,8 @@ void ImageLoader::dispatchPendingBeforeLoadEvent()
|
| loadEventSender().cancelEvent(this);
|
| m_hasPendingLoadEvent = false;
|
|
|
| - if (m_element->hasTagName(HTMLNames::objectTag))
|
| - toHTMLObjectElement(m_element)->renderFallbackContent();
|
| + if (isHTMLObjectElement(*m_element))
|
| + toHTMLObjectElement(*m_element).renderFallbackContent();
|
|
|
| // Only consider updating the protection ref-count of the Element immediately before returning
|
| // from this function as doing so might result in the destruction of this ImageLoader.
|
|
|