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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 // pretend that they are the objects that are scrolling). | 556 // pretend that they are the objects that are scrolling). |
557 virtual LayoutUnit scrollLeft() const; | 557 virtual LayoutUnit scrollLeft() const; |
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 scrollToPosition(const FloatPoint&, |
567 ScrollBehavior = ScrollBehaviorInstant); | 567 ScrollBehavior = ScrollBehaviorInstant); |
568 void scrollByRecursively(const DoubleSize& delta); | 568 void scrollByRecursively(const ScrollOffset& delta); |
569 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled | 569 // If makeVisibleInVisualViewport is set, the visual viewport will be scrolled |
570 // if required to make the rect visible. | 570 // if required to make the rect visible. |
571 void scrollRectToVisible(const LayoutRect&, | 571 void scrollRectToVisible(const LayoutRect&, |
572 const ScrollAlignment& alignX, | 572 const ScrollAlignment& alignX, |
573 const ScrollAlignment& alignY, | 573 const ScrollAlignment& alignY, |
574 ScrollType = ProgrammaticScroll, | 574 ScrollType = ProgrammaticScroll, |
575 bool makeVisibleInVisualViewport = true); | 575 bool makeVisibleInVisualViewport = true); |
576 | 576 |
577 LayoutRectOutsets marginBoxOutsets() const override { | 577 LayoutRectOutsets marginBoxOutsets() const override { |
578 return m_marginBoxOutsets; | 578 return m_marginBoxOutsets; |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 | 1617 |
1618 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { | 1618 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { |
1619 return breakValue == BreakColumn || breakValue == BreakLeft || | 1619 return breakValue == BreakColumn || breakValue == BreakLeft || |
1620 breakValue == BreakPage || breakValue == BreakRecto || | 1620 breakValue == BreakPage || breakValue == BreakRecto || |
1621 breakValue == BreakRight || breakValue == BreakVerso; | 1621 breakValue == BreakRight || breakValue == BreakVerso; |
1622 } | 1622 } |
1623 | 1623 |
1624 } // namespace blink | 1624 } // namespace blink |
1625 | 1625 |
1626 #endif // LayoutBox_h | 1626 #endif // LayoutBox_h |
OLD | NEW |