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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 1093623002: Drop clip-rule setup from LayoutSVGResourceClipper::createContentPicture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceClipper.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
index ab1426828782aaabd49389199bb676bac24a9fab..ca62f4c9caeaa0393a583b3ed9b09cc916edadb6 100644
--- a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
@@ -169,23 +169,17 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin
if (!style || style->display() == NONE || style->visibility() != VISIBLE)
continue;
- WindRule newClipRule = style->svgStyle().clipRule();
bool isUseElement = isSVGUseElement(*childElement);
if (isUseElement) {
- SVGUseElement& useElement = toSVGUseElement(*childElement);
- layoutObject = useElement.layoutObjectClipChild();
+ layoutObject = toSVGUseElement(*childElement).layoutObjectClipChild();
if (!layoutObject)
continue;
- if (!useElement.hasAttribute(SVGNames::clip_ruleAttr))
- newClipRule = layoutObject->style()->svgStyle().clipRule();
}
// Only shapes, paths and texts are allowed for clipping.
if (!layoutObject->isSVGShape() && !layoutObject->isSVGText())
continue;
- context.setFillRule(newClipRule);
-
if (isUseElement)
layoutObject = childElement->layoutObject();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698