Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix usage of LayoutUnits and snapping for scrolling in RenderBox
https://bugs.webkit.org/show_bug.cgi?id=83073 Reviewed by Eric Seidel. Fix usage of LayoutUnits and snapping/rounding logic in RenderBox. No new tests, no change in functionality. * rendering/RenderBox.cpp: (WebCore::RenderBox::scrollWidth): Change scrollWidth to properly pixel snap values. (WebCore::RenderBox::scrollHeight): Change scrollHeight to properly pixel snap values. (WebCore::RenderBox::scrolledContentOffset): Change to return IntSize to match function definition. (WebCore::RenderBox::cachedSizeForOverflowClip): Changed cachedSizeForOverflowClip to LayoutSize as the overflow and clip rects all have subpixel precision. * rendering/RenderBox.h: (WebCore::RenderBox::pixelSnappedWidth): (WebCore::RenderBox::pixelSnappedHeight): Removed FIXME comment as the implementation (WebCore::RenderBox::minYLayoutOverflow): (WebCore::RenderBox::maxYLayoutOverflow): (WebCore::RenderBox::minXLayoutOverflow): (WebCore::RenderBox::maxXLayoutOverflow): Added static_cast for border values. (WebCore::RenderBox::hasVisualOverflow): Changed to compare two pixel snapped values as we don't want to indicate overflow in cases where the the size is rounded down resulting in no visual overflow. Canonical link: https://commits.webkit.org/100560@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@113223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters