OLD | NEW |
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 550 matching lines...) Loading... |
561 | 561 |
562 void scrollToPosition(const FloatPoint&, | 562 void scrollToPosition(const FloatPoint&, |
563 ScrollBehavior = ScrollBehaviorInstant); | 563 ScrollBehavior = ScrollBehaviorInstant); |
564 void scrollByRecursively(const ScrollOffset& delta); | 564 void scrollByRecursively(const ScrollOffset& delta); |
565 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled | 565 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled |
566 // if required to make the rect visible. | 566 // if required to make the rect visible. |
567 void scrollRectToVisible(const LayoutRect&, | 567 void scrollRectToVisible(const LayoutRect&, |
568 const ScrollAlignment& alignX, | 568 const ScrollAlignment& alignX, |
569 const ScrollAlignment& alignY, | 569 const ScrollAlignment& alignY, |
570 ScrollType = ProgrammaticScroll, | 570 ScrollType = ProgrammaticScroll, |
571 bool makeVisibleInVisualViewport = true); | 571 bool makeVisibleInVisualViewport = true, |
| 572 ScrollBehavior = ScrollBehaviorAuto); |
572 | 573 |
573 LayoutRectOutsets marginBoxOutsets() const override { | 574 LayoutRectOutsets marginBoxOutsets() const override { |
574 return m_marginBoxOutsets; | 575 return m_marginBoxOutsets; |
575 } | 576 } |
576 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } | 577 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } |
577 LayoutUnit marginBottom() const override { | 578 LayoutUnit marginBottom() const override { |
578 return m_marginBoxOutsets.bottom(); | 579 return m_marginBoxOutsets.bottom(); |
579 } | 580 } |
580 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); } | 581 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); } |
581 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); } | 582 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); } |
(...skipping 1071 matching lines...) Loading... |
1653 breakValue == EBreakBetween::kLeft || | 1654 breakValue == EBreakBetween::kLeft || |
1654 breakValue == EBreakBetween::kPage || | 1655 breakValue == EBreakBetween::kPage || |
1655 breakValue == EBreakBetween::kRecto || | 1656 breakValue == EBreakBetween::kRecto || |
1656 breakValue == EBreakBetween::kRight || | 1657 breakValue == EBreakBetween::kRight || |
1657 breakValue == EBreakBetween::kVerso; | 1658 breakValue == EBreakBetween::kVerso; |
1658 } | 1659 } |
1659 | 1660 |
1660 } // namespace blink | 1661 } // namespace blink |
1661 | 1662 |
1662 #endif // LayoutBox_h | 1663 #endif // LayoutBox_h |
OLD | NEW |