Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2074353002: The element's offset isn't relevant when comparing its dimensions with that of its overflow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621359
Patch Set: bug 619509 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 209a6cab8287a643583afcd4d6f631e5993a596c..e1befd626772d76c2a51f284bf2b1311b9639ef1 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -586,12 +586,12 @@ LayoutUnit PaintLayerScrollableArea::scrollHeight() const
int PaintLayerScrollableArea::pixelSnappedScrollWidth() const
{
- return snapSizeToPixel(scrollWidth(), box().clientLeft() + box().location().x());
+ return snapSizeToPixel(scrollWidth(), box().clientLeft());
}
int PaintLayerScrollableArea::pixelSnappedScrollHeight() const
{
- return snapSizeToPixel(scrollHeight(), box().clientTop() + box().location().y());
+ return snapSizeToPixel(scrollHeight(), box().clientTop());
}
void PaintLayerScrollableArea::updateScrollOrigin()

Powered by Google App Engine
This is Rietveld 408576698