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

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

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (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
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 bool hitTestResizerInFragments(const PaintLayerFragments&, 370 bool hitTestResizerInFragments(const PaintLayerFragments&,
371 const HitTestLocation&) const; 371 const HitTestLocation&) const;
372 372
373 // Returns the new offset, after scrolling, of the given rect in absolute 373 // Returns the new offset, after scrolling, of the given rect in absolute
374 // coordinates, clipped by the parent's client rect. 374 // coordinates, clipped by the parent's client rect.
375 LayoutRect scrollIntoView(const LayoutRect&, 375 LayoutRect scrollIntoView(const LayoutRect&,
376 const ScrollAlignment& alignX, 376 const ScrollAlignment& alignX,
377 const ScrollAlignment& alignY, 377 const ScrollAlignment& alignY,
378 ScrollType = ProgrammaticScroll) override; 378 ScrollType = ProgrammaticScroll) override;
379 379
380 ClientRectList* nonFastScrollableRects() const override;
381
380 // Returns true if scrollable area is in the FrameView's collection of 382 // Returns true if scrollable area is in the FrameView's collection of
381 // scrollable areas. This can only happen if we're scrollable, visible to hit 383 // scrollable areas. This can only happen if we're scrollable, visible to hit
382 // test, and do in fact overflow. This means that 'overflow: hidden' or 384 // test, and do in fact overflow. This means that 'overflow: hidden' or
383 // 'pointer-events: none' layers never get added to the FrameView's 385 // 'pointer-events: none' layers never get added to the FrameView's
384 // collection. 386 // collection.
385 bool scrollsOverflow() const { return m_scrollsOverflow; } 387 bool scrollsOverflow() const { return m_scrollsOverflow; }
386 388
387 // Rectangle encompassing the scroll corner and resizer rect. 389 // Rectangle encompassing the scroll corner and resizer rect.
388 IntRect scrollCornerAndResizerRect() const final; 390 IntRect scrollCornerAndResizerRect() const final;
389 391
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 599
598 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 600 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
599 ScrollableArea, 601 ScrollableArea,
600 scrollableArea, 602 scrollableArea,
601 scrollableArea->isPaintLayerScrollableArea(), 603 scrollableArea->isPaintLayerScrollableArea(),
602 scrollableArea.isPaintLayerScrollableArea()); 604 scrollableArea.isPaintLayerScrollableArea());
603 605
604 } // namespace blink 606 } // namespace blink
605 607
606 #endif // LayerScrollableArea_h 608 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698