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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 virtual LayoutUnit scrollTop() const; | 558 virtual LayoutUnit scrollTop() const; |
559 virtual LayoutUnit scrollWidth() const; | 559 virtual LayoutUnit scrollWidth() const; |
560 virtual LayoutUnit scrollHeight() const; | 560 virtual LayoutUnit scrollHeight() const; |
561 int pixelSnappedScrollWidth() const; | 561 int pixelSnappedScrollWidth() const; |
562 int pixelSnappedScrollHeight() const; | 562 int pixelSnappedScrollHeight() const; |
563 virtual void setScrollLeft(LayoutUnit); | 563 virtual void setScrollLeft(LayoutUnit); |
564 virtual void setScrollTop(LayoutUnit); | 564 virtual void setScrollTop(LayoutUnit); |
565 | 565 |
566 void scrollToOffset(const DoubleSize&, | 566 void scrollToOffset(const DoubleSize&, |
567 ScrollBehavior = ScrollBehaviorInstant); | 567 ScrollBehavior = ScrollBehaviorInstant); |
568 void scrollByRecursively(const DoubleSize& delta); | 568 void scrollByRecursively(const DoubleSize& delta, |
| 569 ScrollOffsetClamping = ScrollOffsetUnclamped); |
569 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled | 570 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled |
570 // if required to make the rect visible. | 571 // if required to make the rect visible. |
571 void scrollRectToVisible(const LayoutRect&, | 572 void scrollRectToVisible(const LayoutRect&, |
572 const ScrollAlignment& alignX, | 573 const ScrollAlignment& alignX, |
573 const ScrollAlignment& alignY, | 574 const ScrollAlignment& alignY, |
574 ScrollType = ProgrammaticScroll, | 575 ScrollType = ProgrammaticScroll, |
575 bool makeVisibleInVisualViewport = true); | 576 bool makeVisibleInVisualViewport = true); |
576 | 577 |
577 LayoutRectOutsets marginBoxOutsets() const override { | 578 LayoutRectOutsets marginBoxOutsets() const override { |
578 return m_marginBoxOutsets; | 579 return m_marginBoxOutsets; |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 | 1618 |
1618 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { | 1619 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { |
1619 return breakValue == BreakColumn || breakValue == BreakLeft || | 1620 return breakValue == BreakColumn || breakValue == BreakLeft || |
1620 breakValue == BreakPage || breakValue == BreakRecto || | 1621 breakValue == BreakPage || breakValue == BreakRecto || |
1621 breakValue == BreakRight || breakValue == BreakVerso; | 1622 breakValue == BreakRight || breakValue == BreakVerso; |
1622 } | 1623 } |
1623 | 1624 |
1624 } // namespace blink | 1625 } // namespace blink |
1625 | 1626 |
1626 #endif // LayoutBox_h | 1627 #endif // LayoutBox_h |
OLD | NEW |