mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 962249 followup - Fix the bug of Window.scroll{Max,Min}{X,Y} that they incorrectly return app units instead of css pixels. r=roc
This commit is contained in:
parent
73cab0fa3c
commit
80ea5f4a03
@ -5507,7 +5507,8 @@ nsGlobalWindow::GetScrollBoundaryOuter(Side aSide)
|
||||
|
||||
FlushPendingNotifications(Flush_Layout);
|
||||
if (nsIScrollableFrame *sf = GetScrollFrame()) {
|
||||
return sf->GetScrollRange().Edge(aSide);
|
||||
return nsPresContext::
|
||||
AppUnitsToIntCSSPixels(sf->GetScrollRange().Edge(aSide));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user