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

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

Issue 2008063002: Add ScrollEnums.h, so that PaintLayerScrollableArea.h doesn't have to include LayoutBox.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ScrollEnums.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 27 matching lines...) Expand all
38 * deletingthe provisions above and replace them with the notice and 38 * deletingthe provisions above and replace them with the notice and
39 * other provisions required by the MPL or the GPL, as the case may be. 39 * other provisions required by the MPL or the GPL, as the case may be.
40 * If you do not delete the provisions above, a recipient may use your 40 * If you do not delete the provisions above, a recipient may use your
41 * version of this file under any of the LGPL, the MPL or the GPL. 41 * version of this file under any of the LGPL, the MPL or the GPL.
42 */ 42 */
43 43
44 #ifndef PaintLayerScrollableArea_h 44 #ifndef PaintLayerScrollableArea_h
45 #define PaintLayerScrollableArea_h 45 #define PaintLayerScrollableArea_h
46 46
47 #include "core/CoreExport.h" 47 #include "core/CoreExport.h"
48 #include "core/layout/LayoutBox.h"
49 #include "core/layout/ScrollAnchor.h" 48 #include "core/layout/ScrollAnchor.h"
49 #include "core/layout/ScrollEnums.h"
50 #include "core/paint/PaintInvalidationCapableScrollableArea.h" 50 #include "core/paint/PaintInvalidationCapableScrollableArea.h"
51 #include "core/paint/PaintLayerFragment.h" 51 #include "core/paint/PaintLayerFragment.h"
52 #include "platform/heap/Handle.h" 52 #include "platform/heap/Handle.h"
53 53
54 namespace blink { 54 namespace blink {
55 55
56 enum ResizerHitTestType { 56 enum ResizerHitTestType {
57 ResizerForPointer, 57 ResizerForPointer,
58 ResizerForTouch 58 ResizerForTouch
59 }; 59 };
60 60
61 class ComputedStyle;
62 class HitTestResult;
63 class LayoutBox;
64 class LayoutScrollbarPart;
65 class PaintLayer;
61 class PlatformEvent; 66 class PlatformEvent;
62 class LayoutBox; 67 class StickyPositionScrollingConstraints;
63 class PaintLayer; 68 class SubtreeLayoutScope;
64 class LayoutScrollbarPart;
65 69
66 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap; 70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> StickyCons traintsMap;
67 71
68 struct PaintLayerScrollableAreaRareData { 72 struct PaintLayerScrollableAreaRareData {
69 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 73 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
70 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 74 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
71 public: 75 public:
72 PaintLayerScrollableAreaRareData(); 76 PaintLayerScrollableAreaRareData();
73 77
74 StickyConstraintsMap m_stickyConstraintsMap; 78 StickyConstraintsMap m_stickyConstraintsMap;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 #endif 459 #endif
456 }; 460 };
457 461
458 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 462 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
459 scrollableArea->isPaintLayerScrollableArea(), 463 scrollableArea->isPaintLayerScrollableArea(),
460 scrollableArea.isPaintLayerScrollableArea()); 464 scrollableArea.isPaintLayerScrollableArea());
461 465
462 } // namespace blink 466 } // namespace blink
463 467
464 #endif // LayerScrollableArea_h 468 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ScrollEnums.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698