| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 if (m_paintingPhase & GraphicsLayerPaintForeground) | 714 if (m_paintingPhase & GraphicsLayerPaintForeground) |
| 715 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); | 715 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); |
| 716 if (m_paintingPhase & GraphicsLayerPaintMask) | 716 if (m_paintingPhase & GraphicsLayerPaintMask) |
| 717 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); | 717 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); |
| 718 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) | 718 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) |
| 719 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); | 719 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); |
| 720 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) | 720 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
| 721 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); | 721 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); |
| 722 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | 722 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) |
| 723 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); | 723 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); |
| 724 if (m_paintingPhase & GraphicsLayerPaintDecoration) |
| 725 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration"); |
| 724 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); | 726 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); |
| 725 } | 727 } |
| 726 | 728 |
| 727 if (flags & LayerTreeIncludesClipAndScrollParents) { | 729 if (flags & LayerTreeIncludesClipAndScrollParents) { |
| 728 if (m_hasScrollParent) | 730 if (m_hasScrollParent) |
| 729 json->setBoolean("hasScrollParent", true); | 731 json->setBoolean("hasScrollParent", true); |
| 730 if (m_hasClipParent) | 732 if (m_hasClipParent) |
| 731 json->setBoolean("hasClipParent", true); | 733 json->setBoolean("hasClipParent", true); |
| 732 } | 734 } |
| 733 | 735 |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1302 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
| 1301 if (!layer) { | 1303 if (!layer) { |
| 1302 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1304 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1303 return; | 1305 return; |
| 1304 } | 1306 } |
| 1305 | 1307 |
| 1306 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1308 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1307 fprintf(stderr, "%s\n", output.utf8().data()); | 1309 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1308 } | 1310 } |
| 1309 #endif | 1311 #endif |
| OLD | NEW |