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

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

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Bug fix Created 3 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 class ComputedStyle; 61 class ComputedStyle;
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 ScrollingCoordinator; 66 class ScrollingCoordinator;
67 class StickyPositionScrollingConstraints; 67 class StickyPositionScrollingConstraints;
68 class SubtreeLayoutScope; 68 class SubtreeLayoutScope;
69 69
70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints>
71 StickyConstraintsMap;
72
73 struct CORE_EXPORT PaintLayerScrollableAreaRareData { 70 struct CORE_EXPORT PaintLayerScrollableAreaRareData {
74 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 71 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
75 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 72 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
76 73
77 public: 74 public:
78 PaintLayerScrollableAreaRareData(); 75 PaintLayerScrollableAreaRareData();
79 76
80 StickyConstraintsMap sticky_constraints_map_; 77 StickyConstraintsMap sticky_constraints_map_;
81 }; 78 };
82 79
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 609
613 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 610 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
614 ScrollableArea, 611 ScrollableArea,
615 scrollableArea, 612 scrollableArea,
616 scrollableArea->IsPaintLayerScrollableArea(), 613 scrollableArea->IsPaintLayerScrollableArea(),
617 scrollableArea.IsPaintLayerScrollableArea()); 614 scrollableArea.IsPaintLayerScrollableArea());
618 615
619 } // namespace blink 616 } // namespace blink
620 617
621 #endif // LayerScrollableArea_h 618 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698