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

Side by Side Diff: third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.h

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move compositor plumbing into a separate review. Created 5 years, 2 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // While we're updating the compositing inputs, these values may differ. 490 // While we're updating the compositing inputs, these values may differ.
491 // We should never be asking for this value when that is the case. 491 // We should never be asking for this value when that is the case.
492 ASSERT(m_needsDescendantDependentCompositingInputsUpdate == m_needsAnces torDependentCompositingInputsUpdate); 492 ASSERT(m_needsDescendantDependentCompositingInputsUpdate == m_needsAnces torDependentCompositingInputsUpdate);
493 return m_needsDescendantDependentCompositingInputsUpdate; 493 return m_needsDescendantDependentCompositingInputsUpdate;
494 } 494 }
495 495
496 void updateAncestorDependentCompositingInputs(const AncestorDependentComposi tingInputs&); 496 void updateAncestorDependentCompositingInputs(const AncestorDependentComposi tingInputs&);
497 void updateDescendantDependentCompositingInputs(const DescendantDependentCom positingInputs&); 497 void updateDescendantDependentCompositingInputs(const DescendantDependentCom positingInputs&);
498 void didUpdateCompositingInputs(); 498 void didUpdateCompositingInputs();
499 499
500 const AncestorDependentCompositingInputs& ancestorDependentCompositingInputs () const { ASSERT(!m_needsAncestorDependentCompositingInputsUpdate); return m_an cestorDependentCompositingInputs; } 500 const AncestorDependentCompositingInputs& ancestorDependentCompositingInputs () const
501 {
502 // TODO(flackr): When we process scroll updates after compositing update s we won't be querying ancestor
503 // dependent compositing inputs while they're still needed: http://crbug .com/420741.
504 ASSERT(isAllowedToQueryCompositingState() || !m_needsAncestorDependentCo mpositingInputsUpdate);
505 return m_ancestorDependentCompositingInputs;
506 }
501 const DescendantDependentCompositingInputs& descendantDependentCompositingIn puts() const { ASSERT(!m_needsDescendantDependentCompositingInputsUpdate); retur n m_descendantDependentCompositingInputs; } 507 const DescendantDependentCompositingInputs& descendantDependentCompositingIn puts() const { ASSERT(!m_needsDescendantDependentCompositingInputsUpdate); retur n m_descendantDependentCompositingInputs; }
502 508
503 IntRect clippedAbsoluteBoundingBox() const { return ancestorDependentComposi tingInputs().clippedAbsoluteBoundingBox; } 509 IntRect clippedAbsoluteBoundingBox() const { return ancestorDependentComposi tingInputs().clippedAbsoluteBoundingBox; }
504 const DeprecatedPaintLayer* opacityAncestor() const { return ancestorDepende ntCompositingInputs().opacityAncestor; } 510 const DeprecatedPaintLayer* opacityAncestor() const { return ancestorDepende ntCompositingInputs().opacityAncestor; }
505 const DeprecatedPaintLayer* transformAncestor() const { return ancestorDepen dentCompositingInputs().transformAncestor; } 511 const DeprecatedPaintLayer* transformAncestor() const { return ancestorDepen dentCompositingInputs().transformAncestor; }
506 const DeprecatedPaintLayer* filterAncestor() const { return ancestorDependen tCompositingInputs().filterAncestor; } 512 const DeprecatedPaintLayer* filterAncestor() const { return ancestorDependen tCompositingInputs().filterAncestor; }
507 const LayoutObject* clippingContainer() const { return ancestorDependentComp ositingInputs().clippingContainer; } 513 const LayoutObject* clippingContainer() const { return ancestorDependentComp ositingInputs().clippingContainer; }
508 const DeprecatedPaintLayer* ancestorScrollingLayer() const { return ancestor DependentCompositingInputs().ancestorScrollingLayer; } 514 const DeprecatedPaintLayer* ancestorScrollingLayer() const { return ancestor DependentCompositingInputs().ancestorScrollingLayer; }
509 const DeprecatedPaintLayer* nearestFixedPositionLayer() const { return ances torDependentCompositingInputs().nearestFixedPositionLayer; } 515 const DeprecatedPaintLayer* nearestFixedPositionLayer() const { return ances torDependentCompositingInputs().nearestFixedPositionLayer; }
510 DeprecatedPaintLayer* scrollParent() const { return const_cast<DeprecatedPai ntLayer*>(ancestorDependentCompositingInputs().scrollParent); } 516 DeprecatedPaintLayer* scrollParent() const { return const_cast<DeprecatedPai ntLayer*>(ancestorDependentCompositingInputs().scrollParent); }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 769
764 } // namespace blink 770 } // namespace blink
765 771
766 #ifndef NDEBUG 772 #ifndef NDEBUG
767 // Outside the WebCore namespace for ease of invocation from gdb. 773 // Outside the WebCore namespace for ease of invocation from gdb.
768 void showLayerTree(const blink::DeprecatedPaintLayer*); 774 void showLayerTree(const blink::DeprecatedPaintLayer*);
769 void showLayerTree(const blink::LayoutObject*); 775 void showLayerTree(const blink::LayoutObject*);
770 #endif 776 #endif
771 777
772 #endif // Layer_h 778 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698