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

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

Issue 2685883004: Explicitly invalidate LayoutView when overflow is recalculated. (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 scrollingCoordinator->notifyOverflowUpdated(); 808 scrollingCoordinator->notifyOverflowUpdated();
809 809
810 IntRect documentRect = layoutViewItem.documentRect(); 810 IntRect documentRect = layoutViewItem.documentRect();
811 if (scrollOrigin() == -documentRect.location() && 811 if (scrollOrigin() == -documentRect.location() &&
812 contentsSize() == documentRect.size()) 812 contentsSize() == documentRect.size())
813 return; 813 return;
814 814
815 if (needsLayout()) 815 if (needsLayout())
816 return; 816 return;
817 817
818 layoutViewItem.setMayNeedPaintInvalidation();
pdr. 2017/02/10 22:25:33 Yeah I think this patch looks like the bug. We sho
bokan 2017/02/21 22:14:14 Yah, I agree we can avoid the scrollbar updates be
819
818 // TODO(pdr): This should be refactored to just block scrollbar updates as 820 // TODO(pdr): This should be refactored to just block scrollbar updates as
819 // we are not in a scrollbar update here and m_inUpdateScrollbars has other 821 // we are not in a scrollbar update here and m_inUpdateScrollbars has other
820 // side effects. This scope is only for preventing a synchronous layout from 822 // side effects. This scope is only for preventing a synchronous layout from
821 // scroll origin changes which would not be allowed during style recalc. 823 // scroll origin changes which would not be allowed during style recalc.
822 InUpdateScrollbarsScope inUpdateScrollbarsScope(this); 824 InUpdateScrollbarsScope inUpdateScrollbarsScope(this);
823 825
824 bool shouldHaveHorizontalScrollbar = false; 826 bool shouldHaveHorizontalScrollbar = false;
825 bool shouldHaveVerticalScrollbar = false; 827 bool shouldHaveVerticalScrollbar = false;
826 computeScrollbarExistence(shouldHaveHorizontalScrollbar, 828 computeScrollbarExistence(shouldHaveHorizontalScrollbar,
827 shouldHaveVerticalScrollbar, documentRect.size()); 829 shouldHaveVerticalScrollbar, documentRect.size());
(...skipping 4271 matching lines...) Expand 10 before | Expand all | Expand 10 after
5099 std::unique_ptr<CompositorAnimationTimeline> timeline) { 5101 std::unique_ptr<CompositorAnimationTimeline> timeline) {
5100 m_animationTimeline = std::move(timeline); 5102 m_animationTimeline = std::move(timeline);
5101 } 5103 }
5102 5104
5103 void FrameView::setAnimationHost( 5105 void FrameView::setAnimationHost(
5104 std::unique_ptr<CompositorAnimationHost> host) { 5106 std::unique_ptr<CompositorAnimationHost> host) {
5105 m_animationHost = std::move(host); 5107 m_animationHost = std::move(host);
5106 } 5108 }
5107 5109
5108 } // namespace blink 5110 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698