| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 scrollingCoordinator->scrollableAreaScrollLayerDidChange(layer); | 1203 scrollingCoordinator->scrollableAreaScrollLayerDidChange(layer); |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 String RenderLayerCompositor::layerTreeAsText(LayerTreeFlags flags) | 1206 String RenderLayerCompositor::layerTreeAsText(LayerTreeFlags flags) |
| 1207 { | 1207 { |
| 1208 updateCompositingLayers(CompositingUpdateAfterLayout); | 1208 updateCompositingLayers(CompositingUpdateAfterLayout); |
| 1209 | 1209 |
| 1210 if (!m_rootContentLayer) | 1210 if (!m_rootContentLayer) |
| 1211 return String(); | 1211 return String(); |
| 1212 | 1212 |
| 1213 LayerTreeAsTextBehavior layerTreeBehavior = LayerTreeAsTextBehaviorNormal; | |
| 1214 if (flags & LayerTreeFlagsIncludeDebugInfo) | |
| 1215 layerTreeBehavior |= LayerTreeAsTextDebug; | |
| 1216 if (flags & LayerTreeFlagsIncludeVisibleRects) | |
| 1217 layerTreeBehavior |= LayerTreeAsTextIncludeVisibleRects; | |
| 1218 if (flags & LayerTreeFlagsIncludeRepaintRects) | |
| 1219 layerTreeBehavior |= LayerTreeAsTextIncludeRepaintRects; | |
| 1220 if (flags & LayerTreeFlagsIncludePaintingPhases) | |
| 1221 layerTreeBehavior |= LayerTreeAsTextIncludePaintingPhases; | |
| 1222 | |
| 1223 // We skip dumping the scroll and clip layers to keep layerTreeAsText output | 1213 // We skip dumping the scroll and clip layers to keep layerTreeAsText output |
| 1224 // similar between platforms. | 1214 // similar between platforms. |
| 1225 String layerTreeText = m_rootContentLayer->layerTreeAsText(layerTreeBehavior
); | 1215 String layerTreeText = m_rootContentLayer->layerTreeAsText(flags); |
| 1226 | 1216 |
| 1227 // The true root layer is not included in the dump, so if we want to report | 1217 // The true root layer is not included in the dump, so if we want to report |
| 1228 // its repaint rects, they must be included here. | 1218 // its repaint rects, they must be included here. |
| 1229 if (flags & LayerTreeFlagsIncludeRepaintRects) { | 1219 if (flags & LayerTreeIncludesRepaintRects) { |
| 1230 String layerTreeTextWithRootRepaintRects = m_renderView->frameView()->tr
ackedRepaintRectsAsText(); | 1220 String layerTreeTextWithRootRepaintRects = m_renderView->frameView()->tr
ackedRepaintRectsAsText(); |
| 1231 layerTreeTextWithRootRepaintRects.append(layerTreeText); | 1221 layerTreeTextWithRootRepaintRects.append(layerTreeText); |
| 1232 return layerTreeTextWithRootRepaintRects; | 1222 return layerTreeTextWithRootRepaintRects; |
| 1233 } | 1223 } |
| 1234 | 1224 |
| 1235 return layerTreeText; | 1225 return layerTreeText; |
| 1236 } | 1226 } |
| 1237 | 1227 |
| 1238 RenderLayerCompositor* RenderLayerCompositor::frameContentsCompositor(RenderPart
* renderer) | 1228 RenderLayerCompositor* RenderLayerCompositor::frameContentsCompositor(RenderPart
* renderer) |
| 1239 { | 1229 { |
| (...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2751 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
| 2762 #if ENABLE(RUBBER_BANDING) | 2752 #if ENABLE(RUBBER_BANDING) |
| 2763 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2753 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
| 2764 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2754 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
| 2765 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2755 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
| 2766 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2756 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
| 2767 #endif | 2757 #endif |
| 2768 } | 2758 } |
| 2769 | 2759 |
| 2770 } // namespace WebCore | 2760 } // namespace WebCore |
| OLD | NEW |