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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h

Issue 1636563003: Put rare PaintLayer fields into PaintLayerRareData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 void willDestroyScrollableArea(ScrollableArea*); 104 void willDestroyScrollableArea(ScrollableArea*);
105 // Returns true if the coordinator handled this change. 105 // Returns true if the coordinator handled this change.
106 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); 106 bool scrollableAreaScrollLayerDidChange(ScrollableArea*);
107 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); 107 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion);
108 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); 108 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool);
109 void updateLayerPositionConstraint(PaintLayer*); 109 void updateLayerPositionConstraint(PaintLayer*);
110 void touchEventTargetRectsDidChange(); 110 void touchEventTargetRectsDidChange();
111 void willDestroyLayer(PaintLayer*); 111 void willDestroyLayer(PaintLayer*);
112 112
113 void updateScrollParentForGraphicsLayer(GraphicsLayer* child, PaintLayer* pa rent); 113 void updateScrollParentForGraphicsLayer(GraphicsLayer* child, const PaintLay er* parent);
114 void updateClipParentForGraphicsLayer(GraphicsLayer* child, PaintLayer* pare nt); 114 void updateClipParentForGraphicsLayer(GraphicsLayer* child, const PaintLayer * parent);
115 115
116 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); 116 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons);
117 String mainThreadScrollingReasonsAsText() const; 117 String mainThreadScrollingReasonsAsText() const;
118 Region computeShouldHandleScrollGestureOnMainThreadRegion(const LocalFrame*, const IntPoint& frameLocation) const; 118 Region computeShouldHandleScrollGestureOnMainThreadRegion(const LocalFrame*, const IntPoint& frameLocation) const;
119 119
120 void updateTouchEventTargetRectsIfNeeded(); 120 void updateTouchEventTargetRectsIfNeeded();
121 121
122 // For testing purposes only. This ScrollingCoordinator is reused between la yout test, and must be reset 122 // For testing purposes only. This ScrollingCoordinator is reused between la yout test, and must be reset
123 // for the results to be valid. 123 // for the results to be valid.
124 void reset(); 124 void reset();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ScrollbarMap m_verticalScrollbars; 161 ScrollbarMap m_verticalScrollbars;
162 HashSet<const PaintLayer*> m_layersWithTouchRects; 162 HashSet<const PaintLayer*> m_layersWithTouchRects;
163 bool m_wasFrameScrollable; 163 bool m_wasFrameScrollable;
164 164
165 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 165 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
166 }; 166 };
167 167
168 } // namespace blink 168 } // namespace blink
169 169
170 #endif // ScrollingCoordinator_h 170 #endif // ScrollingCoordinator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698