| 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 2909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2920 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS | 2920 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS |
| 2921 void PaintLayer::endShouldKeepAliveAllClientsRecursive() | 2921 void PaintLayer::endShouldKeepAliveAllClientsRecursive() |
| 2922 { | 2922 { |
| 2923 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) | 2923 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) |
| 2924 child->endShouldKeepAliveAllClientsRecursive(); | 2924 child->endShouldKeepAliveAllClientsRecursive(); |
| 2925 DisplayItemClient::endShouldKeepAliveAllClients(this); | 2925 DisplayItemClient::endShouldKeepAliveAllClients(this); |
| 2926 } | 2926 } |
| 2927 #endif | 2927 #endif |
| 2928 | 2928 |
| 2929 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() | 2929 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() |
| 2930 : m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } | 2930 : m_disabler(&gCompositingQueryMode, CompositingQueriesAreAllowed) { } |
| 2931 | 2931 |
| 2932 } // namespace blink | 2932 } // namespace blink |
| 2933 | 2933 |
| 2934 #ifndef NDEBUG | 2934 #ifndef NDEBUG |
| 2935 // FIXME: Rename? | 2935 // FIXME: Rename? |
| 2936 void showLayerTree(const blink::PaintLayer* layer) | 2936 void showLayerTree(const blink::PaintLayer* layer) |
| 2937 { | 2937 { |
| 2938 if (!layer) { | 2938 if (!layer) { |
| 2939 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2939 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2940 return; | 2940 return; |
| 2941 } | 2941 } |
| 2942 | 2942 |
| 2943 if (blink::LocalFrame* frame = layer->layoutObject()->frame()) { | 2943 if (blink::LocalFrame* frame = layer->layoutObject()->frame()) { |
| 2944 WTF::String output = externalRepresentation(frame, blink::LayoutAsTextSh
owAllLayers | blink::LayoutAsTextShowLayerNesting | blink::LayoutAsTextShowCompo
sitedLayers | blink::LayoutAsTextShowAddresses | blink::LayoutAsTextShowIDAndCla
ss | blink::LayoutAsTextDontUpdateLayout | blink::LayoutAsTextShowLayoutState, l
ayer); | 2944 WTF::String output = externalRepresentation(frame, blink::LayoutAsTextSh
owAllLayers | blink::LayoutAsTextShowLayerNesting | blink::LayoutAsTextShowCompo
sitedLayers | blink::LayoutAsTextShowAddresses | blink::LayoutAsTextShowIDAndCla
ss | blink::LayoutAsTextDontUpdateLayout | blink::LayoutAsTextShowLayoutState, l
ayer); |
| 2945 fprintf(stderr, "%s\n", output.utf8().data()); | 2945 fprintf(stderr, "%s\n", output.utf8().data()); |
| 2946 } | 2946 } |
| 2947 } | 2947 } |
| 2948 | 2948 |
| 2949 void showLayerTree(const blink::LayoutObject* layoutObject) | 2949 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2950 { | 2950 { |
| 2951 if (!layoutObject) { | 2951 if (!layoutObject) { |
| 2952 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2952 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2953 return; | 2953 return; |
| 2954 } | 2954 } |
| 2955 showLayerTree(layoutObject->enclosingLayer()); | 2955 showLayerTree(layoutObject->enclosingLayer()); |
| 2956 } | 2956 } |
| 2957 #endif | 2957 #endif |
| OLD | NEW |