OLD | NEW |
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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 RootOfTransparencyClipBox, subPixelAccumulation, | 1244 RootOfTransparencyClipBox, subPixelAccumulation, |
1245 globalPaintFlags); | 1245 globalPaintFlags); |
1246 } | 1246 } |
1247 | 1247 |
1248 void* PaintLayer::operator new(size_t sz) { | 1248 void* PaintLayer::operator new(size_t sz) { |
1249 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, | 1249 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, |
1250 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); | 1250 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); |
1251 } | 1251 } |
1252 | 1252 |
1253 void PaintLayer::operator delete(void* ptr) { | 1253 void PaintLayer::operator delete(void* ptr) { |
1254 partitionFree(ptr); | 1254 WTF::partitionFree(ptr); |
1255 } | 1255 } |
1256 | 1256 |
1257 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { | 1257 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { |
1258 PaintLayer* prevSibling = | 1258 PaintLayer* prevSibling = |
1259 beforeChild ? beforeChild->previousSibling() : lastChild(); | 1259 beforeChild ? beforeChild->previousSibling() : lastChild(); |
1260 if (prevSibling) { | 1260 if (prevSibling) { |
1261 child->setPreviousSibling(prevSibling); | 1261 child->setPreviousSibling(prevSibling); |
1262 prevSibling->setNextSibling(child); | 1262 prevSibling->setNextSibling(child); |
1263 DCHECK(prevSibling != child); | 1263 DCHECK(prevSibling != child); |
1264 } else { | 1264 } else { |
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3282 } | 3282 } |
3283 | 3283 |
3284 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3284 void showLayerTree(const blink::LayoutObject* layoutObject) { |
3285 if (!layoutObject) { | 3285 if (!layoutObject) { |
3286 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3286 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
3287 return; | 3287 return; |
3288 } | 3288 } |
3289 showLayerTree(layoutObject->enclosingLayer()); | 3289 showLayerTree(layoutObject->enclosingLayer()); |
3290 } | 3290 } |
3291 #endif | 3291 #endif |
OLD | NEW |