Backed out 6 changesets (bug 1574493) for causing nested-sticky-2.html to perma fail CLOSED TREE
Backed out changeset 358746636448 (bug 1574493) Backed out changeset 34aef5498237 (bug 1574493) Backed out changeset 1f88e2031c76 (bug 1574493) Backed out changeset 07c588b5ea10 (bug 1574493) Backed out changeset 0685e8d3510e (bug 1574493) Backed out changeset 15d4390220c4 (bug 1574493)
This commit is contained in:
@@ -1569,7 +1569,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedbackWithoutLayer(
|
||||
// Clip to this rect so we don't render outside the inner rect
|
||||
LayoutDeviceRect bounds = LayoutDeviceRect::FromAppUnits(
|
||||
inner, PresContext()->AppUnitsPerDevPixel());
|
||||
auto wrBounds = wr::ToLayoutRect(bounds);
|
||||
auto wrBounds = wr::ToRoundedLayoutRect(bounds);
|
||||
|
||||
// Draw image
|
||||
ImgDrawResult result = ImgDrawResult::NOT_READY;
|
||||
@@ -1609,6 +1609,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedbackWithoutLayer(
|
||||
|
||||
const int32_t factor = PresContext()->AppUnitsPerDevPixel();
|
||||
LayoutDeviceRect destRect(LayoutDeviceRect::FromAppUnits(dest, factor));
|
||||
destRect.Round();
|
||||
|
||||
Maybe<SVGImageContext> svgContext;
|
||||
IntSize decodeSize =
|
||||
@@ -1640,7 +1641,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedbackWithoutLayer(
|
||||
nsRect rect(iconXPos, inner.y, size, size);
|
||||
auto devPxRect = LayoutDeviceRect::FromAppUnits(
|
||||
rect, PresContext()->AppUnitsPerDevPixel());
|
||||
auto dest = wr::ToLayoutRect(devPxRect);
|
||||
auto dest = wr::ToRoundedLayoutRect(devPxRect);
|
||||
|
||||
auto borderWidths = wr::ToBorderWidths(1.0, 1.0, 1.0, 1.0);
|
||||
wr::BorderSide side = {color, wr::BorderStyle::Solid};
|
||||
@@ -1655,7 +1656,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedbackWithoutLayer(
|
||||
size / 2 - twoPX);
|
||||
devPxRect = LayoutDeviceRect::FromAppUnits(
|
||||
rect, PresContext()->AppUnitsPerDevPixel());
|
||||
dest = wr::ToLayoutRect(devPxRect);
|
||||
dest = wr::ToRoundedLayoutRect(devPxRect);
|
||||
|
||||
aBuilder.PushRoundedRect(dest, wrBounds, isBackfaceVisible, color);
|
||||
}
|
||||
@@ -1890,6 +1891,7 @@ bool nsDisplayImage::CreateWebRenderCommands(
|
||||
const int32_t factor = mFrame->PresContext()->AppUnitsPerDevPixel();
|
||||
LayoutDeviceRect destRect(
|
||||
LayoutDeviceRect::FromAppUnits(GetDestRect(), factor));
|
||||
destRect.Round();
|
||||
|
||||
Maybe<SVGImageContext> svgContext;
|
||||
IntSize decodeSize = nsLayoutUtils::ComputeImageContainerDrawingParameters(
|
||||
|
||||
Reference in New Issue
Block a user