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

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

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderLayerReflectionInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 void RenderLayer::didUpdateNeedsCompositedScrolling() 1507 void RenderLayer::didUpdateNeedsCompositedScrolling()
1508 { 1508 {
1509 updateSelfPaintingLayer(); 1509 updateSelfPaintingLayer();
1510 } 1510 }
1511 1511
1512 void RenderLayer::updateReflectionInfo(const RenderStyle* oldStyle) 1512 void RenderLayer::updateReflectionInfo(const RenderStyle* oldStyle)
1513 { 1513 {
1514 ASSERT(!oldStyle || !renderer()->style()->reflectionDataEquivalent(oldStyle) ); 1514 ASSERT(!oldStyle || !renderer()->style()->reflectionDataEquivalent(oldStyle) );
1515 if (renderer()->hasReflection()) { 1515 if (renderer()->hasReflection()) {
1516 if (!m_reflectionInfo) 1516 if (!m_reflectionInfo)
1517 m_reflectionInfo = adoptPtrWillBeNoop(new RenderLayerReflectionInfo( *renderBox())); 1517 m_reflectionInfo = adoptPtr(new RenderLayerReflectionInfo(*renderBox ()));
1518 m_reflectionInfo->updateAfterStyleChange(oldStyle); 1518 m_reflectionInfo->updateAfterStyleChange(oldStyle);
1519 } else if (m_reflectionInfo) { 1519 } else if (m_reflectionInfo) {
1520 m_reflectionInfo->destroy(); 1520 m_reflectionInfo->destroy();
1521 m_reflectionInfo = nullptr; 1521 m_reflectionInfo = nullptr;
1522 } 1522 }
1523 } 1523 }
1524 1524
1525 void RenderLayer::updateStackingNode() 1525 void RenderLayer::updateStackingNode()
1526 { 1526 {
1527 if (requiresStackingNode()) 1527 if (requiresStackingNode())
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2926 } 2926 }
2927 } 2927 }
2928 2928
2929 void showLayerTree(const blink::RenderObject* renderer) 2929 void showLayerTree(const blink::RenderObject* renderer)
2930 { 2930 {
2931 if (!renderer) 2931 if (!renderer)
2932 return; 2932 return;
2933 showLayerTree(renderer->enclosingLayer()); 2933 showLayerTree(renderer->enclosingLayer());
2934 } 2934 }
2935 #endif 2935 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderLayerReflectionInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698