Chromium Code Reviews| 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 3411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3422 result.unite(m_reflectionInfo->reflectionLayer()->boundingBoxForComposit ing(this)); | 3422 result.unite(m_reflectionInfo->reflectionLayer()->boundingBoxForComposit ing(this)); |
| 3423 | 3423 |
| 3424 ASSERT(m_stackingNode->isStackingContainer() || !m_stackingNode->hasPositive ZOrderList()); | 3424 ASSERT(m_stackingNode->isStackingContainer() || !m_stackingNode->hasPositive ZOrderList()); |
| 3425 | 3425 |
| 3426 #if !ASSERT_DISABLED | 3426 #if !ASSERT_DISABLED |
| 3427 LayerListMutationDetector mutationChecker(const_cast<RenderLayer*>(this)->st ackingNode()); | 3427 LayerListMutationDetector mutationChecker(const_cast<RenderLayer*>(this)->st ackingNode()); |
| 3428 #endif | 3428 #endif |
| 3429 | 3429 |
| 3430 RenderLayerStackingNodeIterator iterator(*m_stackingNode.get(), AllChildren) ; | 3430 RenderLayerStackingNodeIterator iterator(*m_stackingNode.get(), AllChildren) ; |
| 3431 while (RenderLayerStackingNode* node = iterator.next()) { | 3431 while (RenderLayerStackingNode* node = iterator.next()) { |
| 3432 if (node->layer()->hasCompositedLayerMapping() && options != ApplyBounds ChickenEggHacks) | 3432 if (options != ApplyBoundsChickenEggHacks && node->layer()->compositingS tate() != NotComposited) |
|
Ian Vollick
2014/05/08 14:40:11
I was worried that if node->layer() was squashing,
| |
| 3433 continue; | 3433 continue; |
| 3434 result.unite(node->layer()->boundingBoxForCompositing(this, options)); | 3434 result.unite(node->layer()->boundingBoxForCompositing(this, options)); |
| 3435 } | 3435 } |
| 3436 | 3436 |
| 3437 // FIXME: We can optimize the size of the composited layers, by not enlargin g | 3437 // FIXME: We can optimize the size of the composited layers, by not enlargin g |
| 3438 // filtered areas with the outsets if we know that the filter is going to re nder in hardware. | 3438 // filtered areas with the outsets if we know that the filter is going to re nder in hardware. |
| 3439 // https://bugs.webkit.org/show_bug.cgi?id=81239 | 3439 // https://bugs.webkit.org/show_bug.cgi?id=81239 |
| 3440 m_renderer->style()->filterOutsets().expandRect(result); | 3440 m_renderer->style()->filterOutsets().expandRect(result); |
| 3441 | 3441 |
| 3442 if (shouldIncludeTransform) | 3442 if (shouldIncludeTransform) |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4016 } | 4016 } |
| 4017 } | 4017 } |
| 4018 | 4018 |
| 4019 void showLayerTree(const WebCore::RenderObject* renderer) | 4019 void showLayerTree(const WebCore::RenderObject* renderer) |
| 4020 { | 4020 { |
| 4021 if (!renderer) | 4021 if (!renderer) |
| 4022 return; | 4022 return; |
| 4023 showLayerTree(renderer->enclosingLayer()); | 4023 showLayerTree(renderer->enclosingLayer()); |
| 4024 } | 4024 } |
| 4025 #endif | 4025 #endif |
| OLD | NEW |