| Index: Source/core/html/HTMLImageElement.cpp
|
| diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
|
| index 0c162093267111650b6d767e5a37dfea3f744009..306ab884656863fc9cba1b0a2c914414b0cac2ee 100644
|
| --- a/Source/core/html/HTMLImageElement.cpp
|
| +++ b/Source/core/html/HTMLImageElement.cpp
|
| @@ -330,12 +330,12 @@ ImageCandidate HTMLImageElement::findBestFitImageFromPictureParent()
|
|
|
| LayoutObject* HTMLImageElement::createLayoutObject(const ComputedStyle& style)
|
| {
|
| - if (style.hasContent())
|
| - return LayoutObject::createObject(this, style);
|
| -
|
| if (m_useFallbackContent)
|
| return new LayoutBlockFlow(this);
|
|
|
| + if (style.hasContent())
|
| + return LayoutObject::createObject(this, style);
|
| +
|
| LayoutImage* image = new LayoutImage(this);
|
| image->setImageResource(LayoutImageResource::create());
|
| image->setImageDevicePixelRatio(m_imageDevicePixelRatio);
|
|
|