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

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

Issue 1999343002: Unify and provide one IsGarbageCollectedType<T> implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 4 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class LayoutBox; 62 class LayoutBox;
63 class PaintLayer; 63 class PaintLayer;
64 class LayoutScrollbarPart; 64 class LayoutScrollbarPart;
65 65
66 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap; 66 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap;
67 67
68 struct PaintLayerScrollableAreaRareData { 68 struct PaintLayerScrollableAreaRareData {
69 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 69 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
70 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 70 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
71 public: 71 public:
72 PaintLayerScrollableAreaRareData() {} 72 PaintLayerScrollableAreaRareData();
73 73
74 StickyConstraintsMap m_stickyConstraintsMap; 74 StickyConstraintsMap m_stickyConstraintsMap;
75 }; 75 };
76 76
77 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox. 77 // PaintLayerScrollableArea represents the scrollable area of a LayoutBox.
78 // 78 //
79 // To be scrollable, an element requires ‘overflow’ != visible. Note that this 79 // To be scrollable, an element requires ‘overflow’ != visible. Note that this
80 // doesn’t imply having scrollbars as you can always programmatically scroll 80 // doesn’t imply having scrollbars as you can always programmatically scroll
81 // when ‘overflow’ is hidden (using JavaScript's element.scrollTo or 81 // when ‘overflow’ is hidden (using JavaScript's element.scrollTo or
82 // scrollLeft). 82 // scrollLeft).
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 #endif 455 #endif
456 }; 456 };
457 457
458 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 458 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
459 scrollableArea->isPaintLayerScrollableArea(), 459 scrollableArea->isPaintLayerScrollableArea(),
460 scrollableArea.isPaintLayerScrollableArea()); 460 scrollableArea.isPaintLayerScrollableArea());
461 461
462 } // namespace blink 462 } // namespace blink
463 463
464 #endif // LayerScrollableArea_h 464 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698