OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void rootFixedBackgroundsChanged(); | 177 void rootFixedBackgroundsChanged(); |
178 | 178 |
179 bool scrollingLayerDidChange(RenderLayer*); | 179 bool scrollingLayerDidChange(RenderLayer*); |
180 | 180 |
181 String layerTreeAsText(LayerTreeFlags); | 181 String layerTreeAsText(LayerTreeFlags); |
182 | 182 |
183 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } | 183 GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizo
ntalScrollbar.get(); } |
184 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } | 184 GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVertical
Scrollbar.get(); } |
185 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } | 185 GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.
get(); } |
186 | 186 |
187 void updateViewportConstraintStatus(RenderLayer*); | |
188 void removeViewportConstrainedLayer(RenderLayer*); | |
189 | |
190 void addOutOfFlowPositionedLayer(RenderLayer*); | 187 void addOutOfFlowPositionedLayer(RenderLayer*); |
191 void removeOutOfFlowPositionedLayer(RenderLayer*); | 188 void removeOutOfFlowPositionedLayer(RenderLayer*); |
192 | 189 |
193 void resetTrackedRepaintRects(); | 190 void resetTrackedRepaintRects(); |
194 void setTracksRepaints(bool); | 191 void setTracksRepaints(bool); |
195 | 192 |
196 void setNeedsToRecomputeCompositingRequirements() { m_needsToRecomputeCompos
itingRequirements = true; } | 193 void setNeedsToRecomputeCompositingRequirements() { m_needsToRecomputeCompos
itingRequirements = true; } |
197 | 194 |
198 virtual String debugName(const GraphicsLayer*) OVERRIDE; | 195 virtual String debugName(const GraphicsLayer*) OVERRIDE; |
199 | 196 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 244 |
248 void updateOverflowControlsLayers(); | 245 void updateOverflowControlsLayers(); |
249 | 246 |
250 void notifyIFramesOfCompositingChange(); | 247 void notifyIFramesOfCompositingChange(); |
251 | 248 |
252 Page* page() const; | 249 Page* page() const; |
253 | 250 |
254 GraphicsLayerFactory* graphicsLayerFactory() const; | 251 GraphicsLayerFactory* graphicsLayerFactory() const; |
255 ScrollingCoordinator* scrollingCoordinator() const; | 252 ScrollingCoordinator* scrollingCoordinator() const; |
256 | 253 |
257 void addViewportConstrainedLayer(RenderLayer*); | |
258 | |
259 bool compositingLayersNeedRebuild(); | 254 bool compositingLayersNeedRebuild(); |
260 | 255 |
261 void enableCompositingModeIfNeeded(); | 256 void enableCompositingModeIfNeeded(); |
262 | 257 |
263 bool requiresHorizontalScrollbarLayer() const; | 258 bool requiresHorizontalScrollbarLayer() const; |
264 bool requiresVerticalScrollbarLayer() const; | 259 bool requiresVerticalScrollbarLayer() const; |
265 bool requiresScrollCornerLayer() const; | 260 bool requiresScrollCornerLayer() const; |
266 #if USE(RUBBER_BANDING) | 261 #if USE(RUBBER_BANDING) |
267 bool requiresOverhangLayers() const; | 262 bool requiresOverhangLayers() const; |
268 #endif | 263 #endif |
(...skipping 26 matching lines...) Expand all Loading... |
295 bool m_needsUpdateCompositingRequirementsState; | 290 bool m_needsUpdateCompositingRequirementsState; |
296 bool m_needsUpdateFixedBackground; | 291 bool m_needsUpdateFixedBackground; |
297 bool m_isTrackingRepaints; // Used for testing. | 292 bool m_isTrackingRepaints; // Used for testing. |
298 | 293 |
299 RootLayerAttachment m_rootLayerAttachment; | 294 RootLayerAttachment m_rootLayerAttachment; |
300 | 295 |
301 // Enclosing container layer, which clips for iframe content | 296 // Enclosing container layer, which clips for iframe content |
302 OwnPtr<GraphicsLayer> m_containerLayer; | 297 OwnPtr<GraphicsLayer> m_containerLayer; |
303 OwnPtr<GraphicsLayer> m_scrollLayer; | 298 OwnPtr<GraphicsLayer> m_scrollLayer; |
304 | 299 |
305 HashSet<RenderLayer*> m_viewportConstrainedLayers; | |
306 HashSet<RenderLayer*> m_viewportConstrainedLayersNeedingUpdate; | |
307 | |
308 // This is used in updateCompositingRequirementsState to avoid full tree | 300 // This is used in updateCompositingRequirementsState to avoid full tree |
309 // walks while determining if layers have unclipped descendants. | 301 // walks while determining if layers have unclipped descendants. |
310 HashSet<RenderLayer*> m_outOfFlowPositionedLayers; | 302 HashSet<RenderLayer*> m_outOfFlowPositionedLayers; |
311 | 303 |
312 // Enclosing layer for overflow controls and the clipping layer | 304 // Enclosing layer for overflow controls and the clipping layer |
313 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; | 305 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; |
314 | 306 |
315 // Layers for overflow controls | 307 // Layers for overflow controls |
316 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; | 308 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; |
317 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; | 309 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; |
318 OwnPtr<GraphicsLayer> m_layerForScrollCorner; | 310 OwnPtr<GraphicsLayer> m_layerForScrollCorner; |
319 #if USE(RUBBER_BANDING) | 311 #if USE(RUBBER_BANDING) |
320 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; | 312 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; |
321 #endif | 313 #endif |
322 }; | 314 }; |
323 | 315 |
324 } // namespace WebCore | 316 } // namespace WebCore |
325 | 317 |
326 #endif // RenderLayerCompositor_h | 318 #endif // RenderLayerCompositor_h |
OLD | NEW |