Chromium Code Reviews| Index: Source/core/layout/LayoutImage.cpp |
| diff --git a/Source/core/layout/LayoutImage.cpp b/Source/core/layout/LayoutImage.cpp |
| index 05a43fc90ee44152db9e7c0d7b64d6c2fb36c78c..55f93c9708668703d7998da8ff3a719e72fc788a 100644 |
| --- a/Source/core/layout/LayoutImage.cpp |
| +++ b/Source/core/layout/LayoutImage.cpp |
| @@ -78,6 +78,16 @@ void LayoutImage::willBeDestroyed() |
| LayoutReplaced::willBeDestroyed(); |
| } |
| +void LayoutImage::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle) |
| +{ |
| + LayoutReplaced::styleDidChange(diff, oldStyle); |
| + |
| + bool hadStyle = (oldStyle != 0); |
|
Noel Gordon
2015/06/12 16:21:04
Remove hadStyle, doesn't really say anymore that o
rwlbuis
2015/06/15 17:21:51
Done.
|
| + RespectImageOrientationEnum oldOrientation = hadStyle ? oldStyle->respectImageOrientation() : ComputedStyle::initialRespectImageOrientation(); |
| + if (style() && style()->respectImageOrientation() != oldOrientation) |
| + intrinsicSizeChanged(); |
|
Noel Gordon
2015/06/12 16:21:04
Devious and I love it.
rwlbuis
2015/06/15 17:21:51
Thanks :)
|
| +} |
| + |
| void LayoutImage::setImageResource(PassOwnPtr<LayoutImageResource> imageResource) |
| { |
| ASSERT(!m_imageResource); |