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

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

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 updateBackgroundLayer(false); 120 updateBackgroundLayer(false);
121 updateMaskLayer(false); 121 updateMaskLayer(false);
122 updateScrollingLayers(false); 122 updateScrollingLayers(false);
123 destroyGraphicsLayers(); 123 destroyGraphicsLayers();
124 } 124 }
125 125
126 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(const String& name, CompositingReasons reasons) 126 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(const String& name, CompositingReasons reasons)
127 { 127 {
128 GraphicsLayerFactory* graphicsLayerFactory = 0; 128 GraphicsLayerFactory* graphicsLayerFactory = 0;
129 if (Page* page = renderer()->frame()->page()) 129 if (Page* page = renderer()->frame()->page())
130 graphicsLayerFactory = page->chrome()->client()->graphicsLayerFactory(); 130 graphicsLayerFactory = page->chrome().client()->graphicsLayerFactory();
131 131
132 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac tory, this); 132 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac tory, this);
133 133
134 #ifndef NDEBUG 134 #ifndef NDEBUG
135 graphicsLayer->setName(name); 135 graphicsLayer->setName(name);
136 #else 136 #else
137 UNUSED_PARAM(name); 137 UNUSED_PARAM(name);
138 #endif 138 #endif
139 139
140 graphicsLayer->setCompositingReasons(reasons); 140 graphicsLayer->setCompositingReasons(reasons);
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 info.addMember(m_childContainmentLayer, "childContainmentLayer"); 1967 info.addMember(m_childContainmentLayer, "childContainmentLayer");
1968 info.addMember(m_maskLayer, "maskLayer"); 1968 info.addMember(m_maskLayer, "maskLayer");
1969 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ; 1969 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ;
1970 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); 1970 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar");
1971 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); 1971 info.addMember(m_layerForScrollCorner, "layerForScrollCorner");
1972 info.addMember(m_scrollingLayer, "scrollingLayer"); 1972 info.addMember(m_scrollingLayer, "scrollingLayer");
1973 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); 1973 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer");
1974 } 1974 }
1975 1975
1976 } // namespace WebCore 1976 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/PopupContainer.cpp ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698