Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1068)

Unified Diff: Source/core/html/HTMLImageElement.cpp

Issue 1134903002: content: shouldn't prevent fallback content on an image getting displayed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/replaced/image-map-on-image-with-inline-content-data-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « LayoutTests/fast/replaced/image-map-on-image-with-inline-content-data-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698