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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests !!! Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 void FrameView::setScrollOffset(const DoublePoint& offset) 3264 void FrameView::setScrollOffset(const DoublePoint& offset)
3265 { 3265 {
3266 scrollTo(adjustScrollPositionWithinRange(offset)); 3266 scrollTo(adjustScrollPositionWithinRange(offset));
3267 } 3267 }
3268 3268
3269 bool FrameView::scroll(ScrollDirection direction, ScrollGranularity granularity) 3269 bool FrameView::scroll(ScrollDirection direction, ScrollGranularity granularity)
3270 { 3270 {
3271 ScrollDirection physicalDirection = 3271 ScrollDirection physicalDirection =
3272 toPhysicalDirection(direction, isVerticalDocument(), isFlippedDocument() ); 3272 toPhysicalDirection(direction, isVerticalDocument(), isFlippedDocument() );
3273 3273
3274 return ScrollableArea::scroll(physicalDirection, granularity); 3274 return ScrollableArea::scroll(physicalDirection, granularity).didScroll;
3275 } 3275 }
3276 3276
3277 void FrameView::windowResizerRectChanged() 3277 void FrameView::windowResizerRectChanged()
3278 { 3278 {
3279 updateScrollbars(scrollOffsetDouble()); 3279 updateScrollbars(scrollOffsetDouble());
3280 } 3280 }
3281 3281
3282 bool FrameView::hasOverlayScrollbars() const 3282 bool FrameView::hasOverlayScrollbars() const
3283 { 3283 {
3284 3284
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
3986 { 3986 {
3987 Settings* settings = frame().settings(); 3987 Settings* settings = frame().settings();
3988 if (!settings || !settings->rootLayerScrolls()) 3988 if (!settings || !settings->rootLayerScrolls())
3989 return this; 3989 return this;
3990 3990
3991 LayoutView* layoutView = this->layoutView(); 3991 LayoutView* layoutView = this->layoutView();
3992 return layoutView ? layoutView->scrollableArea() : nullptr; 3992 return layoutView ? layoutView->scrollableArea() : nullptr;
3993 } 3993 }
3994 3994
3995 } // namespace blink 3995 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698