| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 , m_visibleContentStatusDirty(true) | 159 , m_visibleContentStatusDirty(true) |
| 160 , m_hasVisibleContent(false) | 160 , m_hasVisibleContent(false) |
| 161 , m_visibleDescendantStatusDirty(false) | 161 , m_visibleDescendantStatusDirty(false) |
| 162 , m_hasVisibleDescendant(false) | 162 , m_hasVisibleDescendant(false) |
| 163 , m_isPaginated(false) | 163 , m_isPaginated(false) |
| 164 , m_3DTransformedDescendantStatusDirty(true) | 164 , m_3DTransformedDescendantStatusDirty(true) |
| 165 , m_has3DTransformedDescendant(false) | 165 , m_has3DTransformedDescendant(false) |
| 166 #if USE(ACCELERATED_COMPOSITING) | 166 #if USE(ACCELERATED_COMPOSITING) |
| 167 , m_hasCompositingDescendant(false) | 167 , m_hasCompositingDescendant(false) |
| 168 , m_indirectCompositingReason(NoIndirectCompositingReason) | 168 , m_indirectCompositingReason(NoIndirectCompositingReason) |
| 169 , m_viewportConstrainedNotCompositedReason(NoNotCompositedReason) |
| 169 #endif | 170 #endif |
| 170 , m_containsDirtyOverlayScrollbars(false) | 171 , m_containsDirtyOverlayScrollbars(false) |
| 171 , m_updatingMarqueePosition(false) | 172 , m_updatingMarqueePosition(false) |
| 172 #if !ASSERT_DISABLED | 173 #if !ASSERT_DISABLED |
| 173 , m_layerListMutationAllowed(true) | 174 , m_layerListMutationAllowed(true) |
| 174 #endif | 175 #endif |
| 175 , m_canSkipRepaintRectsUpdateOnScroll(renderer->isTableCell()) | 176 , m_canSkipRepaintRectsUpdateOnScroll(renderer->isTableCell()) |
| 176 #if ENABLE(CSS_FILTERS) | 177 #if ENABLE(CSS_FILTERS) |
| 177 , m_hasFilterInfo(false) | 178 , m_hasFilterInfo(false) |
| 178 #endif | 179 #endif |
| (...skipping 3211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3390 // The updatingControlTints() painting pass goes through compositing lay
ers, | 3391 // The updatingControlTints() painting pass goes through compositing lay
ers, |
| 3391 // but we need to ensure that we don't cache clip rects computed with th
e wrong root in this case. | 3392 // but we need to ensure that we don't cache clip rects computed with th
e wrong root in this case. |
| 3392 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai
ntBehaviorFlattenCompositingLayers)) | 3393 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai
ntBehaviorFlattenCompositingLayers)) |
| 3393 paintFlags |= PaintLayerTemporaryClipRects; | 3394 paintFlags |= PaintLayerTemporaryClipRects; |
| 3394 else if (!backing()->paintsIntoWindow() | 3395 else if (!backing()->paintsIntoWindow() |
| 3395 && !backing()->paintsIntoCompositedAncestor() | 3396 && !backing()->paintsIntoCompositedAncestor() |
| 3396 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle
ction)) { | 3397 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle
ction)) { |
| 3397 // If this RenderLayer should paint into its backing, that will be d
one via RenderLayerBacking::paintIntoLayer(). | 3398 // If this RenderLayer should paint into its backing, that will be d
one via RenderLayerBacking::paintIntoLayer(). |
| 3398 return; | 3399 return; |
| 3399 } | 3400 } |
| 3400 } else if (compositor()->fixedPositionLayerNotCompositedReason(this) == Rend
erLayerCompositor::LayerBoundsOutOfView) { | 3401 } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBound
sOutOfView) { |
| 3401 // Don't paint out-of-view fixed position layers (when doing prepainting
) because they will never be visible | 3402 // Don't paint out-of-view viewport constrained layers (when doing prepa
inting) because they will never be visible |
| 3402 // unless their position or viewport size is changed. | 3403 // unless their position or viewport size is changed. |
| 3403 return; | 3404 return; |
| 3404 } | 3405 } |
| 3405 #endif | 3406 #endif |
| 3406 | 3407 |
| 3407 // Non self-painting leaf layers don't need to be painted as their renderer(
) should properly paint itself. | 3408 // Non self-painting leaf layers don't need to be painted as their renderer(
) should properly paint itself. |
| 3408 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) | 3409 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) |
| 3409 return; | 3410 return; |
| 3410 | 3411 |
| 3411 if (shouldSuppressPaintingLayer(this)) | 3412 if (shouldSuppressPaintingLayer(this)) |
| (...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5767 } | 5768 } |
| 5768 } | 5769 } |
| 5769 | 5770 |
| 5770 void showLayerTree(const WebCore::RenderObject* renderer) | 5771 void showLayerTree(const WebCore::RenderObject* renderer) |
| 5771 { | 5772 { |
| 5772 if (!renderer) | 5773 if (!renderer) |
| 5773 return; | 5774 return; |
| 5774 showLayerTree(renderer->enclosingLayer()); | 5775 showLayerTree(renderer->enclosingLayer()); |
| 5775 } | 5776 } |
| 5776 #endif | 5777 #endif |
| OLD | NEW |