| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 2859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2870 | 2870 |
| 2871 return renderView->style()->isHorizontalWritingMode(); | 2871 return renderView->style()->isHorizontalWritingMode(); |
| 2872 } | 2872 } |
| 2873 | 2873 |
| 2874 bool FrameView::isFlippedDocument() const | 2874 bool FrameView::isFlippedDocument() const |
| 2875 { | 2875 { |
| 2876 RenderView* renderView = this->renderView(); | 2876 RenderView* renderView = this->renderView(); |
| 2877 if (!renderView) | 2877 if (!renderView) |
| 2878 return false; | 2878 return false; |
| 2879 | 2879 |
| 2880 return renderView->style()->isFlippedBlocksWritingMode(); | 2880 return renderView->hasFlippedBlocksWritingMode(); |
| 2881 } | 2881 } |
| 2882 | 2882 |
| 2883 bool FrameView::scrollbarsDisabled() const | 2883 bool FrameView::scrollbarsDisabled() const |
| 2884 { | 2884 { |
| 2885 if (!m_frame->settings() || !m_frame->settings()->pinchVirtualViewportEnable
d()) | 2885 if (!m_frame->settings() || !m_frame->settings()->pinchVirtualViewportEnable
d()) |
| 2886 return false; | 2886 return false; |
| 2887 | 2887 |
| 2888 return m_frame->isMainFrame() && ScrollbarTheme::theme()->usesOverlayScrollb
ars(); | 2888 return m_frame->isMainFrame() && ScrollbarTheme::theme()->usesOverlayScrollb
ars(); |
| 2889 } | 2889 } |
| 2890 | 2890 |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4003 return; | 4003 return; |
| 4004 | 4004 |
| 4005 ScrollableArea::setScrollOrigin(origin); | 4005 ScrollableArea::setScrollOrigin(origin); |
| 4006 | 4006 |
| 4007 // Update if the scroll origin changes, since our position will be different
if the content size did not change. | 4007 // Update if the scroll origin changes, since our position will be different
if the content size did not change. |
| 4008 if (updatePositionAtAll && updatePositionSynchronously) | 4008 if (updatePositionAtAll && updatePositionSynchronously) |
| 4009 updateScrollbars(scrollOffsetDouble()); | 4009 updateScrollbars(scrollOffsetDouble()); |
| 4010 } | 4010 } |
| 4011 | 4011 |
| 4012 } // namespace blink | 4012 } // namespace blink |
| OLD | NEW |