| 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 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3592 childLocalRect.moveBy(-childOffset); | 3592 childLocalRect.moveBy(-childOffset); |
| 3593 | 3593 |
| 3594 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) | 3594 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) |
| 3595 return true; | 3595 return true; |
| 3596 } | 3596 } |
| 3597 return false; | 3597 return false; |
| 3598 } | 3598 } |
| 3599 | 3599 |
| 3600 bool RenderLayer::shouldBeSelfPaintingLayer() const | 3600 bool RenderLayer::shouldBeSelfPaintingLayer() const |
| 3601 { | 3601 { |
| 3602 if (renderer()->isRenderPart() && toRenderPart(renderer())->requiresAccelera
tedCompositing()) |
| 3603 return true; |
| 3602 return m_layerType == NormalLayer | 3604 return m_layerType == NormalLayer |
| 3603 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) | 3605 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) |
| 3604 || needsCompositedScrolling(); | 3606 || needsCompositedScrolling(); |
| 3605 } | 3607 } |
| 3606 | 3608 |
| 3607 void RenderLayer::updateSelfPaintingLayer() | 3609 void RenderLayer::updateSelfPaintingLayer() |
| 3608 { | 3610 { |
| 3609 bool isSelfPaintingLayer = this->shouldBeSelfPaintingLayer(); | 3611 bool isSelfPaintingLayer = this->shouldBeSelfPaintingLayer(); |
| 3610 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) | 3612 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) |
| 3611 return; | 3613 return; |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3947 } | 3949 } |
| 3948 } | 3950 } |
| 3949 | 3951 |
| 3950 void showLayerTree(const WebCore::RenderObject* renderer) | 3952 void showLayerTree(const WebCore::RenderObject* renderer) |
| 3951 { | 3953 { |
| 3952 if (!renderer) | 3954 if (!renderer) |
| 3953 return; | 3955 return; |
| 3954 showLayerTree(renderer->enclosingLayer()); | 3956 showLayerTree(renderer->enclosingLayer()); |
| 3955 } | 3957 } |
| 3956 #endif | 3958 #endif |
| OLD | NEW |