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 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 void RenderLayer::didUpdateNeedsCompositedScrolling() | 1507 void RenderLayer::didUpdateNeedsCompositedScrolling() |
1508 { | 1508 { |
1509 updateSelfPaintingLayer(); | 1509 updateSelfPaintingLayer(); |
1510 } | 1510 } |
1511 | 1511 |
1512 void RenderLayer::updateReflectionInfo(const RenderStyle* oldStyle) | 1512 void RenderLayer::updateReflectionInfo(const RenderStyle* oldStyle) |
1513 { | 1513 { |
1514 ASSERT(!oldStyle || !renderer()->style()->reflectionDataEquivalent(oldStyle)
); | 1514 ASSERT(!oldStyle || !renderer()->style()->reflectionDataEquivalent(oldStyle)
); |
1515 if (renderer()->hasReflection()) { | 1515 if (renderer()->hasReflection()) { |
1516 if (!m_reflectionInfo) | 1516 if (!m_reflectionInfo) |
1517 m_reflectionInfo = adoptPtrWillBeNoop(new RenderLayerReflectionInfo(
*renderBox())); | 1517 m_reflectionInfo = adoptPtr(new RenderLayerReflectionInfo(*renderBox
())); |
1518 m_reflectionInfo->updateAfterStyleChange(oldStyle); | 1518 m_reflectionInfo->updateAfterStyleChange(oldStyle); |
1519 } else if (m_reflectionInfo) { | 1519 } else if (m_reflectionInfo) { |
1520 m_reflectionInfo->destroy(); | 1520 m_reflectionInfo->destroy(); |
1521 m_reflectionInfo = nullptr; | 1521 m_reflectionInfo = nullptr; |
1522 } | 1522 } |
1523 } | 1523 } |
1524 | 1524 |
1525 void RenderLayer::updateStackingNode() | 1525 void RenderLayer::updateStackingNode() |
1526 { | 1526 { |
1527 if (requiresStackingNode()) | 1527 if (requiresStackingNode()) |
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2926 } | 2926 } |
2927 } | 2927 } |
2928 | 2928 |
2929 void showLayerTree(const blink::RenderObject* renderer) | 2929 void showLayerTree(const blink::RenderObject* renderer) |
2930 { | 2930 { |
2931 if (!renderer) | 2931 if (!renderer) |
2932 return; | 2932 return; |
2933 showLayerTree(renderer->enclosingLayer()); | 2933 showLayerTree(renderer->enclosingLayer()); |
2934 } | 2934 } |
2935 #endif | 2935 #endif |
OLD | NEW |