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:
Xidorn Quan 2015-10-29 09:35:10 +09:00
parent 73cab0fa3c
commit 80ea5f4a03

View File

@ -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;
}