Bug 1254252 - Have Axis::ClampOriginToScrollableRect just return the original value if it falls with in the page bounds. r=kats

This commit is contained in:
Randall Barker 2016-03-07 12:20:23 -08:00
parent 565a35d4d5
commit 24f338ba5d

View File

@ -450,7 +450,7 @@ CSSCoord Axis::ClampOriginToScrollableRect(CSSCoord aOrigin) const
} else if (origin + GetCompositionLength() > GetPageEnd()) {
result = GetPageEnd() - GetCompositionLength();
} else {
result = origin;
return aOrigin;
}
return result / zoom;