Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
| index b53b91aba26d2a76dad73ceb8d491fd865e5b25a..93b8116375fcfa49429f2c9339baf9c0f80fc50f 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
| @@ -36,7 +36,7 @@ LayoutSVGContainer::LayoutSVGContainer(SVGElement* node) |
| : LayoutSVGModelObject(node) |
| , m_objectBoundingBoxValid(false) |
| , m_needsBoundariesUpdate(true) |
| - , m_didTransformToRootUpdate(false) |
| + , m_didScreenScaleFactorChange(false) |
| , m_hasNonIsolatedBlendingDescendants(false) |
| , m_hasNonIsolatedBlendingDescendantsDirty(false) |
| { |
| @@ -56,7 +56,7 @@ void LayoutSVGContainer::layout() |
| // Allow LayoutSVGTransformableContainer to update its transform. |
| bool updatedTransform = calculateLocalTransform(); |
| - m_didTransformToRootUpdate = updatedTransform || SVGLayoutSupport::transformToRootChanged(parent()); |
| + m_didScreenScaleFactorChange = updatedTransform || SVGLayoutSupport::screenScaleFactorChanged(parent()); |
|
f(malita)
2016/04/20 20:00:32
If we only care about scale factor changes, then t
fs
2016/04/20 20:18:20
Right, it was "undisclosed" that I intend to make
|
| // LayoutSVGViewportContainer needs to set the 'layout size changed' flag. |
| determineIfLayoutSizeChanged(); |
| @@ -71,7 +71,7 @@ void LayoutSVGContainer::layout() |
| // the descendants. |
| bool forceLayoutOfChildren = selfNeedsLayout() |
| || (normalChildNeedsLayout() && SVGLayoutSupport::hasFilterResource(*this)); |
| - SVGLayoutSupport::layoutChildren(firstChild(), forceLayoutOfChildren, m_didTransformToRootUpdate, layoutSizeChanged); |
| + SVGLayoutSupport::layoutChildren(firstChild(), forceLayoutOfChildren, m_didScreenScaleFactorChange, layoutSizeChanged); |
| // Invalidate all resources of this client if our layout changed. |
| if (everHadLayout() && needsLayout()) |