| 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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 | 1266 |
| 1267 struct UpdateShouldFlattenTransformFunctor { | 1267 struct UpdateShouldFlattenTransformFunctor { |
| 1268 void operator() (GraphicsLayer* layer) const { layer->setShouldFlattenTransf
orm(shouldFlatten); } | 1268 void operator() (GraphicsLayer* layer) const { layer->setShouldFlattenTransf
orm(shouldFlatten); } |
| 1269 bool shouldFlatten; | 1269 bool shouldFlatten; |
| 1270 }; | 1270 }; |
| 1271 | 1271 |
| 1272 void CompositedLayerMapping::updateShouldFlattenTransform() | 1272 void CompositedLayerMapping::updateShouldFlattenTransform() |
| 1273 { | 1273 { |
| 1274 // All CLM-managed layers that could affect a descendant layer should update
their | 1274 // All CLM-managed layers that could affect a descendant layer should update
their |
| 1275 // should-flatten-transform value (the other layers' transforms don't matter
here). | 1275 // should-flatten-transform value (the other layers' transforms don't matter
here). |
| 1276 UpdateShouldFlattenTransformFunctor functor = { m_owningLayer.shouldFlattenT
ransform() }; | 1276 UpdateShouldFlattenTransformFunctor functor = { !m_owningLayer.shouldPreserv
e3D() }; |
| 1277 ApplyToGraphicsLayersMode mode = ApplyToCoreLayers; | 1277 ApplyToGraphicsLayersMode mode = ApplyToCoreLayers; |
| 1278 ApplyToGraphicsLayers(this, functor, mode); | 1278 ApplyToGraphicsLayers(this, functor, mode); |
| 1279 } | 1279 } |
| 1280 | 1280 |
| 1281 bool CompositedLayerMapping::updateForegroundLayer(bool needsForegroundLayer) | 1281 bool CompositedLayerMapping::updateForegroundLayer(bool needsForegroundLayer) |
| 1282 { | 1282 { |
| 1283 bool layerChanged = false; | 1283 bool layerChanged = false; |
| 1284 if (needsForegroundLayer) { | 1284 if (needsForegroundLayer) { |
| 1285 if (!m_foregroundLayer) { | 1285 if (!m_foregroundLayer) { |
| 1286 m_foregroundLayer = createGraphicsLayer(CompositingReasonLayerForFor
eground); | 1286 m_foregroundLayer = createGraphicsLayer(CompositingReasonLayerForFor
eground); |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2163 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2163 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2164 name = "Scrolling Contents Layer"; | 2164 name = "Scrolling Contents Layer"; |
| 2165 } else { | 2165 } else { |
| 2166 ASSERT_NOT_REACHED(); | 2166 ASSERT_NOT_REACHED(); |
| 2167 } | 2167 } |
| 2168 | 2168 |
| 2169 return name; | 2169 return name; |
| 2170 } | 2170 } |
| 2171 | 2171 |
| 2172 } // namespace WebCore | 2172 } // namespace WebCore |
| OLD | NEW |