| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 return m_compositing; | 140 return m_compositing; |
| 141 } | 141 } |
| 142 | 142 |
| 143 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) | 143 void RenderLayerCompositor::setCompositingModeEnabled(bool enable) |
| 144 { | 144 { |
| 145 if (enable == m_compositing) | 145 if (enable == m_compositing) |
| 146 return; | 146 return; |
| 147 | 147 |
| 148 m_compositing = enable; | 148 m_compositing = enable; |
| 149 | 149 |
| 150 // RenderPart::requiresAcceleratedCompositing is used to determine self-pain
tingness |
| 151 // and bases it's return value for frames on the m_compositing bit here. |
| 152 if (HTMLFrameOwnerElement* ownerElement = m_renderView.document().ownerEleme
nt()) { |
| 153 if (RenderPart* renderer = ownerElement->renderPart()) |
| 154 renderer->layer()->updateSelfPaintingLayer(); |
| 155 } |
| 156 |
| 150 if (m_compositing) | 157 if (m_compositing) |
| 151 ensureRootLayer(); | 158 ensureRootLayer(); |
| 152 else | 159 else |
| 153 destroyRootLayer(); | 160 destroyRootLayer(); |
| 154 | 161 |
| 155 notifyIFramesOfCompositingChange(); | 162 notifyIFramesOfCompositingChange(); |
| 156 } | 163 } |
| 157 | 164 |
| 158 void RenderLayerCompositor::enableCompositingModeIfNeeded() | 165 void RenderLayerCompositor::enableCompositingModeIfNeeded() |
| 159 { | 166 { |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 } else if (graphicsLayer == m_scrollLayer.get()) { | 1395 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1389 name = "LocalFrame Scrolling Layer"; | 1396 name = "LocalFrame Scrolling Layer"; |
| 1390 } else { | 1397 } else { |
| 1391 ASSERT_NOT_REACHED(); | 1398 ASSERT_NOT_REACHED(); |
| 1392 } | 1399 } |
| 1393 | 1400 |
| 1394 return name; | 1401 return name; |
| 1395 } | 1402 } |
| 1396 | 1403 |
| 1397 } // namespace WebCore | 1404 } // namespace WebCore |
| OLD | NEW |