| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 if (m_paintingPhase & GraphicsLayerPaintBackground) | 596 if (m_paintingPhase & GraphicsLayerPaintBackground) |
| 597 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); | 597 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); |
| 598 if (m_paintingPhase & GraphicsLayerPaintForeground) | 598 if (m_paintingPhase & GraphicsLayerPaintForeground) |
| 599 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); | 599 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); |
| 600 if (m_paintingPhase & GraphicsLayerPaintMask) | 600 if (m_paintingPhase & GraphicsLayerPaintMask) |
| 601 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); | 601 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); |
| 602 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) | 602 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) |
| 603 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"
); | 603 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"
); |
| 604 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) | 604 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
| 605 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents")
; | 605 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents")
; |
| 606 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | |
| 607 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll")
; | |
| 608 json->setArray("paintingPhases", paintingPhasesJSON); | 606 json->setArray("paintingPhases", paintingPhasesJSON); |
| 609 } | 607 } |
| 610 | 608 |
| 611 if (flags & LayerTreeIncludesClipAndScrollParents) { | 609 if (flags & LayerTreeIncludesClipAndScrollParents) { |
| 612 if (m_hasScrollParent) | 610 if (m_hasScrollParent) |
| 613 json->setBoolean("hasScrollParent", true); | 611 json->setBoolean("hasScrollParent", true); |
| 614 if (m_hasClipParent) | 612 if (m_hasClipParent) |
| 615 json->setBoolean("hasClipParent", true); | 613 json->setBoolean("hasClipParent", true); |
| 616 } | 614 } |
| 617 | 615 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 #ifndef NDEBUG | 1004 #ifndef NDEBUG |
| 1007 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1005 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
| 1008 { | 1006 { |
| 1009 if (!layer) | 1007 if (!layer) |
| 1010 return; | 1008 return; |
| 1011 | 1009 |
| 1012 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1010 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1013 fprintf(stderr, "%s\n", output.utf8().data()); | 1011 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1014 } | 1012 } |
| 1015 #endif | 1013 #endif |
| OLD | NEW |