Bug 1393077 - Part1. Round the transformed rectangles and transformed points in StackingContextHelper. r=kats

MozReview-Commit-ID: Gk5z6BwsuTM
This commit is contained in:
Ethan Lin
2017-08-31 17:59:41 +08:00
parent 5ab74e0cb9
commit aae329dc6d
5 changed files with 12 additions and 23 deletions

View File

@@ -210,7 +210,7 @@ nsDisplayButtonBoxShadowOuter::CreateWebRenderCommands(
nsRect shadowRect = nsRect(ToReferenceFrame(), mFrame->GetSize());
LayoutDeviceRect deviceBox =
LayoutDeviceRect::FromAppUnits(shadowRect, appUnitsPerDevPixel);
wr::LayoutRect deviceBoxRect = aSc.ToRelativeLayoutRectRounded(deviceBox);
wr::LayoutRect deviceBoxRect = aSc.ToRelativeLayoutRect(deviceBox);
LayoutDeviceRect clipRect =
LayoutDeviceRect::FromAppUnits(mVisibleRect, appUnitsPerDevPixel);