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

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

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: Speculatively remove call to UpdateScrollbars() 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 IntRect ScrollableAreaBoundingBox() const override; 290 IntRect ScrollableAreaBoundingBox() const override;
291 void RegisterForAnimation() override; 291 void RegisterForAnimation() override;
292 void DeregisterForAnimation() override; 292 void DeregisterForAnimation() override;
293 bool UserInputScrollable(ScrollbarOrientation) const override; 293 bool UserInputScrollable(ScrollbarOrientation) const override;
294 bool ShouldPlaceVerticalScrollbarOnLeft() const override; 294 bool ShouldPlaceVerticalScrollbarOnLeft() const override;
295 int PageStep(ScrollbarOrientation) const override; 295 int PageStep(ScrollbarOrientation) const override;
296 ScrollBehavior ScrollBehaviorStyle() const override; 296 ScrollBehavior ScrollBehaviorStyle() const override;
297 CompositorAnimationHost* GetCompositorAnimationHost() const override; 297 CompositorAnimationHost* GetCompositorAnimationHost() const override;
298 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; 298 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override;
299 299
300 LayoutSize ClientSize() const;
301 IntSize PixelSnappedClientSize() const;
302
300 void VisibleSizeChanged(); 303 void VisibleSizeChanged();
301 304
302 // FIXME: We shouldn't allow access to m_overflowRect outside this class. 305 // FIXME: We shouldn't allow access to m_overflowRect outside this class.
303 LayoutRect OverflowRect() const { return overflow_rect_; } 306 LayoutRect OverflowRect() const { return overflow_rect_; }
304 307
305 void ScrollToAbsolutePosition( 308 void ScrollToAbsolutePosition(
306 const FloatPoint& position, 309 const FloatPoint& position,
307 ScrollBehavior scroll_behavior = kScrollBehaviorInstant, 310 ScrollBehavior scroll_behavior = kScrollBehaviorInstant,
308 ScrollType scroll_type = kProgrammaticScroll) { 311 ScrollType scroll_type = kProgrammaticScroll) {
309 SetScrollOffset(position - ScrollOrigin(), scroll_type, scroll_behavior); 312 SetScrollOffset(position - ScrollOrigin(), scroll_type, scroll_behavior);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 604
602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 605 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
603 ScrollableArea, 606 ScrollableArea,
604 scrollableArea, 607 scrollableArea,
605 scrollableArea->IsPaintLayerScrollableArea(), 608 scrollableArea->IsPaintLayerScrollableArea(),
606 scrollableArea.IsPaintLayerScrollableArea()); 609 scrollableArea.IsPaintLayerScrollableArea());
607 610
608 } // namespace blink 611 } // namespace blink
609 612
610 #endif // LayerScrollableArea_h 613 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698