| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
|
| index 8e1c323fb74e571ab5ba567be66f959701923e2f..fca388ffc9fea41b692505699ccfa57e63cc0fef 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
|
| @@ -88,7 +88,7 @@ FloatSize LayoutSVGImage::calculateObjectSize() const {
|
| }
|
|
|
| bool LayoutSVGImage::updateBoundingBox() {
|
| - FloatRect oldBoundaries = m_objectBoundingBox;
|
| + FloatRect oldObjectBoundingBox = m_objectBoundingBox;
|
|
|
| SVGLengthContext lengthContext(element());
|
| m_objectBoundingBox =
|
| @@ -104,11 +104,15 @@ bool LayoutSVGImage::updateBoundingBox() {
|
| if (styleRef().width().isAuto() || styleRef().height().isAuto())
|
| m_objectBoundingBox.setSize(calculateObjectSize());
|
|
|
| - m_needsBoundariesUpdate |= oldBoundaries != m_objectBoundingBox;
|
| + if (oldObjectBoundingBox != m_objectBoundingBox) {
|
| + setShouldDoFullPaintInvalidation();
|
| + m_needsBoundariesUpdate = true;
|
| + }
|
| +
|
| if (element())
|
| element()->setNeedsResizeObserverUpdate();
|
|
|
| - return oldBoundaries.size() != m_objectBoundingBox.size();
|
| + return oldObjectBoundingBox.size() != m_objectBoundingBox.size();
|
| }
|
|
|
| void LayoutSVGImage::layout() {
|
|
|