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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // we won't need to use the "unclipped" concept for promotion any | 438 // we won't need to use the "unclipped" concept for promotion any |
439 // longer. | 439 // longer. |
440 unsigned isUnclippedDescendant : 1; | 440 unsigned isUnclippedDescendant : 1; |
441 unsigned hasAncestorWithClipPath : 1; | 441 unsigned hasAncestorWithClipPath : 1; |
442 }; | 442 }; |
443 | 443 |
444 class DescendantDependentCompositingInputs { | 444 class DescendantDependentCompositingInputs { |
445 public: | 445 public: |
446 DescendantDependentCompositingInputs() | 446 DescendantDependentCompositingInputs() |
447 : hasDescendantWithClipPath(false) | 447 : hasDescendantWithClipPath(false) |
448 , hasDescendantWithBlendMode(false) | 448 , hasNonIsolatedDescendantWithBlendMode(false) |
449 { } | 449 { } |
450 | 450 |
451 unsigned hasDescendantWithClipPath : 1; | 451 unsigned hasDescendantWithClipPath : 1; |
452 unsigned hasDescendantWithBlendMode : 1; | 452 unsigned hasNonIsolatedDescendantWithBlendMode : 1; |
453 }; | 453 }; |
454 | 454 |
455 void setNeedsCompositingInputsUpdate(); | 455 void setNeedsCompositingInputsUpdate(); |
456 bool childNeedsCompositingInputsUpdate() const { return m_childNeedsComposit
ingInputsUpdate; } | 456 bool childNeedsCompositingInputsUpdate() const { return m_childNeedsComposit
ingInputsUpdate; } |
457 bool needsCompositingInputsUpdate() const | 457 bool needsCompositingInputsUpdate() const |
458 { | 458 { |
459 // While we're updating the compositing inputs, these values may differ. | 459 // While we're updating the compositing inputs, these values may differ. |
460 // We should never be asking for this value when that is the case. | 460 // We should never be asking for this value when that is the case. |
461 ASSERT(m_needsDescendantDependentCompositingInputsUpdate == m_needsAnces
torDependentCompositingInputsUpdate); | 461 ASSERT(m_needsDescendantDependentCompositingInputsUpdate == m_needsAnces
torDependentCompositingInputsUpdate); |
462 return m_needsDescendantDependentCompositingInputsUpdate; | 462 return m_needsDescendantDependentCompositingInputsUpdate; |
(...skipping 10 matching lines...) Expand all Loading... |
473 const RenderLayer* opacityAncestor() const { return ancestorDependentComposi
tingInputs().opacityAncestor; } | 473 const RenderLayer* opacityAncestor() const { return ancestorDependentComposi
tingInputs().opacityAncestor; } |
474 const RenderLayer* transformAncestor() const { return ancestorDependentCompo
sitingInputs().transformAncestor; } | 474 const RenderLayer* transformAncestor() const { return ancestorDependentCompo
sitingInputs().transformAncestor; } |
475 const RenderLayer* filterAncestor() const { return ancestorDependentComposit
ingInputs().filterAncestor; } | 475 const RenderLayer* filterAncestor() const { return ancestorDependentComposit
ingInputs().filterAncestor; } |
476 const RenderObject* clippingContainer() const { return ancestorDependentComp
ositingInputs().clippingContainer; } | 476 const RenderObject* clippingContainer() const { return ancestorDependentComp
ositingInputs().clippingContainer; } |
477 const RenderLayer* ancestorScrollingLayer() const { return ancestorDependent
CompositingInputs().ancestorScrollingLayer; } | 477 const RenderLayer* ancestorScrollingLayer() const { return ancestorDependent
CompositingInputs().ancestorScrollingLayer; } |
478 RenderLayer* scrollParent() const { return const_cast<RenderLayer*>(ancestor
DependentCompositingInputs().scrollParent); } | 478 RenderLayer* scrollParent() const { return const_cast<RenderLayer*>(ancestor
DependentCompositingInputs().scrollParent); } |
479 RenderLayer* clipParent() const { return const_cast<RenderLayer*>(ancestorDe
pendentCompositingInputs().clipParent); } | 479 RenderLayer* clipParent() const { return const_cast<RenderLayer*>(ancestorDe
pendentCompositingInputs().clipParent); } |
480 bool isUnclippedDescendant() const { return ancestorDependentCompositingInpu
ts().isUnclippedDescendant; } | 480 bool isUnclippedDescendant() const { return ancestorDependentCompositingInpu
ts().isUnclippedDescendant; } |
481 bool hasAncestorWithClipPath() const { return ancestorDependentCompositingIn
puts().hasAncestorWithClipPath; } | 481 bool hasAncestorWithClipPath() const { return ancestorDependentCompositingIn
puts().hasAncestorWithClipPath; } |
482 bool hasDescendantWithClipPath() const { return descendantDependentCompositi
ngInputs().hasDescendantWithClipPath; } | 482 bool hasDescendantWithClipPath() const { return descendantDependentCompositi
ngInputs().hasDescendantWithClipPath; } |
483 bool hasDescendantWithBlendMode() const { return descendantDependentComposit
ingInputs().hasDescendantWithBlendMode; } | 483 bool hasNonIsolatedDescendantWithBlendMode() const { return descendantDepend
entCompositingInputs().hasNonIsolatedDescendantWithBlendMode; } |
484 | 484 |
485 bool lostGroupedMapping() const { ASSERT(isAllowedToQueryCompositingState())
; return m_lostGroupedMapping; } | 485 bool lostGroupedMapping() const { ASSERT(isAllowedToQueryCompositingState())
; return m_lostGroupedMapping; } |
486 void setLostGroupedMapping(bool b) { m_lostGroupedMapping = b; } | 486 void setLostGroupedMapping(bool b) { m_lostGroupedMapping = b; } |
487 | 487 |
488 CompositingReasons compositingReasons() const { ASSERT(isAllowedToQueryCompo
sitingState()); return m_compositingReasons; } | 488 CompositingReasons compositingReasons() const { ASSERT(isAllowedToQueryCompo
sitingState()); return m_compositingReasons; } |
489 void setCompositingReasons(CompositingReasons, CompositingReasons mask = Com
positingReasonAll); | 489 void setCompositingReasons(CompositingReasons, CompositingReasons mask = Com
positingReasonAll); |
490 | 490 |
491 bool hasCompositingDescendant() const { ASSERT(isAllowedToQueryCompositingSt
ate()); return m_hasCompositingDescendant; } | 491 bool hasCompositingDescendant() const { ASSERT(isAllowedToQueryCompositingSt
ate()); return m_hasCompositingDescendant; } |
492 void setHasCompositingDescendant(bool); | 492 void setHasCompositingDescendant(bool); |
493 | 493 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 | 709 |
710 } // namespace blink | 710 } // namespace blink |
711 | 711 |
712 #ifndef NDEBUG | 712 #ifndef NDEBUG |
713 // Outside the WebCore namespace for ease of invocation from gdb. | 713 // Outside the WebCore namespace for ease of invocation from gdb. |
714 void showLayerTree(const blink::RenderLayer*); | 714 void showLayerTree(const blink::RenderLayer*); |
715 void showLayerTree(const blink::RenderObject*); | 715 void showLayerTree(const blink::RenderObject*); |
716 #endif | 716 #endif |
717 | 717 |
718 #endif // RenderLayer_h | 718 #endif // RenderLayer_h |
OLD | NEW |