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); | |
593 | 592 |
594 LayoutRectOutsets MarginBoxOutsets() const override { | 593 LayoutRectOutsets MarginBoxOutsets() const override { |
595 return margin_box_outsets_; | 594 return margin_box_outsets_; |
596 } | 595 } |
597 LayoutUnit MarginTop() const override { return margin_box_outsets_.Top(); } | 596 LayoutUnit MarginTop() const override { return margin_box_outsets_.Top(); } |
598 LayoutUnit MarginBottom() const override { | 597 LayoutUnit MarginBottom() const override { |
599 return margin_box_outsets_.Bottom(); | 598 return margin_box_outsets_.Bottom(); |
600 } | 599 } |
601 LayoutUnit MarginLeft() const override { return margin_box_outsets_.Left(); } | 600 LayoutUnit MarginLeft() const override { return margin_box_outsets_.Left(); } |
602 LayoutUnit MarginRight() const override { | 601 LayoutUnit MarginRight() const override { |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 break_value == EBreakBetween::kLeft || | 1741 break_value == EBreakBetween::kLeft || |
1743 break_value == EBreakBetween::kPage || | 1742 break_value == EBreakBetween::kPage || |
1744 break_value == EBreakBetween::kRecto || | 1743 break_value == EBreakBetween::kRecto || |
1745 break_value == EBreakBetween::kRight || | 1744 break_value == EBreakBetween::kRight || |
1746 break_value == EBreakBetween::kVerso; | 1745 break_value == EBreakBetween::kVerso; |
1747 } | 1746 } |
1748 | 1747 |
1749 } // namespace blink | 1748 } // namespace blink |
1750 | 1749 |
1751 #endif // LayoutBox_h | 1750 #endif // LayoutBox_h |
OLD | NEW |