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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 void ScrollToPosition(const FloatPoint&, | 582 void ScrollToPosition(const FloatPoint&, |
583 ScrollBehavior = kScrollBehaviorInstant); | 583 ScrollBehavior = kScrollBehaviorInstant); |
584 void ScrollByRecursively(const ScrollOffset& delta); | 584 void ScrollByRecursively(const ScrollOffset& delta); |
585 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled | 585 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled |
586 // if required to make the rect visible. | 586 // if required to make the rect visible. |
587 void ScrollRectToVisible(const LayoutRect&, | 587 void ScrollRectToVisible(const LayoutRect&, |
588 const ScrollAlignment& align_x, | 588 const ScrollAlignment& align_x, |
589 const ScrollAlignment& align_y, | 589 const ScrollAlignment& align_y, |
590 ScrollType = kProgrammaticScroll, | 590 ScrollType = kProgrammaticScroll, |
591 bool make_visible_in_visual_viewport = true); | 591 bool make_visible_in_visual_viewport = true, |
| 592 ScrollBehavior = kScrollBehaviorAuto); |
592 | 593 |
593 LayoutRectOutsets MarginBoxOutsets() const override { | 594 LayoutRectOutsets MarginBoxOutsets() const override { |
594 return margin_box_outsets_; | 595 return margin_box_outsets_; |
595 } | 596 } |
596 LayoutUnit MarginTop() const override { return margin_box_outsets_.Top(); } | 597 LayoutUnit MarginTop() const override { return margin_box_outsets_.Top(); } |
597 LayoutUnit MarginBottom() const override { | 598 LayoutUnit MarginBottom() const override { |
598 return margin_box_outsets_.Bottom(); | 599 return margin_box_outsets_.Bottom(); |
599 } | 600 } |
600 LayoutUnit MarginLeft() const override { return margin_box_outsets_.Left(); } | 601 LayoutUnit MarginLeft() const override { return margin_box_outsets_.Left(); } |
601 LayoutUnit MarginRight() const override { | 602 LayoutUnit MarginRight() const override { |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 break_value == EBreakBetween::kLeft || | 1734 break_value == EBreakBetween::kLeft || |
1734 break_value == EBreakBetween::kPage || | 1735 break_value == EBreakBetween::kPage || |
1735 break_value == EBreakBetween::kRecto || | 1736 break_value == EBreakBetween::kRecto || |
1736 break_value == EBreakBetween::kRight || | 1737 break_value == EBreakBetween::kRight || |
1737 break_value == EBreakBetween::kVerso; | 1738 break_value == EBreakBetween::kVerso; |
1738 } | 1739 } |
1739 | 1740 |
1740 } // namespace blink | 1741 } // namespace blink |
1741 | 1742 |
1742 #endif // LayoutBox_h | 1743 #endif // LayoutBox_h |
OLD | NEW |