| 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 3780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3791 } | 3791 } |
| 3792 | 3792 |
| 3793 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) | 3793 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) |
| 3794 clearScrollAnchor(); | 3794 clearScrollAnchor(); |
| 3795 } | 3795 } |
| 3796 | 3796 |
| 3797 void FrameView::didChangeScrollOffset() { | 3797 void FrameView::didChangeScrollOffset() { |
| 3798 frame().loader().client()->didChangeScrollOffset(); | 3798 frame().loader().client()->didChangeScrollOffset(); |
| 3799 if (frame().isMainFrame()) | 3799 if (frame().isMainFrame()) |
| 3800 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); | 3800 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); |
| 3801 | |
| 3802 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { | |
| 3803 // The scroll translation paint property depends on scroll offset. | |
| 3804 setNeedsPaintPropertyUpdate(); | |
| 3805 } | |
| 3806 } | 3801 } |
| 3807 | 3802 |
| 3808 void FrameView::clearScrollAnchor() { | 3803 void FrameView::clearScrollAnchor() { |
| 3809 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) | 3804 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) |
| 3810 return; | 3805 return; |
| 3811 m_scrollAnchor.clear(); | 3806 m_scrollAnchor.clear(); |
| 3812 } | 3807 } |
| 3813 | 3808 |
| 3814 bool FrameView::hasOverlayScrollbars() const { | 3809 bool FrameView::hasOverlayScrollbars() const { |
| 3815 return (horizontalScrollbar() && | 3810 return (horizontalScrollbar() && |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4664 DCHECK(m_frame->isMainFrame()); | 4659 DCHECK(m_frame->isMainFrame()); |
| 4665 return m_initialViewportSize.width(); | 4660 return m_initialViewportSize.width(); |
| 4666 } | 4661 } |
| 4667 | 4662 |
| 4668 int FrameView::initialViewportHeight() const { | 4663 int FrameView::initialViewportHeight() const { |
| 4669 DCHECK(m_frame->isMainFrame()); | 4664 DCHECK(m_frame->isMainFrame()); |
| 4670 return m_initialViewportSize.height(); | 4665 return m_initialViewportSize.height(); |
| 4671 } | 4666 } |
| 4672 | 4667 |
| 4673 } // namespace blink | 4668 } // namespace blink |
| OLD | NEW |