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 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 return false; | 2311 return false; |
2312 | 2312 |
2313 // We can't use hasVisibleContent(), because that will be true if our layout
Object is hidden, but some child | 2313 // We can't use hasVisibleContent(), because that will be true if our layout
Object is hidden, but some child |
2314 // is visible and that child doesn't cover the entire rect. | 2314 // is visible and that child doesn't cover the entire rect. |
2315 if (layoutObject()->style()->visibility() != VISIBLE) | 2315 if (layoutObject()->style()->visibility() != VISIBLE) |
2316 return false; | 2316 return false; |
2317 | 2317 |
2318 if (paintsWithFilters() && layoutObject()->style()->filter().hasFilterThatAf
fectsOpacity()) | 2318 if (paintsWithFilters() && layoutObject()->style()->filter().hasFilterThatAf
fectsOpacity()) |
2319 return false; | 2319 return false; |
2320 | 2320 |
2321 // FIXME: Handle simple transforms. | |
2322 if (paintsWithTransform(GlobalPaintNormalPhase)) | |
2323 return false; | |
2324 | |
2325 // FIXME: Remove this check. | 2321 // FIXME: Remove this check. |
2326 // This function should not be called when layer-lists are dirty. | 2322 // This function should not be called when layer-lists are dirty. |
2327 // It is somehow getting triggered during style update. | 2323 // It is somehow getting triggered during style update. |
2328 if (m_stackingNode->zOrderListsDirty()) | 2324 if (m_stackingNode->zOrderListsDirty()) |
2329 return false; | 2325 return false; |
2330 | 2326 |
2331 // FIXME: We currently only check the immediate layoutObject, | 2327 // FIXME: We currently only check the immediate layoutObject, |
2332 // which will miss many cases. | 2328 // which will miss many cases. |
2333 if (layoutObject()->backgroundIsKnownToBeOpaqueInRect(localRect)) | 2329 if (layoutObject()->backgroundIsKnownToBeOpaqueInRect(localRect)) |
2334 return true; | 2330 return true; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 | 2656 |
2661 void showLayerTree(const blink::LayoutObject* layoutObject) | 2657 void showLayerTree(const blink::LayoutObject* layoutObject) |
2662 { | 2658 { |
2663 if (!layoutObject) { | 2659 if (!layoutObject) { |
2664 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2660 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2665 return; | 2661 return; |
2666 } | 2662 } |
2667 showLayerTree(layoutObject->enclosingLayer()); | 2663 showLayerTree(layoutObject->enclosingLayer()); |
2668 } | 2664 } |
2669 #endif | 2665 #endif |
OLD | NEW |