Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index 6a28aea5d2e2be3d0c28384d127f7054bda6e954..71aa3afbb19c94d8eed0932922a1b5d47e5603af 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -3791,7 +3791,7 @@ bool RenderBox::shrinkToAvoidFloats() const |
static bool isReplacedElement(Node* node) |
{ |
// Checkboxes and radioboxes are not isReplaced() nor do they have their own renderer in which to override avoidFloats(). |
- return node && node->isElementNode() && toElement(node)->isFormControlElement(); |
+ return node && node->isElementNode() && (toElement(node)->isFormControlElement() || isHTMLImageElement(toElement(node))); |
} |
bool RenderBox::avoidsFloats() const |