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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 10 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 563
564 void scrollToPosition(const FloatPoint&, 564 void scrollToPosition(const FloatPoint&,
565 ScrollBehavior = ScrollBehaviorInstant); 565 ScrollBehavior = ScrollBehaviorInstant);
566 void scrollByRecursively(const ScrollOffset& delta); 566 void scrollByRecursively(const ScrollOffset& delta);
567 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled 567 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled
568 // if required to make the rect visible. 568 // if required to make the rect visible.
569 void scrollRectToVisible(const LayoutRect&, 569 void scrollRectToVisible(const LayoutRect&,
570 const ScrollAlignment& alignX, 570 const ScrollAlignment& alignX,
571 const ScrollAlignment& alignY, 571 const ScrollAlignment& alignY,
572 ScrollType = ProgrammaticScroll, 572 ScrollType = ProgrammaticScroll,
573 bool makeVisibleInVisualViewport = true); 573 bool makeVisibleInVisualViewport = true,
574 ScrollBehavior = ScrollBehaviorAuto);
574 575
575 LayoutRectOutsets marginBoxOutsets() const override { 576 LayoutRectOutsets marginBoxOutsets() const override {
576 return m_marginBoxOutsets; 577 return m_marginBoxOutsets;
577 } 578 }
578 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } 579 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); }
579 LayoutUnit marginBottom() const override { 580 LayoutUnit marginBottom() const override {
580 return m_marginBoxOutsets.bottom(); 581 return m_marginBoxOutsets.bottom();
581 } 582 }
582 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); } 583 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); }
583 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); } 584 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); }
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1632
1632 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1633 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1633 return breakValue == BreakColumn || breakValue == BreakLeft || 1634 return breakValue == BreakColumn || breakValue == BreakLeft ||
1634 breakValue == BreakPage || breakValue == BreakRecto || 1635 breakValue == BreakPage || breakValue == BreakRecto ||
1635 breakValue == BreakRight || breakValue == BreakVerso; 1636 breakValue == BreakRight || breakValue == BreakVerso;
1636 } 1637 }
1637 1638
1638 } // namespace blink 1639 } // namespace blink
1639 1640
1640 #endif // LayoutBox_h 1641 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698