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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1979183002: Remove OwnPtr::release() calls in core/ (part 3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk. Created 4 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
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 PassOwnPtr<GraphicsLayer> CompositedLayerMapping::createGraphicsLayer(Compositin gReasons reasons, SquashingDisallowedReasons squashingDisallowedReasons) 213 PassOwnPtr<GraphicsLayer> CompositedLayerMapping::createGraphicsLayer(Compositin gReasons reasons, SquashingDisallowedReasons squashingDisallowedReasons)
214 { 214 {
215 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(this); 215 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(this);
216 216
217 graphicsLayer->setCompositingReasons(reasons); 217 graphicsLayer->setCompositingReasons(reasons);
218 graphicsLayer->setSquashingDisallowedReasons(squashingDisallowedReasons); 218 graphicsLayer->setSquashingDisallowedReasons(squashingDisallowedReasons);
219 if (Node* owningNode = m_owningLayer.layoutObject()->generatingNode()) 219 if (Node* owningNode = m_owningLayer.layoutObject()->generatingNode())
220 graphicsLayer->setOwnerNodeId(DOMNodeIds::idForNode(owningNode)); 220 graphicsLayer->setOwnerNodeId(DOMNodeIds::idForNode(owningNode));
221 221
222 return graphicsLayer.release(); 222 return graphicsLayer;
223 } 223 }
224 224
225 void CompositedLayerMapping::createPrimaryGraphicsLayer() 225 void CompositedLayerMapping::createPrimaryGraphicsLayer()
226 { 226 {
227 m_graphicsLayer = createGraphicsLayer(m_owningLayer.getCompositingReasons(), m_owningLayer.getSquashingDisallowedReasons()); 227 m_graphicsLayer = createGraphicsLayer(m_owningLayer.getCompositingReasons(), m_owningLayer.getSquashingDisallowedReasons());
228 228
229 updateOpacity(layoutObject()->styleRef()); 229 updateOpacity(layoutObject()->styleRef());
230 updateTransform(layoutObject()->styleRef()); 230 updateTransform(layoutObject()->styleRef());
231 updateFilters(layoutObject()->styleRef()); 231 updateFilters(layoutObject()->styleRef());
232 updateBackdropFilters(layoutObject()->styleRef()); 232 updateBackdropFilters(layoutObject()->styleRef());
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2573 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2574 name = "Scrolling Contents Layer"; 2574 name = "Scrolling Contents Layer";
2575 } else { 2575 } else {
2576 ASSERT_NOT_REACHED(); 2576 ASSERT_NOT_REACHED();
2577 } 2577 }
2578 2578
2579 return name; 2579 return name;
2580 } 2580 }
2581 2581
2582 } // namespace blink 2582 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698