Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 const FloatSize& relative_compositing_bounds_size, | 363 const FloatSize& relative_compositing_bounds_size, |
| 364 const IntRect& clipping_box); | 364 const IntRect& clipping_box); |
| 365 void UpdateBackgroundLayerGeometry( | 365 void UpdateBackgroundLayerGeometry( |
| 366 const FloatSize& relative_compositing_bounds_size); | 366 const FloatSize& relative_compositing_bounds_size); |
| 367 void UpdateDecorationOutlineLayerGeometry( | 367 void UpdateDecorationOutlineLayerGeometry( |
| 368 const FloatSize& relative_compositing_bounds_size); | 368 const FloatSize& relative_compositing_bounds_size); |
| 369 void UpdateScrollingLayerGeometry(const IntRect& local_compositing_bounds); | 369 void UpdateScrollingLayerGeometry(const IntRect& local_compositing_bounds); |
| 370 void UpdateChildClippingMaskLayerGeometry(); | 370 void UpdateChildClippingMaskLayerGeometry(); |
| 371 void UpdateStickyConstraints(const ComputedStyle&); | 371 void UpdateStickyConstraints(const ComputedStyle&); |
| 372 | 372 |
| 373 // This function is determining whether the compositor will be responsible for | |
|
flackr
2017/06/09 17:49:52
Sorry, I didn't mean that comment literally. For c
yigu
2017/06/09 18:06:07
Done.
| |
| 374 // applying the sticky position offset for this composited layer. | |
| 375 bool UsesCompositedStickyPosition() const; | |
| 376 | |
| 373 void CreatePrimaryGraphicsLayer(); | 377 void CreatePrimaryGraphicsLayer(); |
| 374 void DestroyGraphicsLayers(); | 378 void DestroyGraphicsLayers(); |
| 375 | 379 |
| 376 std::unique_ptr<GraphicsLayer> CreateGraphicsLayer( | 380 std::unique_ptr<GraphicsLayer> CreateGraphicsLayer( |
| 377 CompositingReasons, | 381 CompositingReasons, |
| 378 SquashingDisallowedReasons = kSquashingDisallowedReasonsNone); | 382 SquashingDisallowedReasons = kSquashingDisallowedReasonsNone); |
| 379 bool ToggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&, | 383 bool ToggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&, |
| 380 bool needs_layer, | 384 bool needs_layer, |
| 381 CompositingReasons); | 385 CompositingReasons); |
| 382 | 386 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 707 unsigned background_paints_onto_graphics_layer_ : 1; | 711 unsigned background_paints_onto_graphics_layer_ : 1; |
| 708 | 712 |
| 709 bool draws_background_onto_content_layer_; | 713 bool draws_background_onto_content_layer_; |
| 710 | 714 |
| 711 friend class CompositedLayerMappingTest; | 715 friend class CompositedLayerMappingTest; |
| 712 }; | 716 }; |
| 713 | 717 |
| 714 } // namespace blink | 718 } // namespace blink |
| 715 | 719 |
| 716 #endif // CompositedLayerMapping_h | 720 #endif // CompositedLayerMapping_h |
| OLD | NEW |