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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: overlay-scrollbar-mouse-capture now works on Mac Created 4 years, 1 month 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/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 01825db216bfcbc45fe7b06d16d95043328839c5..9d316abcb2b3a3f2bb92620d00c487f8a7c08932 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -805,7 +805,10 @@ void PaintLayer::updateLayerPosition() {
IntRect lineBox = enclosingIntRect(inlineFlow->linesBoundingBox());
m_size = lineBox.size();
} else if (LayoutBox* box = layoutBox()) {
- m_size = pixelSnappedIntSize(box->size(), box->location());
+ IntSize newSize = pixelSnappedIntSize(box->size(), box->location());
+ if (newSize != m_size && m_scrollableArea)
+ m_scrollableArea->visibleContentResized();
dtapuska 2016/11/02 16:53:21 I fear you have a re-entry problem here. You are n
bokan 2016/11/02 22:41:57 Good catch, I'll add it to the bottom.
+ m_size = newSize;
localPoint.moveBy(box->topLeftLocation());
}

Powered by Google App Engine
This is Rietveld 408576698