DescriptionUse LayoutUnit::fromFloatRound for setting scroll values
Change Elemenet::setScrollLeft and setScrollTop to use LayoutUnit::
fromFloatRound instead of lroundf. This ensures that no unnecessary type
conversion takers place and that the values are clamped properly.
R=leviw@chromium.org
BUG=393464
TEST=fast/scrolling/scroll-max-value.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178488
Patch Set 1 #
Messages
Total messages: 9 (0 generated)
|