| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "core/layout/LayoutScrollbarPart.h" | 65 #include "core/layout/LayoutScrollbarPart.h" |
| 66 #include "core/layout/LayoutTreeAsText.h" | 66 #include "core/layout/LayoutTreeAsText.h" |
| 67 #include "core/layout/LayoutView.h" | 67 #include "core/layout/LayoutView.h" |
| 68 #include "core/layout/compositing/CompositedLayerMapping.h" | 68 #include "core/layout/compositing/CompositedLayerMapping.h" |
| 69 #include "core/layout/compositing/PaintLayerCompositor.h" | 69 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 70 #include "core/layout/svg/LayoutSVGRoot.h" | 70 #include "core/layout/svg/LayoutSVGRoot.h" |
| 71 #include "core/layout/svg/ReferenceFilterBuilder.h" | 71 #include "core/layout/svg/ReferenceFilterBuilder.h" |
| 72 #include "core/page/Page.h" | 72 #include "core/page/Page.h" |
| 73 #include "core/page/scrolling/ScrollingCoordinator.h" | 73 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 74 #include "core/paint/FilterEffectBuilder.h" | 74 #include "core/paint/FilterEffectBuilder.h" |
| 75 #include "core/paint/PaintTiming.h" |
| 75 #include "platform/LengthFunctions.h" | 76 #include "platform/LengthFunctions.h" |
| 76 #include "platform/RuntimeEnabledFeatures.h" | 77 #include "platform/RuntimeEnabledFeatures.h" |
| 77 #include "platform/TraceEvent.h" | 78 #include "platform/TraceEvent.h" |
| 78 #include "platform/geometry/FloatPoint3D.h" | 79 #include "platform/geometry/FloatPoint3D.h" |
| 79 #include "platform/geometry/FloatRect.h" | 80 #include "platform/geometry/FloatRect.h" |
| 80 #include "platform/geometry/TransformState.h" | 81 #include "platform/geometry/TransformState.h" |
| 81 #include "platform/graphics/filters/Filter.h" | 82 #include "platform/graphics/filters/Filter.h" |
| 82 #include "platform/graphics/filters/SourceGraphic.h" | 83 #include "platform/graphics/filters/SourceGraphic.h" |
| 83 #include "platform/transforms/ScaleTransformOperation.h" | 84 #include "platform/transforms/ScaleTransformOperation.h" |
| 84 #include "platform/transforms/TransformationMatrix.h" | 85 #include "platform/transforms/TransformationMatrix.h" |
| (...skipping 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 } | 2710 } |
| 2710 } | 2711 } |
| 2711 | 2712 |
| 2712 void PaintLayer::clearNeedsRepaintRecursively() | 2713 void PaintLayer::clearNeedsRepaintRecursively() |
| 2713 { | 2714 { |
| 2714 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) | 2715 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) |
| 2715 child->clearNeedsRepaintRecursively(); | 2716 child->clearNeedsRepaintRecursively(); |
| 2716 m_needsRepaint = false; | 2717 m_needsRepaint = false; |
| 2717 } | 2718 } |
| 2718 | 2719 |
| 2720 PaintTiming* PaintLayer::paintTiming() |
| 2721 { |
| 2722 if (Node* node = layoutObject()->node()) |
| 2723 return &PaintTiming::from(node->document()); |
| 2724 return nullptr; |
| 2725 } |
| 2726 |
| 2719 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() | 2727 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() |
| 2720 : m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } | 2728 : m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } |
| 2721 | 2729 |
| 2722 } // namespace blink | 2730 } // namespace blink |
| 2723 | 2731 |
| 2724 #ifndef NDEBUG | 2732 #ifndef NDEBUG |
| 2725 // FIXME: Rename? | 2733 // FIXME: Rename? |
| 2726 void showLayerTree(const blink::PaintLayer* layer) | 2734 void showLayerTree(const blink::PaintLayer* layer) |
| 2727 { | 2735 { |
| 2728 if (!layer) { | 2736 if (!layer) { |
| 2729 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2737 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2730 return; | 2738 return; |
| 2731 } | 2739 } |
| 2732 | 2740 |
| 2733 if (blink::LocalFrame* frame = layer->layoutObject()->frame()) { | 2741 if (blink::LocalFrame* frame = layer->layoutObject()->frame()) { |
| 2734 WTF::String output = externalRepresentation(frame, blink::LayoutAsTextSh
owAllLayers | blink::LayoutAsTextShowLayerNesting | blink::LayoutAsTextShowCompo
sitedLayers | blink::LayoutAsTextShowAddresses | blink::LayoutAsTextShowIDAndCla
ss | blink::LayoutAsTextDontUpdateLayout | blink::LayoutAsTextShowLayoutState); | 2742 WTF::String output = externalRepresentation(frame, blink::LayoutAsTextSh
owAllLayers | blink::LayoutAsTextShowLayerNesting | blink::LayoutAsTextShowCompo
sitedLayers | blink::LayoutAsTextShowAddresses | blink::LayoutAsTextShowIDAndCla
ss | blink::LayoutAsTextDontUpdateLayout | blink::LayoutAsTextShowLayoutState); |
| 2735 fprintf(stderr, "%s\n", output.utf8().data()); | 2743 fprintf(stderr, "%s\n", output.utf8().data()); |
| 2736 } | 2744 } |
| 2737 } | 2745 } |
| 2738 | 2746 |
| 2739 void showLayerTree(const blink::LayoutObject* layoutObject) | 2747 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2740 { | 2748 { |
| 2741 if (!layoutObject) { | 2749 if (!layoutObject) { |
| 2742 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2750 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2743 return; | 2751 return; |
| 2744 } | 2752 } |
| 2745 showLayerTree(layoutObject->enclosingLayer()); | 2753 showLayerTree(layoutObject->enclosingLayer()); |
| 2746 } | 2754 } |
| 2747 #endif | 2755 #endif |
| OLD | NEW |