Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Simpler fix for overflowclip Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3773 matching lines...) Expand 10 before | Expand all | Expand 10 after
3784 } 3784 }
3785 3785
3786 if (scrollType != AnchoringScroll && scrollType != ClampingScroll) 3786 if (scrollType != AnchoringScroll && scrollType != ClampingScroll)
3787 clearScrollAnchor(); 3787 clearScrollAnchor();
3788 } 3788 }
3789 3789
3790 void FrameView::didChangeScrollOffset() { 3790 void FrameView::didChangeScrollOffset() {
3791 frame().loader().client()->didChangeScrollOffset(); 3791 frame().loader().client()->didChangeScrollOffset();
3792 if (frame().isMainFrame()) 3792 if (frame().isMainFrame())
3793 frame().host()->chromeClient().mainFrameScrollOffsetChanged(); 3793 frame().host()->chromeClient().mainFrameScrollOffsetChanged();
3794
3795 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
3796 // The scroll translation paint property depends on scroll offset.
3797 setNeedsPaintPropertyUpdate();
3798 }
3799 } 3794 }
3800 3795
3801 void FrameView::clearScrollAnchor() { 3796 void FrameView::clearScrollAnchor() {
3802 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled()) 3797 if (!RuntimeEnabledFeatures::scrollAnchoringEnabled())
3803 return; 3798 return;
3804 m_scrollAnchor.clear(); 3799 m_scrollAnchor.clear();
3805 } 3800 }
3806 3801
3807 bool FrameView::hasOverlayScrollbars() const { 3802 bool FrameView::hasOverlayScrollbars() const {
3808 return (horizontalScrollbar() && 3803 return (horizontalScrollbar() &&
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
4657 DCHECK(m_frame->isMainFrame()); 4652 DCHECK(m_frame->isMainFrame());
4658 return m_initialViewportSize.width(); 4653 return m_initialViewportSize.width();
4659 } 4654 }
4660 4655
4661 int FrameView::initialViewportHeight() const { 4656 int FrameView::initialViewportHeight() const {
4662 DCHECK(m_frame->isMainFrame()); 4657 DCHECK(m_frame->isMainFrame());
4663 return m_initialViewportSize.height(); 4658 return m_initialViewportSize.height();
4664 } 4659 }
4665 4660
4666 } // namespace blink 4661 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698