| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 // Here we know that all children and the layer's own contents can blind
ly paint into | 321 // Here we know that all children and the layer's own contents can blind
ly paint into |
| 322 // this layer's backing, until a descendant is composited. So, we don't
need to check | 322 // this layer's backing, until a descendant is composited. So, we don't
need to check |
| 323 // for overlap with anything behind this layer. | 323 // for overlap with anything behind this layer. |
| 324 overlapMap.beginNewOverlapTestingContext(); | 324 overlapMap.beginNewOverlapTestingContext(); |
| 325 // This layer is going to be composited, so children can safely ignore t
he fact that there's an | 325 // This layer is going to be composited, so children can safely ignore t
he fact that there's an |
| 326 // animation running behind this layer, meaning they can rely on the ove
rlap map testing again. | 326 // animation running behind this layer, meaning they can rely on the ove
rlap map testing again. |
| 327 childRecursionData.m_testingOverlap = true; | 327 childRecursionData.m_testingOverlap = true; |
| 328 } | 328 } |
| 329 | 329 |
| 330 #if !ASSERT_DISABLED | 330 #if ASSERT_ENABLED |
| 331 LayerListMutationDetector mutationChecker(layer->stackingNode()); | 331 LayerListMutationDetector mutationChecker(layer->stackingNode()); |
| 332 #endif | 332 #endif |
| 333 | 333 |
| 334 bool anyDescendantHas3DTransform = false; | 334 bool anyDescendantHas3DTransform = false; |
| 335 bool willHaveForegroundLayer = false; | 335 bool willHaveForegroundLayer = false; |
| 336 | 336 |
| 337 if (layer->stackingNode()->isStackingContext()) { | 337 if (layer->stackingNode()->isStackingContext()) { |
| 338 RenderLayerStackingNodeIterator iterator(*layer->stackingNode(), Negativ
eZOrderChildren); | 338 RenderLayerStackingNodeIterator iterator(*layer->stackingNode(), Negativ
eZOrderChildren); |
| 339 while (RenderLayerStackingNode* curNode = iterator.next()) { | 339 while (RenderLayerStackingNode* curNode = iterator.next()) { |
| 340 IntRect absoluteChildDecendantBoundingBox; | 340 IntRect absoluteChildDecendantBoundingBox; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 layer->setCompositingReasons(reasonsToComposite); | 457 layer->setCompositingReasons(reasonsToComposite); |
| 458 | 458 |
| 459 } | 459 } |
| 460 | 460 |
| 461 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend
erObject* renderer) const | 461 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend
erObject* renderer) const |
| 462 { | 462 { |
| 463 return renderer->style()->hasCurrentTransformAnimation(); | 463 return renderer->style()->hasCurrentTransformAnimation(); |
| 464 } | 464 } |
| 465 | 465 |
| 466 } // namespace WebCore | 466 } // namespace WebCore |
| OLD | NEW |