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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Rebase and resolve conflict. Created 4 years 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 RootOfTransparencyClipBox, subPixelAccumulation, 1239 RootOfTransparencyClipBox, subPixelAccumulation,
1240 globalPaintFlags); 1240 globalPaintFlags);
1241 } 1241 }
1242 1242
1243 void* PaintLayer::operator new(size_t sz) { 1243 void* PaintLayer::operator new(size_t sz) {
1244 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, 1244 return partitionAlloc(WTF::Partitions::layoutPartition(), sz,
1245 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); 1245 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer));
1246 } 1246 }
1247 1247
1248 void PaintLayer::operator delete(void* ptr) { 1248 void PaintLayer::operator delete(void* ptr) {
1249 partitionFree(ptr); 1249 WTF::partitionFree(ptr);
1250 } 1250 }
1251 1251
1252 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { 1252 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) {
1253 PaintLayer* prevSibling = 1253 PaintLayer* prevSibling =
1254 beforeChild ? beforeChild->previousSibling() : lastChild(); 1254 beforeChild ? beforeChild->previousSibling() : lastChild();
1255 if (prevSibling) { 1255 if (prevSibling) {
1256 child->setPreviousSibling(prevSibling); 1256 child->setPreviousSibling(prevSibling);
1257 prevSibling->setNextSibling(child); 1257 prevSibling->setNextSibling(child);
1258 DCHECK(prevSibling != child); 1258 DCHECK(prevSibling != child);
1259 } else { 1259 } else {
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 } 3277 }
3278 3278
3279 void showLayerTree(const blink::LayoutObject* layoutObject) { 3279 void showLayerTree(const blink::LayoutObject* layoutObject) {
3280 if (!layoutObject) { 3280 if (!layoutObject) {
3281 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3281 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3282 return; 3282 return;
3283 } 3283 }
3284 showLayerTree(layoutObject->enclosingLayer()); 3284 showLayerTree(layoutObject->enclosingLayer());
3285 } 3285 }
3286 #endif 3286 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698