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

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

Issue 2698843004: Correct for enclosing layers scroll position in sticky_data->main_thread_offset (Closed)
Patch Set: Address reviewer comments Created 3 years, 9 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bool needsToReparentOverflowControls() const; 240 bool needsToReparentOverflowControls() const;
241 241
242 // Removes the overflow controls host layer from its parent and positions it 242 // Removes the overflow controls host layer from its parent and positions it
243 // so that it can be inserted as a sibling to this CLM without changing 243 // so that it can be inserted as a sibling to this CLM without changing
244 // position. 244 // position.
245 GraphicsLayer* detachLayerForOverflowControls(); 245 GraphicsLayer* detachLayerForOverflowControls();
246 246
247 void updateFilters(const ComputedStyle&); 247 void updateFilters(const ComputedStyle&);
248 void updateBackdropFilters(const ComputedStyle&); 248 void updateBackdropFilters(const ComputedStyle&);
249 249
250 void updateStickyConstraints(const ComputedStyle&);
251
252 void setBlendMode(WebBlendMode); 250 void setBlendMode(WebBlendMode);
253 251
254 bool needsGraphicsLayerUpdate() { 252 bool needsGraphicsLayerUpdate() {
255 return m_pendingUpdateScope > GraphicsLayerUpdateNone; 253 return m_pendingUpdateScope > GraphicsLayerUpdateNone;
256 } 254 }
257 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { 255 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) {
258 m_pendingUpdateScope = std::max( 256 m_pendingUpdateScope = std::max(
259 static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScope), scope); 257 static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScope), scope);
260 } 258 }
261 void clearNeedsGraphicsLayerUpdate() { 259 void clearNeedsGraphicsLayerUpdate() {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 const IntRect& relativeCompositingBounds); 356 const IntRect& relativeCompositingBounds);
359 void updateForegroundLayerGeometry( 357 void updateForegroundLayerGeometry(
360 const FloatSize& relativeCompositingBoundsSize, 358 const FloatSize& relativeCompositingBoundsSize,
361 const IntRect& clippingBox); 359 const IntRect& clippingBox);
362 void updateBackgroundLayerGeometry( 360 void updateBackgroundLayerGeometry(
363 const FloatSize& relativeCompositingBoundsSize); 361 const FloatSize& relativeCompositingBoundsSize);
364 void updateDecorationOutlineLayerGeometry( 362 void updateDecorationOutlineLayerGeometry(
365 const FloatSize& relativeCompositingBoundsSize); 363 const FloatSize& relativeCompositingBoundsSize);
366 void updateScrollingLayerGeometry(const IntRect& localCompositingBounds); 364 void updateScrollingLayerGeometry(const IntRect& localCompositingBounds);
367 void updateChildClippingMaskLayerGeometry(); 365 void updateChildClippingMaskLayerGeometry();
366 void updateStickyConstraints(const ComputedStyle&, const PaintLayer*);
368 367
369 void createPrimaryGraphicsLayer(); 368 void createPrimaryGraphicsLayer();
370 void destroyGraphicsLayers(); 369 void destroyGraphicsLayers();
371 370
372 std::unique_ptr<GraphicsLayer> createGraphicsLayer( 371 std::unique_ptr<GraphicsLayer> createGraphicsLayer(
373 CompositingReasons, 372 CompositingReasons,
374 SquashingDisallowedReasons = SquashingDisallowedReasonsNone); 373 SquashingDisallowedReasons = SquashingDisallowedReasonsNone);
375 bool toggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&, 374 bool toggleScrollbarLayerIfNeeded(std::unique_ptr<GraphicsLayer>&,
376 bool needsLayer, 375 bool needsLayer,
377 CompositingReasons); 376 CompositingReasons);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; 701 unsigned m_backgroundPaintsOntoGraphicsLayer : 1;
703 702
704 bool m_drawsBackgroundOntoContentLayer; 703 bool m_drawsBackgroundOntoContentLayer;
705 704
706 friend class CompositedLayerMappingTest; 705 friend class CompositedLayerMappingTest;
707 }; 706 };
708 707
709 } // namespace blink 708 } // namespace blink
710 709
711 #endif // CompositedLayerMapping_h 710 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698