| 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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 RootOfTransparencyClipBox, subPixelAccumulation, | 1213 RootOfTransparencyClipBox, subPixelAccumulation, |
| 1214 globalPaintFlags); | 1214 globalPaintFlags); |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 void* PaintLayer::operator new(size_t sz) { | 1217 void* PaintLayer::operator new(size_t sz) { |
| 1218 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, | 1218 return partitionAlloc(WTF::Partitions::layoutPartition(), sz, |
| 1219 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); | 1219 WTF_HEAP_PROFILER_TYPE_NAME(PaintLayer)); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 void PaintLayer::operator delete(void* ptr) { | 1222 void PaintLayer::operator delete(void* ptr) { |
| 1223 partitionFree(ptr); | 1223 WTF::partitionFree(ptr); |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { | 1226 void PaintLayer::addChild(PaintLayer* child, PaintLayer* beforeChild) { |
| 1227 PaintLayer* prevSibling = | 1227 PaintLayer* prevSibling = |
| 1228 beforeChild ? beforeChild->previousSibling() : lastChild(); | 1228 beforeChild ? beforeChild->previousSibling() : lastChild(); |
| 1229 if (prevSibling) { | 1229 if (prevSibling) { |
| 1230 child->setPreviousSibling(prevSibling); | 1230 child->setPreviousSibling(prevSibling); |
| 1231 prevSibling->setNextSibling(child); | 1231 prevSibling->setNextSibling(child); |
| 1232 DCHECK(prevSibling != child); | 1232 DCHECK(prevSibling != child); |
| 1233 } else { | 1233 } else { |
| (...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3251 } | 3251 } |
| 3252 | 3252 |
| 3253 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3253 void showLayerTree(const blink::LayoutObject* layoutObject) { |
| 3254 if (!layoutObject) { | 3254 if (!layoutObject) { |
| 3255 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3255 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
| 3256 return; | 3256 return; |
| 3257 } | 3257 } |
| 3258 showLayerTree(layoutObject->enclosingLayer()); | 3258 showLayerTree(layoutObject->enclosingLayer()); |
| 3259 } | 3259 } |
| 3260 #endif | 3260 #endif |
| OLD | NEW |