From 977bd2e2c8131b0d43516e5f52474f2d96a76dad Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Thu, 9 Sep 2010 08:21:46 -0700 Subject: [PATCH] Make nsIFrame::DisplaySelectionOverlay take an nsDisplayList* instead of nsDisplayListSet&. (Bug 485501) r=roc a2.0=blocking:beta6 --- layout/forms/nsComboboxControlFrame.cpp | 2 +- layout/forms/nsFileControlFrame.cpp | 2 +- layout/forms/nsHTMLButtonControlFrame.cpp | 2 +- layout/generic/nsFrame.cpp | 4 ++-- layout/generic/nsFrame.h | 2 +- layout/generic/nsHTMLCanvasFrame.cpp | 2 +- layout/generic/nsImageFrame.cpp | 2 +- layout/generic/nsInlineFrame.cpp | 2 +- layout/xul/base/src/nsBoxFrame.cpp | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index cd77f7c7e52c..5c4f15c659ad 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -1375,7 +1375,7 @@ nsComboboxControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, } } - return DisplaySelectionOverlay(aBuilder, aLists); + return DisplaySelectionOverlay(aBuilder, aLists.Content()); } void nsComboboxControlFrame::PaintFocus(nsIRenderingContext& aRenderingContext, diff --git a/layout/forms/nsFileControlFrame.cpp b/layout/forms/nsFileControlFrame.cpp index 2e08cf8f9041..070876cddf99 100644 --- a/layout/forms/nsFileControlFrame.cpp +++ b/layout/forms/nsFileControlFrame.cpp @@ -686,7 +686,7 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, return rv; } - return DisplaySelectionOverlay(aBuilder, aLists); + return DisplaySelectionOverlay(aBuilder, aLists.Content()); } #ifdef ACCESSIBILITY diff --git a/layout/forms/nsHTMLButtonControlFrame.cpp b/layout/forms/nsHTMLButtonControlFrame.cpp index cd41c5c998c2..c9bb767f9cf5 100644 --- a/layout/forms/nsHTMLButtonControlFrame.cpp +++ b/layout/forms/nsHTMLButtonControlFrame.cpp @@ -193,7 +193,7 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, NS_ENSURE_SUCCESS(rv, rv); // to draw border when selected in editor - return DisplaySelectionOverlay(aBuilder, aLists); + return DisplaySelectionOverlay(aBuilder, aLists.Content()); } nscoord diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 15f9b7a66f61..6531c16e7688 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1011,7 +1011,7 @@ void nsDisplaySelectionOverlay::Paint(nsDisplayListBuilder* aBuilder, nsresult nsFrame::DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder, - const nsDisplayListSet& aLists, + nsDisplayList* aList, PRUint16 aContentType) { //check frame selection state @@ -1058,7 +1058,7 @@ nsFrame::DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder, details = next; } - return aLists.Content()->AppendNewToTop(new (aBuilder) + return aList->AppendNewToTop(new (aBuilder) nsDisplaySelectionOverlay(aBuilder, this, selectionValue)); } diff --git a/layout/generic/nsFrame.h b/layout/generic/nsFrame.h index 1d4f222b57ef..4e933158bbf8 100644 --- a/layout/generic/nsFrame.h +++ b/layout/generic/nsFrame.h @@ -549,7 +549,7 @@ protected: * which kind of content this is for */ nsresult DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder, - const nsDisplayListSet& aLists, PRUint16 aContentType = nsISelectionDisplay::DISPLAY_FRAMES); + nsDisplayList* aList, PRUint16 aContentType = nsISelectionDisplay::DISPLAY_FRAMES); PRInt16 DisplaySelection(nsPresContext* aPresContext, PRBool isOkToTurnOn = PR_FALSE); diff --git a/layout/generic/nsHTMLCanvasFrame.cpp b/layout/generic/nsHTMLCanvasFrame.cpp index 2ae0b72ebe9d..a7c876e65259 100644 --- a/layout/generic/nsHTMLCanvasFrame.cpp +++ b/layout/generic/nsHTMLCanvasFrame.cpp @@ -287,7 +287,7 @@ nsHTMLCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, new (aBuilder) nsDisplayCanvas(aBuilder, this)); NS_ENSURE_SUCCESS(rv, rv); - return DisplaySelectionOverlay(aBuilder, aLists, + return DisplaySelectionOverlay(aBuilder, aLists.Content(), nsISelectionDisplay::DISPLAY_IMAGES); } diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index 34a90e4f7ab1..715c25417352 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -1357,7 +1357,7 @@ nsImageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, } #endif - return DisplaySelectionOverlay(aBuilder, aLists, + return DisplaySelectionOverlay(aBuilder, aLists.Content(), nsISelectionDisplay::DISPLAY_IMAGES); } diff --git a/layout/generic/nsInlineFrame.cpp b/layout/generic/nsInlineFrame.cpp index f4e603550a1c..c0e4d05ad769 100644 --- a/layout/generic/nsInlineFrame.cpp +++ b/layout/generic/nsInlineFrame.cpp @@ -194,7 +194,7 @@ nsInlineFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, // normally don't have any size, but in Editor we use CSS to display // an image to represent this "hidden" element. if (!mFrames.FirstChild()) { - rv = DisplaySelectionOverlay(aBuilder, aLists); + rv = DisplaySelectionOverlay(aBuilder, aLists.Content()); } return rv; } diff --git a/layout/xul/base/src/nsBoxFrame.cpp b/layout/xul/base/src/nsBoxFrame.cpp index 2c3bfb67f605..8b89a492583f 100644 --- a/layout/xul/base/src/nsBoxFrame.cpp +++ b/layout/xul/base/src/nsBoxFrame.cpp @@ -1334,7 +1334,7 @@ nsBoxFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, NS_ENSURE_SUCCESS(rv, rv); // see if we have to draw a selection frame around this container - rv = DisplaySelectionOverlay(aBuilder, destination); + rv = DisplaySelectionOverlay(aBuilder, destination.Content()); NS_ENSURE_SUCCESS(rv, rv); if (forceLayer) {