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 14ea841bfb4f8e638d53f6c332c998c02f8a8ec8..027478760432f59473bd5f988268f5a4d3a8d4cc 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp |
@@ -111,18 +111,24 @@ void LayoutSVGContainer::styleDidChange(StyleDifference diff, |
bool hadIsolation = |
oldStyle && !isSVGHiddenContainer() && |
SVGLayoutSupport::willIsolateBlendingDescendantsForStyle(*oldStyle); |
+ |
+ bool willIsolateBlendingDescendantsForObject = |
Xianzhu
2016/12/28 23:22:58
Nit: s/willIsolateBlendingDescendantsForObject/wil
chrishtr
2016/12/28 23:30:28
Done.
|
+ SVGLayoutSupport::willIsolateBlendingDescendantsForObject(this); |
+ |
bool isolationChanged = |
- hadIsolation == |
- !SVGLayoutSupport::willIsolateBlendingDescendantsForObject(this); |
+ hadIsolation == !willIsolateBlendingDescendantsForObject; |
Xianzhu
2016/12/28 23:22:58
Nit: s/== !/!=/
chrishtr
2016/12/28 23:30:28
Done.
|
+ |
+ if (isolationChanged) |
+ setNeedsPaintPropertyUpdate(); |
if (!parent() || !isolationChanged) |
return; |
- if (hasNonIsolatedBlendingDescendants()) |
+ if (hasNonIsolatedBlendingDescendants()) { |
parent()->descendantIsolationRequirementsChanged( |
- SVGLayoutSupport::willIsolateBlendingDescendantsForObject(this) |
- ? DescendantIsolationNeedsUpdate |
- : DescendantIsolationRequired); |
+ willIsolateBlendingDescendantsForObject ? DescendantIsolationNeedsUpdate |
+ : DescendantIsolationRequired); |
+ } |
} |
bool LayoutSVGContainer::hasNonIsolatedBlendingDescendants() const { |