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 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2461 return; | 2461 return; |
2462 Frame& frame = m_renderView->frameView()->frame(); | 2462 Frame& frame = m_renderView->frameView()->frame(); |
2463 | 2463 |
2464 for (Frame* child = frame.tree().firstChild(); child; child = child->tree(). traverseNext(&frame)) { | 2464 for (Frame* child = frame.tree().firstChild(); child; child = child->tree(). traverseNext(&frame)) { |
2465 if (child->document() && child->document()->ownerElement()) | 2465 if (child->document() && child->document()->ownerElement()) |
2466 child->document()->ownerElement()->scheduleLayerUpdate(); | 2466 child->document()->ownerElement()->scheduleLayerUpdate(); |
2467 } | 2467 } |
2468 | 2468 |
2469 // Compositing also affects the answer to RenderIFrame::requiresAcceleratedC ompositing(), so | 2469 // Compositing also affects the answer to RenderIFrame::requiresAcceleratedC ompositing(), so |
2470 // we need to schedule a style recalc in our parent document. | 2470 // we need to schedule a style recalc in our parent document. |
2471 if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElem ent()) | 2471 if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElem ent()) { |
2472 ownerElement->document().renderView()->compositor()->setNeedsToRecompute CompositingRequirements(); | |
2472 ownerElement->scheduleLayerUpdate(); | 2473 ownerElement->scheduleLayerUpdate(); |
2474 } | |
abarth-chromium
2014/02/06 03:27:50
I ran into this same function when working on putt
dstockwell
2014/02/06 03:36:19
I think that's the main reason this is broken at h
| |
2473 } | 2475 } |
2474 | 2476 |
2475 bool RenderLayerCompositor::layerHas3DContent(const RenderLayer* layer) const | 2477 bool RenderLayerCompositor::layerHas3DContent(const RenderLayer* layer) const |
2476 { | 2478 { |
2477 const RenderStyle* style = layer->renderer()->style(); | 2479 const RenderStyle* style = layer->renderer()->style(); |
2478 RenderLayerStackingNode* stackingNode = const_cast<RenderLayer*>(layer)->sta ckingNode(); | 2480 RenderLayerStackingNode* stackingNode = const_cast<RenderLayer*>(layer)->sta ckingNode(); |
2479 | 2481 |
2480 if (style && | 2482 if (style && |
2481 (style->transformStyle3D() == TransformStyle3DPreserve3D || | 2483 (style->transformStyle3D() == TransformStyle3DPreserve3D || |
2482 style->hasPerspective() || | 2484 style->hasPerspective() || |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2622 } else if (graphicsLayer == m_scrollLayer.get()) { | 2624 } else if (graphicsLayer == m_scrollLayer.get()) { |
2623 name = "Frame Scrolling Layer"; | 2625 name = "Frame Scrolling Layer"; |
2624 } else { | 2626 } else { |
2625 ASSERT_NOT_REACHED(); | 2627 ASSERT_NOT_REACHED(); |
2626 } | 2628 } |
2627 | 2629 |
2628 return name; | 2630 return name; |
2629 } | 2631 } |
2630 | 2632 |
2631 } // namespace WebCore | 2633 } // namespace WebCore |
OLD | NEW |