| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 return oldChild; | 705 return oldChild; |
| 706 } | 706 } |
| 707 | 707 |
| 708 void RenderLayer::removeOnlyThisLayer() | 708 void RenderLayer::removeOnlyThisLayer() |
| 709 { | 709 { |
| 710 if (!m_parent) | 710 if (!m_parent) |
| 711 return; | 711 return; |
| 712 | 712 |
| 713 m_clipper.clearClipRectsIncludingDescendants(); | 713 m_clipper.clearClipRectsIncludingDescendants(); |
| 714 | 714 |
| 715 paintInvalidator().paintInvalidationIncludingNonCompositingDescendants(); | |
| 716 | |
| 717 RenderLayer* nextSib = nextSibling(); | 715 RenderLayer* nextSib = nextSibling(); |
| 718 | 716 |
| 719 // Now walk our kids and reattach them to our parent. | 717 // Now walk our kids and reattach them to our parent. |
| 720 RenderLayer* current = m_first; | 718 RenderLayer* current = m_first; |
| 721 while (current) { | 719 while (current) { |
| 722 RenderLayer* next = current->nextSibling(); | 720 RenderLayer* next = current->nextSibling(); |
| 723 removeChild(current); | 721 removeChild(current); |
| 724 m_parent->addChild(current, nextSib); | 722 m_parent->addChild(current, nextSib); |
| 725 | 723 |
| 726 current->renderer()->setShouldDoFullPaintInvalidation(true); | 724 current->renderer()->setShouldDoFullPaintInvalidation(true); |
| (...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2055 } | 2053 } |
| 2056 } | 2054 } |
| 2057 | 2055 |
| 2058 void showLayerTree(const blink::RenderObject* renderer) | 2056 void showLayerTree(const blink::RenderObject* renderer) |
| 2059 { | 2057 { |
| 2060 if (!renderer) | 2058 if (!renderer) |
| 2061 return; | 2059 return; |
| 2062 showLayerTree(renderer->enclosingLayer()); | 2060 showLayerTree(renderer->enclosingLayer()); |
| 2063 } | 2061 } |
| 2064 #endif | 2062 #endif |
| OLD | NEW |