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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 | 2471 |
2472 // IFrames are special, because we hook compositing layers together across ifram
e boundaries | 2472 // IFrames are special, because we hook compositing layers together across ifram
e boundaries |
2473 // when both parent and iframe content are composited. So when this frame become
s composited, we have | 2473 // when both parent and iframe content are composited. So when this frame become
s composited, we have |
2474 // to use a synthetic style change to get the iframes into RenderLayers in order
to allow them to composite. | 2474 // to use a synthetic style change to get the iframes into RenderLayers in order
to allow them to composite. |
2475 void RenderLayerCompositor::notifyIFramesOfCompositingChange() | 2475 void RenderLayerCompositor::notifyIFramesOfCompositingChange() |
2476 { | 2476 { |
2477 if (!m_renderView->frameView()) | 2477 if (!m_renderView->frameView()) |
2478 return; | 2478 return; |
2479 Frame& frame = m_renderView->frameView()->frame(); | 2479 Frame& frame = m_renderView->frameView()->frame(); |
2480 | 2480 |
| 2481 DocumentLifecycle::DeprecatedTransition marker(DocumentLifecycle::AfterPerfo
rmLayout, DocumentLifecycle::StyleRecalcPending); |
| 2482 |
2481 for (Frame* child = frame.tree().firstChild(); child; child = child->tree().
traverseNext(&frame)) { | 2483 for (Frame* child = frame.tree().firstChild(); child; child = child->tree().
traverseNext(&frame)) { |
2482 if (child->document() && child->document()->ownerElement()) | 2484 if (child->document() && child->document()->ownerElement()) |
2483 child->document()->ownerElement()->scheduleLayerUpdate(); | 2485 child->document()->ownerElement()->scheduleLayerUpdate(); |
2484 } | 2486 } |
2485 | 2487 |
2486 // Compositing also affects the answer to RenderIFrame::requiresAcceleratedC
ompositing(), so | 2488 // Compositing also affects the answer to RenderIFrame::requiresAcceleratedC
ompositing(), so |
2487 // we need to schedule a style recalc in our parent document. | 2489 // we need to schedule a style recalc in our parent document. |
2488 if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElem
ent()) | 2490 if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElem
ent()) |
2489 ownerElement->scheduleLayerUpdate(); | 2491 ownerElement->scheduleLayerUpdate(); |
2490 } | 2492 } |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2639 } else if (graphicsLayer == m_scrollLayer.get()) { | 2641 } else if (graphicsLayer == m_scrollLayer.get()) { |
2640 name = "Frame Scrolling Layer"; | 2642 name = "Frame Scrolling Layer"; |
2641 } else { | 2643 } else { |
2642 ASSERT_NOT_REACHED(); | 2644 ASSERT_NOT_REACHED(); |
2643 } | 2645 } |
2644 | 2646 |
2645 return name; | 2647 return name; |
2646 } | 2648 } |
2647 | 2649 |
2648 } // namespace WebCore | 2650 } // namespace WebCore |
OLD | NEW |