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

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

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Fix transform underinvalidation, skip several spinvalidation skips 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 3780 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698