| 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 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3779 } | 3779 } |
| 3780 | 3780 |
| 3781 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) | 3781 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) |
| 3782 clearScrollAnchor(); | 3782 clearScrollAnchor(); |
| 3783 } | 3783 } |
| 3784 | 3784 |
| 3785 void FrameView::didChangeScrollOffset() { | 3785 void FrameView::didChangeScrollOffset() { |
| 3786 frame().loader().client()->didChangeScrollOffset(); | 3786 frame().loader().client()->didChangeScrollOffset(); |
| 3787 if (frame().isMainFrame()) | 3787 if (frame().isMainFrame()) |
| 3788 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); | 3788 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); |
| 3789 | |
| 3790 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { | |
| 3791 // The scroll translation paint property depends on scroll offset. | |
| 3792 setNeedsPaintPropertyUpdate(); | |
| 3793 } | |
| 3794 } | 3789 } |
| 3795 | 3790 |
| 3796 void FrameView::clearScrollAnchor() { | 3791 void FrameView::clearScrollAnchor() { |
| 3797 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) | 3792 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) |
| 3798 return; | 3793 return; |
| 3799 m_scrollAnchor.clear(); | 3794 m_scrollAnchor.clear(); |
| 3800 } | 3795 } |
| 3801 | 3796 |
| 3802 bool FrameView::hasOverlayScrollbars() const { | 3797 bool FrameView::hasOverlayScrollbars() const { |
| 3803 return (horizontalScrollbar() && | 3798 return (horizontalScrollbar() && |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4652 DCHECK(m_frame->isMainFrame()); | 4647 DCHECK(m_frame->isMainFrame()); |
| 4653 return m_initialViewportSize.width(); | 4648 return m_initialViewportSize.width(); |
| 4654 } | 4649 } |
| 4655 | 4650 |
| 4656 int FrameView::initialViewportHeight() const { | 4651 int FrameView::initialViewportHeight() const { |
| 4657 DCHECK(m_frame->isMainFrame()); | 4652 DCHECK(m_frame->isMainFrame()); |
| 4658 return m_initialViewportSize.height(); | 4653 return m_initialViewportSize.height(); |
| 4659 } | 4654 } |
| 4660 | 4655 |
| 4661 } // namespace blink | 4656 } // namespace blink |
| OLD | NEW |