OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 void CompositedLayerMapping::updateCompositedBounds() | 315 void CompositedLayerMapping::updateCompositedBounds() |
316 { | 316 { |
317 ASSERT(m_owningLayer.compositor()->lifecycle().state() == DocumentLifecycle:
:InCompositingUpdate); | 317 ASSERT(m_owningLayer.compositor()->lifecycle().state() == DocumentLifecycle:
:InCompositingUpdate); |
318 // FIXME: if this is really needed for performance, it would be better to st
ore it on RenderLayer. | 318 // FIXME: if this is really needed for performance, it would be better to st
ore it on RenderLayer. |
319 m_compositedBounds = m_owningLayer.boundingBoxForCompositing(); | 319 m_compositedBounds = m_owningLayer.boundingBoxForCompositing(); |
320 m_contentOffsetInCompositingLayerDirty = true; | 320 m_contentOffsetInCompositingLayerDirty = true; |
321 } | 321 } |
322 | 322 |
323 void CompositedLayerMapping::updateAfterWidgetResize() | 323 void CompositedLayerMapping::updateAfterPartResize() |
324 { | 324 { |
325 if (renderer()->isRenderPart()) { | 325 if (renderer()->isRenderPart()) { |
326 if (RenderLayerCompositor* innerCompositor = RenderLayerCompositor::fram
eContentsCompositor(toRenderPart(renderer()))) { | 326 if (RenderLayerCompositor* innerCompositor = RenderLayerCompositor::fram
eContentsCompositor(toRenderPart(renderer()))) { |
327 innerCompositor->frameViewDidChangeSize(); | 327 innerCompositor->frameViewDidChangeSize(); |
328 // We can floor this point because our frameviews are always aligned
to pixel boundaries. | 328 // We can floor this point because our frameviews are always aligned
to pixel boundaries. |
329 ASSERT(m_compositedBounds.location() == flooredIntPoint(m_composited
Bounds.location())); | 329 ASSERT(m_compositedBounds.location() == flooredIntPoint(m_composited
Bounds.location())); |
330 innerCompositor->frameViewDidChangeLocation(flooredIntPoint(contents
Box().location())); | 330 innerCompositor->frameViewDidChangeLocation(flooredIntPoint(contents
Box().location())); |
331 } | 331 } |
332 } | 332 } |
333 } | 333 } |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 | 700 |
701 if (RuntimeEnabledFeatures::cssCompositingEnabled()) { | 701 if (RuntimeEnabledFeatures::cssCompositingEnabled()) { |
702 updateLayerBlendMode(renderer()->style()); | 702 updateLayerBlendMode(renderer()->style()); |
703 updateIsRootForIsolatedGroup(); | 703 updateIsRootForIsolatedGroup(); |
704 } | 704 } |
705 | 705 |
706 updateContentsRect(); | 706 updateContentsRect(); |
707 updateBackgroundColor(); | 707 updateBackgroundColor(); |
708 updateDrawsContent(); | 708 updateDrawsContent(); |
709 updateContentsOpaque(); | 709 updateContentsOpaque(); |
710 updateAfterWidgetResize(); | 710 updateAfterPartResize(); |
711 updateRenderingContext(); | 711 updateRenderingContext(); |
712 updateShouldFlattenTransform(); | 712 updateShouldFlattenTransform(); |
713 updateChildrenTransform(); | 713 updateChildrenTransform(); |
714 updateScrollParent(compositor()->preferCompositingToLCDTextEnabled() ? m_own
ingLayer.scrollParent() : 0); | 714 updateScrollParent(compositor()->preferCompositingToLCDTextEnabled() ? m_own
ingLayer.scrollParent() : 0); |
715 registerScrollingLayers(); | 715 registerScrollingLayers(); |
716 | 716 |
717 updateCompositingReasons(); | 717 updateCompositingReasons(); |
718 } | 718 } |
719 | 719 |
720 void CompositedLayerMapping::updateMainGraphicsLayerGeometry(const IntRect& rela
tiveCompositingBounds, const IntRect& localCompositingBounds, const IntPoint& gr
aphicsLayerParentLocation) | 720 void CompositedLayerMapping::updateMainGraphicsLayerGeometry(const IntRect& rela
tiveCompositingBounds, const IntRect& localCompositingBounds, const IntPoint& gr
aphicsLayerParentLocation) |
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2374 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
2375 name = "Scrolling Block Selection Layer"; | 2375 name = "Scrolling Block Selection Layer"; |
2376 } else { | 2376 } else { |
2377 ASSERT_NOT_REACHED(); | 2377 ASSERT_NOT_REACHED(); |
2378 } | 2378 } |
2379 | 2379 |
2380 return name; | 2380 return name; |
2381 } | 2381 } |
2382 | 2382 |
2383 } // namespace blink | 2383 } // namespace blink |
OLD | NEW |