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 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 compositedLayerMappingChanged = true; | 452 compositedLayerMappingChanged = true; |
453 } | 453 } |
454 | 454 |
455 break; | 455 break; |
456 case RemoveFromSquashingLayer: | 456 case RemoveFromSquashingLayer: |
457 case NoCompositingStateChange: | 457 case NoCompositingStateChange: |
458 // Do nothing. | 458 // Do nothing. |
459 break; | 459 break; |
460 } | 460 } |
461 | 461 |
462 if (layer->hasCompositedLayerMapping() && layer->compositedLayerMapping()->u
pdateRequiresOwnBackingStoreForIntrinsicReasons()) { | |
463 compositedLayerMappingChanged = true; | |
464 layer->compositedLayerMapping()->setNeedsGraphicsLayerUpdate(GraphicsLay
erUpdateSubtree); | |
465 } | |
466 | |
467 if (compositedLayerMappingChanged && layer->renderer()->isRenderPart()) { | 462 if (compositedLayerMappingChanged && layer->renderer()->isRenderPart()) { |
468 RenderLayerCompositor* innerCompositor = frameContentsCompositor(toRende
rPart(layer->renderer())); | 463 RenderLayerCompositor* innerCompositor = frameContentsCompositor(toRende
rPart(layer->renderer())); |
469 if (innerCompositor && innerCompositor->staleInCompositingMode()) | 464 if (innerCompositor && innerCompositor->staleInCompositingMode()) |
470 innerCompositor->updateRootLayerAttachment(); | 465 innerCompositor->updateRootLayerAttachment(); |
471 } | 466 } |
472 | 467 |
473 if (compositedLayerMappingChanged) | 468 if (compositedLayerMappingChanged) |
474 layer->clipper().clearClipRectsIncludingDescendants(PaintingClipRects); | 469 layer->clipper().clearClipRectsIncludingDescendants(PaintingClipRects); |
475 | 470 |
476 // If a fixed position layer gained/lost a compositedLayerMapping or the rea
son not compositing it changed, | 471 // If a fixed position layer gained/lost a compositedLayerMapping or the rea
son not compositing it changed, |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 } else if (graphicsLayer == m_scrollLayer.get()) { | 1188 } else if (graphicsLayer == m_scrollLayer.get()) { |
1194 name = "LocalFrame Scrolling Layer"; | 1189 name = "LocalFrame Scrolling Layer"; |
1195 } else { | 1190 } else { |
1196 ASSERT_NOT_REACHED(); | 1191 ASSERT_NOT_REACHED(); |
1197 } | 1192 } |
1198 | 1193 |
1199 return name; | 1194 return name; |
1200 } | 1195 } |
1201 | 1196 |
1202 } // namespace blink | 1197 } // namespace blink |
OLD | NEW |