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

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

Issue 2614883006: Change PartitionAlloc to Chromium naming style. (Closed)
Patch Set: Rebase and fix some names. Created 3 years, 11 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) 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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 1187
1188 LayoutRect PaintLayer::paintingExtent(const PaintLayer* rootLayer, 1188 LayoutRect PaintLayer::paintingExtent(const PaintLayer* rootLayer,
1189 const LayoutSize& subPixelAccumulation, 1189 const LayoutSize& subPixelAccumulation,
1190 GlobalPaintFlags globalPaintFlags) { 1190 GlobalPaintFlags globalPaintFlags) {
1191 return transparencyClipBox(this, rootLayer, PaintingTransparencyClipBox, 1191 return transparencyClipBox(this, rootLayer, PaintingTransparencyClipBox,
1192 RootOfTransparencyClipBox, subPixelAccumulation, 1192 RootOfTransparencyClipBox, subPixelAccumulation,
1193 globalPaintFlags); 1193 globalPaintFlags);
1194 } 1194 }
1195 1195
1196 void* PaintLayer::operator new(size_t sz) { 1196 void* PaintLayer::operator new(size_t sz) {
1197 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, 1197 return PartitionAlloc(WTF::Partitions::layoutPartition(), sz,
1198 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); 1198 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer));
1199 } 1199 }
1200 1200
1201 void PaintLayer::operator delete(void* ptr) { 1201 void PaintLayer::operator delete(void* ptr) {
1202 WTF::partitionFree(ptr); 1202 WTF::PartitionFree(ptr);
1203 } 1203 }
1204 1204
1205 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { 1205 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) {
1206 PaintLayer* prevSibling = 1206 PaintLayer* prevSibling =
1207 beforeChild ? beforeChild->previousSibling() : lastChild(); 1207 beforeChild ? beforeChild->previousSibling() : lastChild();
1208 if (prevSibling) { 1208 if (prevSibling) {
1209 child->setPreviousSibling(prevSibling); 1209 child->setPreviousSibling(prevSibling);
1210 prevSibling->setNextSibling(child); 1210 prevSibling->setNextSibling(child);
1211 DCHECK(prevSibling != child); 1211 DCHECK(prevSibling != child);
1212 } else { 1212 } else {
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 } 3223 }
3224 3224
3225 void showLayerTree(const blink::LayoutObject* layoutObject) { 3225 void showLayerTree(const blink::LayoutObject* layoutObject) {
3226 if (!layoutObject) { 3226 if (!layoutObject) {
3227 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3227 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3228 return; 3228 return;
3229 } 3229 }
3230 showLayerTree(layoutObject->enclosingLayer()); 3230 showLayerTree(layoutObject->enclosingLayer());
3231 } 3231 }
3232 #endif 3232 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698