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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2857583007: [RLS] Don't add to ScrollableAreaSet if the size is zero (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@gmail.com> 10 * Christian Biesinger <cbiesinger@gmail.com>
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 scrolls_overflow_ = has_overflow && is_visible_to_hit_test; 1770 scrolls_overflow_ = has_overflow && is_visible_to_hit_test;
1771 if (did_scroll_overflow == ScrollsOverflow()) 1771 if (did_scroll_overflow == ScrollsOverflow())
1772 return; 1772 return;
1773 1773
1774 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { 1774 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
1775 // The scroll and scroll offset properties depend on |scrollsOverflow| (see: 1775 // The scroll and scroll offset properties depend on |scrollsOverflow| (see:
1776 // PaintPropertyTreeBuilder::updateScrollAndScrollTranslation). 1776 // PaintPropertyTreeBuilder::updateScrollAndScrollTranslation).
1777 Box().SetNeedsPaintPropertyUpdate(); 1777 Box().SetNeedsPaintPropertyUpdate();
1778 } 1778 }
1779 1779
1780 if (scrolls_overflow_) { 1780 if (scrolls_overflow_ && frame_view->IsScrollable()) {
Srirama 2017/05/05 06:21:22 IsScrollable is calling GetScrollingReasons and th
1781 DCHECK(CanHaveOverflowScrollbars(Box())); 1781 DCHECK(CanHaveOverflowScrollbars(Box()));
1782 frame_view->AddScrollableArea(this); 1782 frame_view->AddScrollableArea(this);
1783 } else { 1783 } else {
1784 frame_view->RemoveScrollableArea(this); 1784 frame_view->RemoveScrollableArea(this);
1785 } 1785 }
1786 } 1786 }
1787 1787
1788 void PaintLayerScrollableArea::UpdateCompositingLayersAfterScroll() { 1788 void PaintLayerScrollableArea::UpdateCompositingLayersAfterScroll() {
1789 PaintLayerCompositor* compositor = Box().View()->Compositor(); 1789 PaintLayerCompositor* compositor = Box().View()->Compositor();
1790 if (compositor->InCompositingMode()) { 1790 if (compositor->InCompositingMode()) {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 2177
2178 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: 2178 void PaintLayerScrollableArea::DelayScrollOffsetClampScope::
2179 ClampScrollableAreas() { 2179 ClampScrollableAreas() {
2180 for (auto& scrollable_area : *needs_clamp_) 2180 for (auto& scrollable_area : *needs_clamp_)
2181 scrollable_area->ClampScrollOffsetAfterOverflowChange(); 2181 scrollable_area->ClampScrollOffsetAfterOverflowChange();
2182 delete needs_clamp_; 2182 delete needs_clamp_;
2183 needs_clamp_ = nullptr; 2183 needs_clamp_ = nullptr;
2184 } 2184 }
2185 2185
2186 } // namespace blink 2186 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698