Bug 1194851 - Remove the second parameter of IsFixedPosFrameInDisplayPort(). r=kats

No one was using it.
This commit is contained in:
Botond Ballo
2015-12-16 17:58:52 -05:00
parent b2b30c429c
commit c69b7a6219
2 changed files with 3 additions and 4 deletions

View File

@@ -1824,7 +1824,7 @@ nsLayoutUtils::ViewportHasDisplayPort(nsPresContext* aPresContext, nsRect* aDisp
} }
bool bool
nsLayoutUtils::IsFixedPosFrameInDisplayPort(const nsIFrame* aFrame, nsRect* aDisplayPort) nsLayoutUtils::IsFixedPosFrameInDisplayPort(const nsIFrame* aFrame)
{ {
// Fixed-pos frames are parented by the viewport frame or the page content frame. // Fixed-pos frames are parented by the viewport frame or the page content frame.
// We'll assume that printing/print preview don't have displayports for their // We'll assume that printing/print preview don't have displayports for their
@@ -1834,7 +1834,7 @@ nsLayoutUtils::IsFixedPosFrameInDisplayPort(const nsIFrame* aFrame, nsRect* aDis
aFrame->StyleDisplay()->mPosition != NS_STYLE_POSITION_FIXED) { aFrame->StyleDisplay()->mPosition != NS_STYLE_POSITION_FIXED) {
return false; return false;
} }
return ViewportHasDisplayPort(aFrame->PresContext(), aDisplayPort); return ViewportHasDisplayPort(aFrame->PresContext());
} }
NS_DECLARE_FRAME_PROPERTY(ScrollbarThumbLayerized, nullptr) NS_DECLARE_FRAME_PROPERTY(ScrollbarThumbLayerized, nullptr)

View File

@@ -538,8 +538,7 @@ public:
* aDisplayPort, if non-null, is set to the display port rectangle (relative to * aDisplayPort, if non-null, is set to the display port rectangle (relative to
* the viewport). * the viewport).
*/ */
static bool IsFixedPosFrameInDisplayPort(const nsIFrame* aFrame, static bool IsFixedPosFrameInDisplayPort(const nsIFrame* aFrame);
nsRect* aDisplayPort = nullptr);
/** /**
* Store whether aThumbFrame wants its own layer. This sets a property on * Store whether aThumbFrame wants its own layer. This sets a property on