| Index: Source/core/html/HTMLObjectElement.cpp
|
| diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp
|
| index a1e4cd2d46b37567ce7c0b32cbacc90ee653355a..f5b9935c50d5f5e8a4ebdf5e384471a8d6422d33 100644
|
| --- a/Source/core/html/HTMLObjectElement.cpp
|
| +++ b/Source/core/html/HTMLObjectElement.cpp
|
| @@ -360,13 +360,13 @@ void HTMLObjectElement::reattachFallbackContent()
|
| lazyReattachIfAttached();
|
| }
|
|
|
| -void HTMLObjectElement::renderFallbackContent()
|
| +bool HTMLObjectElement::renderFallbackContent()
|
| {
|
| - if (useFallbackContent())
|
| - return;
|
| -
|
| if (!inDocument())
|
| - return;
|
| + return false;
|
| +
|
| + if (useFallbackContent())
|
| + return true;
|
|
|
| // Before we give up and use fallback content, check to see if this is a MIME type issue.
|
| if (m_imageLoader && m_imageLoader->image() && m_imageLoader->image()->status() != Resource::LoadError) {
|
| @@ -375,7 +375,7 @@ void HTMLObjectElement::renderFallbackContent()
|
| // If we don't think we have an image type anymore, then clear the image from the loader.
|
| m_imageLoader->setImage(0);
|
| reattachFallbackContent();
|
| - return;
|
| + return true;
|
| }
|
| }
|
|
|
| @@ -383,6 +383,7 @@ void HTMLObjectElement::renderFallbackContent()
|
|
|
| // FIXME: Style gets recalculated which is suboptimal.
|
| reattachFallbackContent();
|
| + return true;
|
| }
|
|
|
| bool HTMLObjectElement::isExposed() const
|
|
|