| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 updateBackgroundLayer(false); | 177 updateBackgroundLayer(false); |
| 178 updateMaskLayer(false); | 178 updateMaskLayer(false); |
| 179 updateScrollingLayers(false); | 179 updateScrollingLayers(false); |
| 180 destroyGraphicsLayers(); | 180 destroyGraphicsLayers(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(CompositingRea
sons reasons) | 183 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(CompositingRea
sons reasons) |
| 184 { | 184 { |
| 185 GraphicsLayerFactory* graphicsLayerFactory = 0; | 185 GraphicsLayerFactory* graphicsLayerFactory = 0; |
| 186 if (Page* page = renderer()->frame()->page()) | 186 if (Page* page = renderer()->frame()->page()) |
| 187 graphicsLayerFactory = page->chrome().client()->graphicsLayerFactory(); | 187 graphicsLayerFactory = page->chrome().client().graphicsLayerFactory(); |
| 188 | 188 |
| 189 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac
tory, this); | 189 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac
tory, this); |
| 190 | 190 |
| 191 graphicsLayer->setCompositingReasons(reasons); | 191 graphicsLayer->setCompositingReasons(reasons); |
| 192 | 192 |
| 193 return graphicsLayer.release(); | 193 return graphicsLayer.release(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void RenderLayerBacking::createPrimaryGraphicsLayer() | 196 void RenderLayerBacking::createPrimaryGraphicsLayer() |
| 197 { | 197 { |
| (...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1929 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 1929 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 1930 name = "Scrolling Contents Layer"; | 1930 name = "Scrolling Contents Layer"; |
| 1931 } else { | 1931 } else { |
| 1932 ASSERT_NOT_REACHED(); | 1932 ASSERT_NOT_REACHED(); |
| 1933 } | 1933 } |
| 1934 | 1934 |
| 1935 return name; | 1935 return name; |
| 1936 } | 1936 } |
| 1937 | 1937 |
| 1938 } // namespace WebCore | 1938 } // namespace WebCore |
| OLD | NEW |