mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 820496. Put bounds in correct coordinate system when setting up the canvas background for a page. r=mattwoodrow
--HG-- extra : rebase_source : 1927c9c5c26dea200b9df618bb5798e5f37d6b86
This commit is contained in:
parent
b65b659d53
commit
196d57eee7
@ -546,7 +546,8 @@ nsPageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
// Add the canvas background color to the bottom of the list. This
|
||||
// happens after we've built the list so that AddCanvasBackgroundColorItem
|
||||
// can monkey with the contents if necessary.
|
||||
nsRect backgroundRect = nsRect(nsPoint(0, 0), child->GetSize());
|
||||
nsRect backgroundRect =
|
||||
nsRect(aBuilder->ToReferenceFrame(child), child->GetSize());
|
||||
rv = PresContext()->GetPresShell()->AddCanvasBackgroundColorItem(
|
||||
*aBuilder, content, child, backgroundRect, NS_RGBA(0,0,0,0));
|
||||
|
||||
|
7
layout/reftests/printing/820496-1-ref.html
Normal file
7
layout/reftests/printing/820496-1-ref.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="reftest-print">
|
||||
<body style="margin:0">
|
||||
<div style="height:10000px; background:blue;">
|
||||
<div style="height:5000px; width:50%; background:yellow;">
|
||||
</body>
|
||||
</html>
|
6
layout/reftests/printing/820496-1.html
Normal file
6
layout/reftests/printing/820496-1.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="reftest-print">
|
||||
<body style="margin:0; height:10000px; background:blue;">
|
||||
<div style="height:5000px; width:50%; background:yellow;">
|
||||
</body>
|
||||
</html>
|
@ -25,3 +25,4 @@
|
||||
== 115199-2b.html 115199-2-ref.html
|
||||
== 652178-1.html 652178-1-ref2.html
|
||||
fuzzy-if(cocoaWidget,1,5000) == 745025-1.html 745025-1-ref.html
|
||||
== 820496-1.html 820496-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user