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

Side by Side Diff: third_party/WebKit/Source/core/layout/ScrollAlignment.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Fixed nits. Created 3 years, 6 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) 2003, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 static LayoutRect GetRectToExpose(const LayoutRect& visible_rect, 77 static LayoutRect GetRectToExpose(const LayoutRect& visible_rect,
78 const LayoutRect& expose_rect, 78 const LayoutRect& expose_rect,
79 const ScrollAlignment& align_x, 79 const ScrollAlignment& align_x,
80 const ScrollAlignment& align_y); 80 const ScrollAlignment& align_y);
81 81
82 static const ScrollAlignment kAlignCenterIfNeeded; 82 static const ScrollAlignment kAlignCenterIfNeeded;
83 static const ScrollAlignment kAlignToEdgeIfNeeded; 83 static const ScrollAlignment kAlignToEdgeIfNeeded;
84 static const ScrollAlignment kAlignCenterAlways; 84 static const ScrollAlignment kAlignCenterAlways;
85 static const ScrollAlignment kAlignTopAlways; 85 static const ScrollAlignment kAlignTopAlways;
86 static const ScrollAlignment kAlignBottomAlways; 86 static const ScrollAlignment kAlignBottomAlways;
87 static const ScrollAlignment kAlignLeftAlways;
88 static const ScrollAlignment kAlignRightAlways;
87 89
88 ScrollAlignmentBehavior rect_visible_; 90 ScrollAlignmentBehavior rect_visible_;
89 ScrollAlignmentBehavior rect_hidden_; 91 ScrollAlignmentBehavior rect_hidden_;
90 ScrollAlignmentBehavior rect_partial_; 92 ScrollAlignmentBehavior rect_partial_;
91 }; 93 };
92 94
93 } // namespace blink 95 } // namespace blink
94 96
95 #endif // ScrollAlignment_h 97 #endif // ScrollAlignment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698