Bug 908724 - Avoid #including nsPresContext.h in nsIScrollableFrame.h; r=mats
nsPresContext.h pulls in a large number of headers which should not be needed in nsIScrollableFrame, if we just move ScrollbarStyles to its own header
This commit is contained in:
@@ -3107,7 +3107,7 @@ static void ScrollToShowRect(nsIFrame* aFrame,
|
||||
aHorizontal.mWhenToScroll == nsIPresShell::SCROLL_IF_NOT_VISIBLE) {
|
||||
lineSize = aFrameAsScrollable->GetLineScrollAmount();
|
||||
}
|
||||
nsPresContext::ScrollbarStyles ss = aFrameAsScrollable->GetScrollbarStyles();
|
||||
ScrollbarStyles ss = aFrameAsScrollable->GetScrollbarStyles();
|
||||
nsRect allowedRange(scrollPt, nsSize(0, 0));
|
||||
bool needToScroll = false;
|
||||
uint32_t directions = aFrameAsScrollable->GetPerceivedScrollingDirections();
|
||||
|
||||
Reference in New Issue
Block a user