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

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

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: - Created 3 years, 9 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
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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 } 556 }
557 557
558 int PaintLayerScrollableArea::visibleWidth() const { 558 int PaintLayerScrollableArea::visibleWidth() const {
559 return layer()->size().width(); 559 return layer()->size().width();
560 } 560 }
561 561
562 IntSize PaintLayerScrollableArea::contentsSize() const { 562 IntSize PaintLayerScrollableArea::contentsSize() const {
563 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight()); 563 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight());
564 } 564 }
565 565
566 void PaintLayerScrollableArea::contentsResized() {
567 ScrollableArea::contentsResized();
568 // Need to update the bounds of the scroll property.
569 box().setNeedsPaintPropertyUpdate();
570 }
571
566 bool PaintLayerScrollableArea::isScrollable() const { 572 bool PaintLayerScrollableArea::isScrollable() const {
567 return scrollsOverflow(); 573 return scrollsOverflow();
568 } 574 }
569 575
570 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const { 576 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const {
571 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() 577 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition()
572 : IntPoint(); 578 : IntPoint();
573 } 579 }
574 580
575 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const { 581 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const {
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
2114 2120
2115 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: 2121 void PaintLayerScrollableArea::DelayScrollOffsetClampScope::
2116 clampScrollableAreas() { 2122 clampScrollableAreas() {
2117 for (auto& scrollableArea : *s_needsClamp) 2123 for (auto& scrollableArea : *s_needsClamp)
2118 scrollableArea->clampScrollOffsetAfterOverflowChange(); 2124 scrollableArea->clampScrollOffsetAfterOverflowChange();
2119 delete s_needsClamp; 2125 delete s_needsClamp;
2120 s_needsClamp = nullptr; 2126 s_needsClamp = nullptr;
2121 } 2127 }
2122 2128
2123 } // namespace blink 2129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698