Chromium Code Reviews| 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..864ae5b83e1799378b83f349152290e3f8885597 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp |
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp |
| @@ -108,6 +108,9 @@ bool LayoutSVGImage::updateBoundingBox() { |
| if (element()) |
| element()->setNeedsResizeObserverUpdate(); |
| + if (oldBoundaries != m_objectBoundingBox) |
|
pdr.
2016/10/31 20:49:05
Can we use m_needsBoundariesUpdate here?
Xianzhu
2016/10/31 22:10:30
It may be true before this check.
Combined the tw
|
| + setShouldDoFullPaintInvalidation(); |
| + |
| return oldBoundaries.size() != m_objectBoundingBox.size(); |
| } |