ported from UXP: Issue #1355 - Better way to create display items for column backgrounds (9c783146)

This commit is contained in:
2022-04-15 00:26:01 +08:00
parent df3294fa67
commit b94dcfe8a3
29 changed files with 489 additions and 341 deletions
+2 -2
View File
@@ -259,8 +259,8 @@ nsButtonFrameRenderer::DisplayButton(nsDisplayListBuilder* aBuilder,
nsDisplayButtonBoxShadowOuter(aBuilder, this));
}
nsRect buttonRect;
GetButtonRect(mFrame->GetRectRelativeToSelf(), buttonRect);
nsRect buttonRect =
mFrame->GetRectRelativeToSelf() + aBuilder->ToReferenceFrame(mFrame);
nsDisplayBackgroundImage::AppendBackgroundItemsToTop(
aBuilder, mFrame, buttonRect, aBackground);