Bug 1407749 - Follow-up for 1393383 to remove useless code. r=jrmuizel
MozReview-Commit-ID: Dq7J8OurIcl
This commit is contained in:
@@ -150,17 +150,6 @@ nsDisplayButtonBoxShadowOuter::CanBuildWebRenderDisplayItems()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsPoint offset = ToReferenceFrame();
|
|
||||||
nsRect borderRect = mFrame->VisualBorderRectRelativeToSelf() + offset;
|
|
||||||
nsRect frameRect =
|
|
||||||
nsCSSRendering::GetShadowRect(borderRect, nativeTheme, mFrame);
|
|
||||||
|
|
||||||
if (hasBorderRadius) {
|
|
||||||
nscoord twipsRadii[8];
|
|
||||||
nsSize sz = frameRect.Size();
|
|
||||||
hasBorderRadius = mFrame->GetBorderRadii(sz, sz, Sides(), twipsRadii);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user