| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); | 479 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); |
| 480 bool canBeScrolledAndHasScrollableArea() const; | 480 bool canBeScrolledAndHasScrollableArea() const; |
| 481 virtual bool canBeProgramaticallyScrolled() const; | 481 virtual bool canBeProgramaticallyScrolled() const; |
| 482 virtual void autoscroll(const IntPoint&); | 482 virtual void autoscroll(const IntPoint&); |
| 483 bool canAutoscroll() const; | 483 bool canAutoscroll() const; |
| 484 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; | 484 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; |
| 485 static RenderBox* findAutoscrollable(LayoutObject*); | 485 static RenderBox* findAutoscrollable(LayoutObject*); |
| 486 virtual void stopAutoscroll() { } | 486 virtual void stopAutoscroll() { } |
| 487 virtual void panScroll(const IntPoint&); | 487 virtual void panScroll(const IntPoint&); |
| 488 | 488 |
| 489 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } | 489 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } |
| 490 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 490 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
| 491 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 491 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
| 492 | 492 |
| 493 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 493 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
| 494 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 494 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
| 495 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 495 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } |
| 496 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } | 496 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } |
| 497 bool usesCompositedScrolling() const; | 497 bool usesCompositedScrolling() const; |
| 498 | 498 |
| 499 // Elements such as the <input> field override this to specify that they are
scrollable | 499 // Elements such as the <input> field override this to specify that they are
scrollable |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 if (UNLIKELY(inlineBoxWrapper() != 0)) | 843 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 844 deleteLineBoxWrapper(); | 844 deleteLineBoxWrapper(); |
| 845 } | 845 } |
| 846 | 846 |
| 847 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 847 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 848 } | 848 } |
| 849 | 849 |
| 850 } // namespace blink | 850 } // namespace blink |
| 851 | 851 |
| 852 #endif // RenderBox_h | 852 #endif // RenderBox_h |
| OLD | NEW |