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

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

Issue 2020103002: Fix sticky constraints and update sticky layer positions recursively after scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bugs with overflow scrollers in sticky position constraints, add unit tests, and test clipped b… Created 4 years, 6 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class HitTestResult; 62 class HitTestResult;
63 class LayoutBox; 63 class LayoutBox;
64 class LayoutScrollbarPart; 64 class LayoutScrollbarPart;
65 class PaintLayer; 65 class PaintLayer;
66 class PlatformEvent; 66 class PlatformEvent;
67 class StickyPositionScrollingConstraints; 67 class StickyPositionScrollingConstraints;
68 class SubtreeLayoutScope; 68 class SubtreeLayoutScope;
69 69
70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap; 70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap;
71 71
72 struct PaintLayerScrollableAreaRareData { 72 struct CORE_EXPORT PaintLayerScrollableAreaRareData {
73 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 73 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
74 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 74 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
75 public: 75 public:
76 PaintLayerScrollableAreaRareData(); 76 PaintLayerScrollableAreaRareData();
77 77
78 StickyConstraintsMap m_stickyConstraintsMap; 78 StickyConstraintsMap m_stickyConstraintsMap;
79 }; 79 };
80 80
81 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox. 81 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox.
82 // 82 //
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 #endif 459 #endif
460 }; 460 };
461 461
462 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 462 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
463 scrollableArea->isPaintLayerScrollableArea(), 463 scrollableArea->isPaintLayerScrollableArea(),
464 scrollableArea.isPaintLayerScrollableArea()); 464 scrollableArea.isPaintLayerScrollableArea());
465 465
466 } // namespace blink 466 } // namespace blink
467 467
468 #endif // LayerScrollableArea_h 468 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698