Index: Source/core/layout/LayoutImage.cpp |
diff --git a/Source/core/layout/LayoutImage.cpp b/Source/core/layout/LayoutImage.cpp |
index 05a43fc90ee44152db9e7c0d7b64d6c2fb36c78c..1e8ccd60b3fe4a9b68d37f09f9f846014527d937 100644 |
--- a/Source/core/layout/LayoutImage.cpp |
+++ b/Source/core/layout/LayoutImage.cpp |
@@ -78,6 +78,15 @@ void LayoutImage::willBeDestroyed() |
LayoutReplaced::willBeDestroyed(); |
} |
+void LayoutImage::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle) |
+{ |
+ LayoutReplaced::styleDidChange(diff, oldStyle); |
+ |
+ RespectImageOrientationEnum oldOrientation = oldStyle ? oldStyle->respectImageOrientation() : ComputedStyle::initialRespectImageOrientation(); |
+ if (style() && style()->respectImageOrientation() != oldOrientation) |
+ intrinsicSizeChanged(); |
+} |
+ |
void LayoutImage::setImageResource(PassOwnPtr<LayoutImageResource> imageResource) |
{ |
ASSERT(!m_imageResource); |