OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1287 |
1288 return oldChild; | 1288 return oldChild; |
1289 } | 1289 } |
1290 | 1290 |
1291 void RenderLayer::removeOnlyThisLayer() | 1291 void RenderLayer::removeOnlyThisLayer() |
1292 { | 1292 { |
1293 if (!m_parent) | 1293 if (!m_parent) |
1294 return; | 1294 return; |
1295 | 1295 |
1296 m_clipper.clearClipRectsIncludingDescendants(); | 1296 m_clipper.clearClipRectsIncludingDescendants(); |
1297 repainter().repaintIncludingNonCompositingDescendants(); | 1297 paintInvalidator().paintInvalidationIncludingNonCompositingDescendants(); |
1298 | 1298 |
1299 RenderLayer* nextSib = nextSibling(); | 1299 RenderLayer* nextSib = nextSibling(); |
1300 | 1300 |
1301 // Remove the child reflection layer before moving other child layers. | 1301 // Remove the child reflection layer before moving other child layers. |
1302 // The reflection layer should not be moved to the parent. | 1302 // The reflection layer should not be moved to the parent. |
1303 if (m_reflectionInfo) | 1303 if (m_reflectionInfo) |
1304 removeChild(m_reflectionInfo->reflectionLayer()); | 1304 removeChild(m_reflectionInfo->reflectionLayer()); |
1305 | 1305 |
1306 // Now walk our kids and reattach them to our parent. | 1306 // Now walk our kids and reattach them to our parent. |
1307 RenderLayer* current = m_first; | 1307 RenderLayer* current = m_first; |
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3686 } | 3686 } |
3687 } | 3687 } |
3688 | 3688 |
3689 void showLayerTree(const blink::RenderObject* renderer) | 3689 void showLayerTree(const blink::RenderObject* renderer) |
3690 { | 3690 { |
3691 if (!renderer) | 3691 if (!renderer) |
3692 return; | 3692 return; |
3693 showLayerTree(renderer->enclosingLayer()); | 3693 showLayerTree(renderer->enclosingLayer()); |
3694 } | 3694 } |
3695 #endif | 3695 #endif |
OLD | NEW |