| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 if (layer->transformAncestor() != squashingLayer.transformAncestor()) | 166 if (layer->transformAncestor() != squashingLayer.transformAncestor()) |
| 167 return SquashingDisallowedReasonTransformAncestorMismatch; | 167 return SquashingDisallowedReasonTransformAncestorMismatch; |
| 168 | 168 |
| 169 if (layer->transform() && !layer->transform()->isIdentityOrTranslation()) | 169 if (layer->transform() && !layer->transform()->isIdentityOrTranslation()) |
| 170 return SquashingDisallowedReasonNonTranslationTransform; | 170 return SquashingDisallowedReasonNonTranslationTransform; |
| 171 | 171 |
| 172 if (layer->renderingContextRoot() != squashingLayer.renderingContextRoot()) | 172 if (layer->renderingContextRoot() != squashingLayer.renderingContextRoot()) |
| 173 return SquashingDisallowedReasonRenderingContextMismatch; | 173 return SquashingDisallowedReasonRenderingContextMismatch; |
| 174 | 174 |
| 175 if (layer->hasFilter() || layer->filterAncestor() != squashingLayer.filterAn
cestor()) | 175 if (layer->hasFilterInducingProperty() || layer->filterAncestor() != squashi
ngLayer.filterAncestor()) |
| 176 return SquashingDisallowedReasonFilterMismatch; | 176 return SquashingDisallowedReasonFilterMismatch; |
| 177 | 177 |
| 178 if (layer->nearestFixedPositionLayer() != squashingLayer.nearestFixedPositio
nLayer()) | 178 if (layer->nearestFixedPositionLayer() != squashingLayer.nearestFixedPositio
nLayer()) |
| 179 return SquashingDisallowedReasonNearestFixedPositionMismatch; | 179 return SquashingDisallowedReasonNearestFixedPositionMismatch; |
| 180 ASSERT(layer->layoutObject()->style()->position() != FixedPosition); | 180 ASSERT(layer->layoutObject()->style()->position() != FixedPosition); |
| 181 | 181 |
| 182 if ((squashingLayer.layoutObject()->style()->subtreeWillChangeContents() &&
squashingLayer.layoutObject()->style()->isRunningAnimationOnCompositor()) | 182 if ((squashingLayer.layoutObject()->style()->subtreeWillChangeContents() &&
squashingLayer.layoutObject()->style()->isRunningAnimationOnCompositor()) |
| 183 || squashingLayer.layoutObject()->style()->shouldCompositeForCurrentAnim
ations()) | 183 || squashingLayer.layoutObject()->style()->shouldCompositeForCurrentAnim
ations()) |
| 184 return SquashingDisallowedReasonSquashingLayerIsAnimating; | 184 return SquashingDisallowedReasonSquashingLayerIsAnimating; |
| 185 | 185 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 PaintLayerStackingNodeIterator iterator(*layer->stackingNode(), NormalFlowCh
ildren | PositiveZOrderChildren); | 310 PaintLayerStackingNodeIterator iterator(*layer->stackingNode(), NormalFlowCh
ildren | PositiveZOrderChildren); |
| 311 while (PaintLayerStackingNode* curNode = iterator.next()) | 311 while (PaintLayerStackingNode* curNode = iterator.next()) |
| 312 assignLayersToBackingsInternal(curNode->layer(), squashingState, layersN
eedingPaintInvalidation); | 312 assignLayersToBackingsInternal(curNode->layer(), squashingState, layersN
eedingPaintInvalidation); |
| 313 | 313 |
| 314 if (squashingState.hasMostRecentMapping && &squashingState.mostRecentMapping
->owningLayer() == layer) | 314 if (squashingState.hasMostRecentMapping && &squashingState.mostRecentMapping
->owningLayer() == layer) |
| 315 squashingState.haveAssignedBackingsToEntireSquashingLayerSubtree = true; | 315 squashingState.haveAssignedBackingsToEntireSquashingLayerSubtree = true; |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace blink | 318 } // namespace blink |
| OLD | NEW |