OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 m_hasVisibleNonLayerContent = false; | 635 m_hasVisibleNonLayerContent = false; |
636 for (RenderObject* r = renderer()->slowFirstChild(); r; r = r->nextSibling()
) { | 636 for (RenderObject* r = renderer()->slowFirstChild(); r; r = r->nextSibling()
) { |
637 if (!r->hasLayer()) { | 637 if (!r->hasLayer()) { |
638 m_hasVisibleNonLayerContent = true; | 638 m_hasVisibleNonLayerContent = true; |
639 break; | 639 break; |
640 } | 640 } |
641 } | 641 } |
642 | 642 |
643 m_hasNonCompositedChild = false; | 643 m_hasNonCompositedChild = false; |
644 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
{ | 644 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
{ |
645 if (child->compositingState() == NotComposited) { | 645 if (child->compositingState() == NotComposited || child->compositingStat
e() == HasOwnBackingButPaintsIntoAncestor) { |
646 m_hasNonCompositedChild = true; | 646 m_hasNonCompositedChild = true; |
647 return; | 647 return; |
648 } | 648 } |
649 } | 649 } |
650 } | 650 } |
651 | 651 |
652 // The descendant-dependent flags system is badly broken because we clean dirty | 652 // The descendant-dependent flags system is badly broken because we clean dirty |
653 // bits in upward tree walks, which means we need to call updateDescendantDepend
entFlags | 653 // bits in upward tree walks, which means we need to call updateDescendantDepend
entFlags |
654 // at every node in the tree to fully clean all the dirty bits. While we'll in | 654 // at every node in the tree to fully clean all the dirty bits. While we'll in |
655 // the process of fixing this issue, updateDescendantDependentFlagsForEntireSubt
ree | 655 // the process of fixing this issue, updateDescendantDependentFlagsForEntireSubt
ree |
(...skipping 3089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3745 } | 3745 } |
3746 } | 3746 } |
3747 | 3747 |
3748 void showLayerTree(const blink::RenderObject* renderer) | 3748 void showLayerTree(const blink::RenderObject* renderer) |
3749 { | 3749 { |
3750 if (!renderer) | 3750 if (!renderer) |
3751 return; | 3751 return; |
3752 showLayerTree(renderer->enclosingLayer()); | 3752 showLayerTree(renderer->enclosingLayer()); |
3753 } | 3753 } |
3754 #endif | 3754 #endif |
OLD | NEW |