| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 return m_compositing; | 142 return m_compositing; |
| 143 } | 143 } |
| 144 | 144 |
| 145 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) | 145 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) |
| 146 { | 146 { |
| 147 if (enable == m_compositing) | 147 if (enable == m_compositing) |
| 148 return; | 148 return; |
| 149 | 149 |
| 150 m_compositing = enable; | 150 m_compositing = enable; |
| 151 | 151 |
| 152 // RenderPart::requiresAcceleratedCompositing is used to determine self-pain
tingness |
| 153 // and bases it's return value for frames on the m_compositing bit here. |
| 154 if (HTMLFrameOwnerElement* ownerElement = m_renderView.document().ownerEleme
nt()) { |
| 155 if (RenderPart* renderer = ownerElement->renderPart()) |
| 156 renderer->layer()->updateSelfPaintingLayer(); |
| 157 } |
| 158 |
| 152 if (m_compositing) | 159 if (m_compositing) |
| 153 ensureRootLayer(); | 160 ensureRootLayer(); |
| 154 else | 161 else |
| 155 destroyRootLayer(); | 162 destroyRootLayer(); |
| 156 | 163 |
| 157 notifyIFramesOfCompositingChange(); | 164 notifyIFramesOfCompositingChange(); |
| 158 } | 165 } |
| 159 | 166 |
| 160 void RenderLayerCompositor::enableCompositingModeIfNeeded() | 167 void RenderLayerCompositor::enableCompositingModeIfNeeded() |
| 161 { | 168 { |
| (...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 } else if (graphicsLayer == m_scrollLayer.get()) { | 1425 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1419 name = "LocalFrame Scrolling Layer"; | 1426 name = "LocalFrame Scrolling Layer"; |
| 1420 } else { | 1427 } else { |
| 1421 ASSERT_NOT_REACHED(); | 1428 ASSERT_NOT_REACHED(); |
| 1422 } | 1429 } |
| 1423 | 1430 |
| 1424 return name; | 1431 return name; |
| 1425 } | 1432 } |
| 1426 | 1433 |
| 1427 } // namespace WebCore | 1434 } // namespace WebCore |
| OLD | NEW |