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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2929873002: Shifting layer position for sticky element to avoid passing unnessary variable to cc (Closed)
Patch Set: Test update Created 3 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
OLDNEW
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
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 bool UsesCompositedStickyPosition() const;
flackr 2017/06/09 17:33:33 Add a comment. This function is determining whethe
yigu 2017/06/09 17:41:16 Done.
374
373 void CreatePrimaryGraphicsLayer(); 375 void CreatePrimaryGraphicsLayer();
374 void DestroyGraphicsLayers(); 376 void DestroyGraphicsLayers();
375 377
376 std::unique_ptr<GraphicsLayer> CreateGraphicsLayer( 378 std::unique_ptr<GraphicsLayer> CreateGraphicsLayer(
377 CompositingReasons, 379 CompositingReasons,
378 SquashingDisallowedReasons = kSquashingDisallowedReasonsNone); 380 SquashingDisallowedReasons = kSquashingDisallowedReasonsNone);
379 bool ToggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&, 381 bool ToggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&,
380 bool needs_layer, 382 bool needs_layer,
381 CompositingReasons); 383 CompositingReasons);
382 384
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 unsigned background_paints_onto_graphics_layer_ : 1; 709 unsigned background_paints_onto_graphics_layer_ : 1;
708 710
709 bool draws_background_onto_content_layer_; 711 bool draws_background_onto_content_layer_;
710 712
711 friend class CompositedLayerMappingTest; 713 friend class CompositedLayerMappingTest;
712 }; 714 };
713 715
714 } // namespace blink 716 } // namespace blink
715 717
716 #endif // CompositedLayerMapping_h 718 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698