summaryrefslogtreecommitdiffstats
path: root/layout/forms/nsSelectsAreaFrame.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/forms/nsSelectsAreaFrame.cpp
parent1659e69dfb075975f366b1e2dbfa145febb2094f (diff)
parentf9047ff63de90e8c0242a5e7170a8c70f93f99b1 (diff)
downloadUXP-221627575b56e8bb85e8329400da99138f2f67c1.tar
UXP-221627575b56e8bb85e8329400da99138f2f67c1.tar.gz
UXP-221627575b56e8bb85e8329400da99138f2f67c1.tar.lz
UXP-221627575b56e8bb85e8329400da99138f2f67c1.tar.xz
UXP-221627575b56e8bb85e8329400da99138f2f67c1.zip
Merge pull request #1537 from win7-7/column-backgrounds-pr-2
Better way to create display items for column backgrounds
Diffstat (limited to 'layout/forms/nsSelectsAreaFrame.cpp')
-rw-r--r--layout/forms/nsSelectsAreaFrame.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/layout/forms/nsSelectsAreaFrame.cpp b/layout/forms/nsSelectsAreaFrame.cpp
index dd613ae9f..d9ea7cd95 100644
--- a/layout/forms/nsSelectsAreaFrame.cpp
+++ b/layout/forms/nsSelectsAreaFrame.cpp
@@ -126,16 +126,15 @@ public:
void
nsSelectsAreaFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
- const nsRect& aDirtyRect,
const nsDisplayListSet& aLists)
{
if (!aBuilder->IsForEventDelivery()) {
- BuildDisplayListInternal(aBuilder, aDirtyRect, aLists);
+ BuildDisplayListInternal(aBuilder, aLists);
return;
}
- nsDisplayListCollection set;
- BuildDisplayListInternal(aBuilder, aDirtyRect, set);
+ nsDisplayListCollection set(aBuilder);
+ BuildDisplayListInternal(aBuilder, set);
nsOptionEventGrabberWrapper wrapper;
wrapper.WrapLists(aBuilder, this, set, aLists);
@@ -143,10 +142,9 @@ nsSelectsAreaFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
void
nsSelectsAreaFrame::BuildDisplayListInternal(nsDisplayListBuilder* aBuilder,
- const nsRect& aDirtyRect,
const nsDisplayListSet& aLists)
{
- nsBlockFrame::BuildDisplayList(aBuilder, aDirtyRect, aLists);
+ nsBlockFrame::BuildDisplayList(aBuilder, aLists);
nsListControlFrame* listFrame = GetEnclosingListFrame(this);
if (listFrame && listFrame->IsFocused()) {