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

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

Issue 2289833002: Disable clipping on root scroller's ancestors. (Closed)
Patch Set: Created 4 years, 3 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant (inclusive) of the 331 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant (inclusive) of the
332 // clipping container for |m_owningLayer|. 332 // clipping container for |m_owningLayer|.
333 bool owningLayerClippedByLayerNotAboveCompositedAncestor(const PaintLayer* s crollParent); 333 bool owningLayerClippedByLayerNotAboveCompositedAncestor(const PaintLayer* s crollParent);
334 334
335 const PaintLayer* scrollParent(); 335 const PaintLayer* scrollParent();
336 336
337 // Clear the groupedMapping entry on the layer at the given index, only if t hat layer does 337 // Clear the groupedMapping entry on the layer at the given index, only if t hat layer does
338 // not appear earlier in the set of layers for this object. 338 // not appear earlier in the set of layers for this object.
339 bool invalidateLayerIfNoPrecedingEntry(size_t); 339 bool invalidateLayerIfNoPrecedingEntry(size_t);
340 340
341 // Disables clipping on layers that are ancestors of the root scroller. This allows the
342 // root scroller to expand and shrink its clipping layer in response to top controls
343 // movement and have it be visible to the user even if there's other masking layers above
344 // it in the hierarchy.
345 void setClippingOnRootScrollerAncestors();
chrishtr 2016/09/01 23:42:56 Name it disableClippingOnRootScrollerAncestors ins
bokan 2016/09/09 00:19:02 This method is gone now.
346
341 PaintLayer& m_owningLayer; 347 PaintLayer& m_owningLayer;
342 348
343 // The hierarchy of layers that is maintained by the CompositedLayerMapping looks like this: 349 // The hierarchy of layers that is maintained by the CompositedLayerMapping looks like this:
344 // 350 //
345 // + m_ancestorClippingLayer [OPTIONAL] 351 // + m_ancestorClippingLayer [OPTIONAL]
346 // + m_graphicsLayer 352 // + m_graphicsLayer
347 // + m_childTransformLayer [OPTIONAL] 353 // + m_childTransformLayer [OPTIONAL]
348 // | + m_childContainmentLayer [OPTIONAL] <-OR-> m_scrollingLayer [OPTI ONAL] 354 // | + m_childContainmentLayer [OPTIONAL] <-OR-> m_scrollingLayer [OPTI ONAL]
349 // | + m_scrollingContentsL ayer [Present iff m_scrollingLayer is present] 355 // | + m_scrollingContentsL ayer [Present iff m_scrollingLayer is present]
350 // + m_overflowControlsAncestorClippingLayer [OPTIONAL] // *The overflo w controls may need to be repositioned in the 356 // + m_overflowControlsAncestorClippingLayer [OPTIONAL] // *The overflo w controls may need to be repositioned in the
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 473
468 // Keep track of whether the background is painted onto the scrolling conten ts layer for invalidations. 474 // Keep track of whether the background is painted onto the scrolling conten ts layer for invalidations.
469 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1; 475 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1;
470 476
471 friend class CompositedLayerMappingTest; 477 friend class CompositedLayerMappingTest;
472 }; 478 };
473 479
474 } // namespace blink 480 } // namespace blink
475 481
476 #endif // CompositedLayerMapping_h 482 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698