OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |