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

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: Simplify sticky box rect calculation. Created 4 years, 5 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/Source/core/page/scrolling/StickyPositionScrollingConstraints.h ('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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class HitTestResult; 64 class HitTestResult;
65 class LayoutBox; 65 class LayoutBox;
66 class LayoutScrollbarPart; 66 class LayoutScrollbarPart;
67 class PaintLayer; 67 class PaintLayer;
68 class PlatformEvent; 68 class PlatformEvent;
69 class StickyPositionScrollingConstraints; 69 class StickyPositionScrollingConstraints;
70 class SubtreeLayoutScope; 70 class SubtreeLayoutScope;
71 71
72 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap; 72 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap;
73 73
74 struct PaintLayerScrollableAreaRareData { 74 struct CORE_EXPORT PaintLayerScrollableAreaRareData {
75 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 75 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
76 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 76 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
77 public: 77 public:
78 PaintLayerScrollableAreaRareData(); 78 PaintLayerScrollableAreaRareData();
79 79
80 StickyConstraintsMap m_stickyConstraintsMap; 80 StickyConstraintsMap m_stickyConstraintsMap;
81 }; 81 };
82 82
83 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox. 83 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox.
84 // 84 //
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 #endif 542 #endif
543 }; 543 };
544 544
545 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 545 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
546 scrollableArea->isPaintLayerScrollableArea(), 546 scrollableArea->isPaintLayerScrollableArea(),
547 scrollableArea.isPaintLayerScrollableArea()); 547 scrollableArea.isPaintLayerScrollableArea());
548 548
549 } // namespace blink 549 } // namespace blink
550 550
551 #endif // LayerScrollableArea_h 551 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698