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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Rebase Created 3 years, 8 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // PaintInvalidationState::paintingLayer() instead. 271 // PaintInvalidationState::paintingLayer() instead.
272 PaintLayer* paintingLayer() const; 272 PaintLayer* paintingLayer() const;
273 273
274 // Scrolling is a LayoutBox concept, however some code just cares about 274 // Scrolling is a LayoutBox concept, however some code just cares about
275 // recursively scrolling our enclosing ScrollableArea(s). 275 // recursively scrolling our enclosing ScrollableArea(s).
276 bool scrollRectToVisible( 276 bool scrollRectToVisible(
277 const LayoutRect&, 277 const LayoutRect&,
278 const ScrollAlignment& alignX = ScrollAlignment::alignCenterIfNeeded, 278 const ScrollAlignment& alignX = ScrollAlignment::alignCenterIfNeeded,
279 const ScrollAlignment& alignY = ScrollAlignment::alignCenterIfNeeded, 279 const ScrollAlignment& alignY = ScrollAlignment::alignCenterIfNeeded,
280 ScrollType = ProgrammaticScroll, 280 ScrollType = ProgrammaticScroll,
281 bool makeVisibleInVisualViewport = true); 281 bool makeVisibleInVisualViewport = true,
282 ScrollBehavior = ScrollBehaviorAuto);
282 283
283 // Convenience function for getting to the nearest enclosing box of a 284 // Convenience function for getting to the nearest enclosing box of a
284 // LayoutObject. 285 // LayoutObject.
285 LayoutBox* enclosingBox() const; 286 LayoutBox* enclosingBox() const;
286 LayoutBoxModelObject* enclosingBoxModelObject() const; 287 LayoutBoxModelObject* enclosingBoxModelObject() const;
287 288
288 LayoutBox* enclosingScrollableBox() const; 289 LayoutBox* enclosingScrollableBox() const;
289 290
290 // Function to return our enclosing flow thread if we are contained inside 291 // Function to return our enclosing flow thread if we are contained inside
291 // one. This function follows the containing block chain. 292 // one. This function follows the containing block chain.
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2816 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2816 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2817 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2817 // We don't make object2 an optional parameter so that showLayoutTree 2818 // We don't make object2 an optional parameter so that showLayoutTree
2818 // can be called from gdb easily. 2819 // can be called from gdb easily.
2819 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2820 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2820 const blink::LayoutObject* object2); 2821 const blink::LayoutObject* object2);
2821 2822
2822 #endif 2823 #endif
2823 2824
2824 #endif // LayoutObject_h 2825 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698