| 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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1901 DisableCompositingQueryAsserts disabler; | 1901 DisableCompositingQueryAsserts disabler; |
| 1902 | 1902 |
| 1903 if (compositingState() != NotComposited && compositingState() != PaintsIntoG
roupedBacking) { | 1903 if (compositingState() != NotComposited && compositingState() != PaintsIntoG
roupedBacking) { |
| 1904 // The updatingControlTints() painting pass goes through compositing lay
ers, | 1904 // The updatingControlTints() painting pass goes through compositing lay
ers, |
| 1905 // but we need to ensure that we don't cache clip rects computed with th
e wrong root in this case. | 1905 // but we need to ensure that we don't cache clip rects computed with th
e wrong root in this case. |
| 1906 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai
ntBehaviorFlattenCompositingLayers)) { | 1906 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai
ntBehaviorFlattenCompositingLayers)) { |
| 1907 paintFlags |= PaintLayerTemporaryClipRects; | 1907 paintFlags |= PaintLayerTemporaryClipRects; |
| 1908 } else if (!compositedLayerMapping()->paintsIntoCompositedAncestor() | 1908 } else if (!compositedLayerMapping()->paintsIntoCompositedAncestor() |
| 1909 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle
ction) | 1909 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle
ction) |
| 1910 && !paintForFixedRootBackground(this, paintFlags)) { | 1910 && !paintForFixedRootBackground(this, paintFlags)) { |
| 1911 // If this RenderLayer should paint into its own backing, that will
be done via CompositedLayerMapping::paintIntoLayer(). | 1911 // If this RenderLayer should paint into its own backing, that will
be done via CompositedLayerMapping::paintContents() |
| 1912 // and CompositedLayerMapping::doPaintTask(). |
| 1912 return; | 1913 return; |
| 1913 } | 1914 } |
| 1914 } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBound
sOutOfView) { | 1915 } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBound
sOutOfView) { |
| 1915 // Don't paint out-of-view viewport constrained layers (when doing prepa
inting) because they will never be visible | 1916 // Don't paint out-of-view viewport constrained layers (when doing prepa
inting) because they will never be visible |
| 1916 // unless their position or viewport size is changed. | 1917 // unless their position or viewport size is changed. |
| 1917 return; | 1918 return; |
| 1918 } | 1919 } |
| 1919 | 1920 |
| 1920 // Non self-painting leaf layers don't need to be painted as their renderer(
) should properly paint itself. | 1921 // Non self-painting leaf layers don't need to be painted as their renderer(
) should properly paint itself. |
| 1921 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) | 1922 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) |
| (...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4021 } | 4022 } |
| 4022 } | 4023 } |
| 4023 | 4024 |
| 4024 void showLayerTree(const WebCore::RenderObject* renderer) | 4025 void showLayerTree(const WebCore::RenderObject* renderer) |
| 4025 { | 4026 { |
| 4026 if (!renderer) | 4027 if (!renderer) |
| 4027 return; | 4028 return; |
| 4028 showLayerTree(renderer->enclosingLayer()); | 4029 showLayerTree(renderer->enclosingLayer()); |
| 4029 } | 4030 } |
| 4030 #endif | 4031 #endif |
| OLD | NEW |