summaryrefslogtreecommitdiff
path: root/layout/generic/nsCanvasFrame.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-10 15:02:59 +0200
committerGitHub <noreply@github.com>2020-05-10 15:02:59 +0200
commit221627575b56e8bb85e8329400da99138f2f67c1 (patch)
tree28b0142ae0eedc45e992bb7bacafdc3dba7a15af /layout/generic/nsCanvasFrame.cpp
parent1659e69dfb075975f366b1e2dbfa145febb2094f (diff)
parentf9047ff63de90e8c0242a5e7170a8c70f93f99b1 (diff)
downloaduxp-221627575b56e8bb85e8329400da99138f2f67c1.tar.gz
Merge pull request #1537 from win7-7/column-backgrounds-pr-2
Better way to create display items for column backgrounds
Diffstat (limited to 'layout/generic/nsCanvasFrame.cpp')
-rw-r--r--layout/generic/nsCanvasFrame.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/layout/generic/nsCanvasFrame.cpp b/layout/generic/nsCanvasFrame.cpp
index 1a8812fb75..31baa040c1 100644
--- a/layout/generic/nsCanvasFrame.cpp
+++ b/layout/generic/nsCanvasFrame.cpp
@@ -410,11 +410,10 @@ public:
void
nsCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
- const nsRect& aDirtyRect,
const nsDisplayListSet& aLists)
{
if (GetPrevInFlow()) {
- DisplayOverflowContainers(aBuilder, aDirtyRect, aLists);
+ DisplayOverflowContainers(aBuilder, aLists);
}
// Force a background to be shown. We may have a background propagated to us,
@@ -488,7 +487,7 @@ nsCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
for (nsIFrame* kid : PrincipalChildList()) {
// Put our child into its own pseudo-stack.
- BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists);
+ BuildDisplayListForChild(aBuilder, kid, aLists);
}
#ifdef DEBUG_CANVAS_FOCUS
@@ -504,7 +503,7 @@ nsCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
docShell->GetHasFocus(&hasFocus);
printf("%p - nsCanvasFrame::Paint R:%d,%d,%d,%d DR: %d,%d,%d,%d\n", this,
mRect.x, mRect.y, mRect.width, mRect.height,
- aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);
+ dirty.x, dirty.y, dirty.width, dirty.height);
}
printf("%p - Focus: %s c: %p DoPaint:%s\n", docShell.get(), hasFocus?"Y":"N",
focusContent.get(), mDoPaintFocus?"Y":"N");