Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 2225033003: Separate backgroundObscurationStatus and hasBoxDecorationBackground (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
index 8ba59de14eb4117a0106a1647fe0d635d55468ad..01489c49ada0678b06b32d106bd7c5623b011bd4 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
@@ -174,7 +174,7 @@ void LayoutSVGRoot::layout()
}
updateLayerTransformAfterLayout();
- m_hasBoxDecorationBackground = isDocumentElement() ? calculateHasBoxDecorations() : hasBoxDecorationBackground();
+ m_hasBoxDecorationBackground = isDocumentElement() ? styleRef().hasBoxDecorationBackground() : hasBoxDecorationBackground();
invalidateBackgroundObscurationStatus();
clearNeedsLayout();
@@ -216,7 +216,7 @@ void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
setNeedsBoundariesUpdate();
if (diff.needsPaintInvalidation()) {
// Box decorations may have appeared/disappeared - recompute status.
- m_hasBoxDecorationBackground = calculateHasBoxDecorations();
+ m_hasBoxDecorationBackground = styleRef().hasBoxDecorationBackground();
}
LayoutReplaced::styleDidChange(diff, oldStyle);

Powered by Google App Engine
This is Rietveld 408576698