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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2499853002: Fixed clip resize for document.rootScroller with inertTopControls (Closed)
Patch Set: Fixed typo Created 4 years 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 #include "wtf/MathExtras.h" 38 #include "wtf/MathExtras.h"
39 #include "wtf/Noncopyable.h" 39 #include "wtf/Noncopyable.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class GraphicsLayer; 44 class GraphicsLayer;
45 class HostWindow; 45 class HostWindow;
46 class LayoutBox; 46 class LayoutBox;
47 class LayoutObject; 47 class LayoutObject;
48 class PaintLayer;
48 class ProgrammaticScrollAnimator; 49 class ProgrammaticScrollAnimator;
49 struct ScrollAlignment; 50 struct ScrollAlignment;
50 class ScrollAnchor; 51 class ScrollAnchor;
51 class ScrollAnimatorBase; 52 class ScrollAnimatorBase;
52 class CompositorAnimationTimeline; 53 class CompositorAnimationTimeline;
53 54
54 enum IncludeScrollbarsInRect { 55 enum IncludeScrollbarsInRect {
55 ExcludeScrollbars, 56 ExcludeScrollbars,
56 IncludeScrollbars, 57 IncludeScrollbars,
57 }; 58 };
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 198 }
198 virtual IntPoint convertFromContainingWidgetToScrollbar( 199 virtual IntPoint convertFromContainingWidgetToScrollbar(
199 const Scrollbar& scrollbar, 200 const Scrollbar& scrollbar,
200 const IntPoint& parentPoint) const { 201 const IntPoint& parentPoint) const {
201 return scrollbar.Widget::convertFromContainingWidget(parentPoint); 202 return scrollbar.Widget::convertFromContainingWidget(parentPoint);
202 } 203 }
203 204
204 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } 205 virtual Scrollbar* horizontalScrollbar() const { return nullptr; }
205 virtual Scrollbar* verticalScrollbar() const { return nullptr; } 206 virtual Scrollbar* verticalScrollbar() const { return nullptr; }
206 207
208 virtual PaintLayer* layer() const { return nullptr; }
209
207 // scrollPosition is the location of the top/left of the scroll viewport in 210 // scrollPosition is the location of the top/left of the scroll viewport in
208 // the coordinate system defined by the top/left of the overflow rect. 211 // the coordinate system defined by the top/left of the overflow rect.
209 // scrollOffset is the offset of the scroll viewport from its position when 212 // scrollOffset is the offset of the scroll viewport from its position when
210 // scrolled all the way to the beginning of its content's flow. 213 // scrolled all the way to the beginning of its content's flow.
211 // For a more detailed explanation of scrollPosition, scrollOffset, and 214 // For a more detailed explanation of scrollPosition, scrollOffset, and
212 // scrollOrigin, see core/layout/README.md. 215 // scrollOrigin, see core/layout/README.md.
213 FloatPoint scrollPosition() const { 216 FloatPoint scrollPosition() const {
214 return FloatPoint(scrollOrigin()) + scrollOffset(); 217 return FloatPoint(scrollOrigin()) + scrollOffset();
215 } 218 }
216 virtual IntSize scrollOffsetInt() const = 0; 219 virtual IntSize scrollOffsetInt() const = 0;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 // vertical-lr / ltr NO NO 444 // vertical-lr / ltr NO NO
442 // vertical-lr / rtl NO YES 445 // vertical-lr / rtl NO YES
443 // vertical-rl / ltr YES NO 446 // vertical-rl / ltr YES NO
444 // vertical-rl / rtl YES YES 447 // vertical-rl / rtl YES YES
445 IntPoint m_scrollOrigin; 448 IntPoint m_scrollOrigin;
446 }; 449 };
447 450
448 } // namespace blink 451 } // namespace blink
449 452
450 #endif // ScrollableArea_h 453 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698