| 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 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2353 return groupedMapping()->squashingLayer(); | 2353 return groupedMapping()->squashingLayer(); |
| 2354 default: | 2354 default: |
| 2355 return compositedLayerMapping()->scrollingContentsLayer() ? compositedLa
yerMapping()->scrollingContentsLayer() : compositedLayerMapping()->mainGraphicsL
ayer(); | 2355 return compositedLayerMapping()->scrollingContentsLayer() ? compositedLa
yerMapping()->scrollingContentsLayer() : compositedLayerMapping()->mainGraphicsL
ayer(); |
| 2356 } | 2356 } |
| 2357 } | 2357 } |
| 2358 | 2358 |
| 2359 bool PaintLayer::shouldPaintBackgroundOntoScrollingContentsLayer() const | 2359 bool PaintLayer::shouldPaintBackgroundOntoScrollingContentsLayer() const |
| 2360 { | 2360 { |
| 2361 return !isRootLayer() | 2361 return !isRootLayer() |
| 2362 && scrollsOverflow() | 2362 && scrollsOverflow() |
| 2363 && layoutObject()->style()->hasEntirelyLocalBackground() | 2363 && layoutObject()->hasLocalEquivalentBackground() |
| 2364 && !stackingNode()->hasNegativeZOrderList(); | 2364 && !stackingNode()->hasNegativeZOrderList(); |
| 2365 } | 2365 } |
| 2366 | 2366 |
| 2367 void PaintLayer::ensureCompositedLayerMapping() | 2367 void PaintLayer::ensureCompositedLayerMapping() |
| 2368 { | 2368 { |
| 2369 if (m_rareData && m_rareData->compositedLayerMapping) | 2369 if (m_rareData && m_rareData->compositedLayerMapping) |
| 2370 return; | 2370 return; |
| 2371 | 2371 |
| 2372 ensureRareData().compositedLayerMapping = wrapUnique(new CompositedLayerMapp
ing(*this)); | 2372 ensureRareData().compositedLayerMapping = wrapUnique(new CompositedLayerMapp
ing(*this)); |
| 2373 m_rareData->compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLaye
rUpdateSubtree); | 2373 m_rareData->compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLaye
rUpdateSubtree); |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 | 2980 |
| 2981 void showLayerTree(const blink::LayoutObject* layoutObject) | 2981 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2982 { | 2982 { |
| 2983 if (!layoutObject) { | 2983 if (!layoutObject) { |
| 2984 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2984 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2985 return; | 2985 return; |
| 2986 } | 2986 } |
| 2987 showLayerTree(layoutObject->enclosingLayer()); | 2987 showLayerTree(layoutObject->enclosingLayer()); |
| 2988 } | 2988 } |
| 2989 #endif | 2989 #endif |
| OLD | NEW |