Bug 1289011 - Part 1. Implement fill-box.
MozReview-Commit-ID: FMcM5Dmj51p
--- a/layout/svg/nsCSSClipPathInstance.cpp
+++ b/layout/svg/nsCSSClipPathInstance.cpp
@@ -72,16 +72,19 @@ nsCSSClipPathInstance::CreateClipPath(Dr
r = mTargetFrame->GetContentRectRelativeToSelf();
break;
case StyleClipPathGeometryBox::Padding:
r = mTargetFrame->GetPaddingRectRelativeToSelf();
break;
case StyleClipPathGeometryBox::Margin:
r = mTargetFrame->GetMarginRectRelativeToSelf();
break;
+ case StyleClipPathGeometryBox::Fill:
+ r = mTargetFrame->GetVisualOverflowRectRelativeToSelf();
+ break;
default: // Use the border box
r = mTargetFrame->GetRectRelativeToSelf();
}
if (mClipPathStyle.GetType() != StyleShapeSourceType::Shape) {
// TODO Clip to border-radius/reference box if no shape
// was specified.
RefPtr<PathBuilder> builder = aDrawTarget->CreatePathBuilder();