| 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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 RootOfTransparencyClipBox, subPixelAccumulation, | 1223 RootOfTransparencyClipBox, subPixelAccumulation, |
| 1224 globalPaintFlags); | 1224 globalPaintFlags); |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 void* PaintLayer::operator new(size_t sz) { | 1227 void* PaintLayer::operator new(size_t sz) { |
| 1228 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, | 1228 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, |
| 1229 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); | 1229 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 void PaintLayer::operator delete(void* ptr) { | 1232 void PaintLayer::operator delete(void* ptr) { |
| 1233 partitionFree(ptr); | 1233 WTF::partitionFree(ptr); |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { | 1236 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { |
| 1237 PaintLayer* prevSibling = | 1237 PaintLayer* prevSibling = |
| 1238 beforeChild ? beforeChild->previousSibling() : lastChild(); | 1238 beforeChild ? beforeChild->previousSibling() : lastChild(); |
| 1239 if (prevSibling) { | 1239 if (prevSibling) { |
| 1240 child->setPreviousSibling(prevSibling); | 1240 child->setPreviousSibling(prevSibling); |
| 1241 prevSibling->setNextSibling(child); | 1241 prevSibling->setNextSibling(child); |
| 1242 DCHECK(prevSibling != child); | 1242 DCHECK(prevSibling != child); |
| 1243 } else { | 1243 } else { |
| (...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3266 } | 3266 } |
| 3267 | 3267 |
| 3268 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3268 void showLayerTree(const blink::LayoutObject* layoutObject) { |
| 3269 if (!layoutObject) { | 3269 if (!layoutObject) { |
| 3270 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3270 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
| 3271 return; | 3271 return; |
| 3272 } | 3272 } |
| 3273 showLayerTree(layoutObject->enclosingLayer()); | 3273 showLayerTree(layoutObject->enclosingLayer()); |
| 3274 } | 3274 } |
| 3275 #endif | 3275 #endif |
| OLD | NEW |