Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: Source/core/rendering/RenderLayerBacking.cpp

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/page/PointerLockController.cpp ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698