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 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3776 || renderer()->hasMask() | 3776 || renderer()->hasMask() |
3777 || renderer()->isTableRow() | 3777 || renderer()->isTableRow() |
3778 || renderer()->isCanvas() | 3778 || renderer()->isCanvas() |
3779 || renderer()->isVideo() | 3779 || renderer()->isVideo() |
3780 || renderer()->isEmbeddedObject() | 3780 || renderer()->isEmbeddedObject() |
3781 || renderer()->isRenderIFrame(); | 3781 || renderer()->isRenderIFrame(); |
3782 } | 3782 } |
3783 | 3783 |
3784 void RenderLayer::updateSelfPaintingLayer() | 3784 void RenderLayer::updateSelfPaintingLayer() |
3785 { | 3785 { |
3786 bool isSelfPaintingLayer = this->shouldBeSelfPaintingLayer(); | 3786 bool isSelfPaintingLayer = shouldBeSelfPaintingLayer(); |
3787 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) | 3787 if (m_isSelfPaintingLayer == isSelfPaintingLayer) |
3788 return; | 3788 return; |
3789 | 3789 |
3790 m_isSelfPaintingLayer = isSelfPaintingLayer; | 3790 m_isSelfPaintingLayer = isSelfPaintingLayer; |
3791 if (!parent()) | 3791 if (!parent()) |
3792 return; | 3792 return; |
3793 if (isSelfPaintingLayer) | 3793 if (isSelfPaintingLayer) |
3794 parent()->setAncestorChainHasSelfPaintingLayerDescendant(); | 3794 parent()->setAncestorChainHasSelfPaintingLayerDescendant(); |
3795 else | 3795 else |
3796 parent()->dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); | 3796 parent()->dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); |
3797 } | 3797 } |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4163 } | 4163 } |
4164 } | 4164 } |
4165 | 4165 |
4166 void showLayerTree(const WebCore::RenderObject* renderer) | 4166 void showLayerTree(const WebCore::RenderObject* renderer) |
4167 { | 4167 { |
4168 if (!renderer) | 4168 if (!renderer) |
4169 return; | 4169 return; |
4170 showLayerTree(renderer->enclosingLayer()); | 4170 showLayerTree(renderer->enclosingLayer()); |
4171 } | 4171 } |
4172 #endif | 4172 #endif |
OLD | NEW |