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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "core/frame/FrameView.h" | 53 #include "core/frame/FrameView.h" |
54 #include "core/frame/LocalFrame.h" | 54 #include "core/frame/LocalFrame.h" |
55 #include "core/html/HTMLFrameElement.h" | 55 #include "core/html/HTMLFrameElement.h" |
56 #include "core/layout/ColumnInfo.h" | 56 #include "core/layout/ColumnInfo.h" |
57 #include "core/layout/FilterEffectRenderer.h" | 57 #include "core/layout/FilterEffectRenderer.h" |
58 #include "core/layout/HitTestRequest.h" | 58 #include "core/layout/HitTestRequest.h" |
59 #include "core/layout/HitTestResult.h" | 59 #include "core/layout/HitTestResult.h" |
60 #include "core/layout/HitTestingTransformState.h" | 60 #include "core/layout/HitTestingTransformState.h" |
61 #include "core/layout/LayoutFlowThread.h" | 61 #include "core/layout/LayoutFlowThread.h" |
62 #include "core/layout/LayoutGeometryMap.h" | 62 #include "core/layout/LayoutGeometryMap.h" |
| 63 #include "core/layout/LayoutPart.h" |
63 #include "core/layout/LayoutTreeAsText.h" | 64 #include "core/layout/LayoutTreeAsText.h" |
64 #include "core/layout/compositing/CompositedLayerMapping.h" | 65 #include "core/layout/compositing/CompositedLayerMapping.h" |
65 #include "core/layout/compositing/LayerCompositor.h" | 66 #include "core/layout/compositing/LayerCompositor.h" |
66 #include "core/layout/svg/ReferenceFilterBuilder.h" | 67 #include "core/layout/svg/ReferenceFilterBuilder.h" |
67 #include "core/page/Page.h" | 68 #include "core/page/Page.h" |
68 #include "core/page/scrolling/ScrollingCoordinator.h" | 69 #include "core/page/scrolling/ScrollingCoordinator.h" |
69 #include "core/rendering/RenderInline.h" | 70 #include "core/rendering/RenderInline.h" |
70 #include "core/rendering/RenderPart.h" | |
71 #include "core/rendering/RenderReplica.h" | 71 #include "core/rendering/RenderReplica.h" |
72 #include "core/rendering/RenderScrollbar.h" | 72 #include "core/rendering/RenderScrollbar.h" |
73 #include "core/rendering/RenderScrollbarPart.h" | 73 #include "core/rendering/RenderScrollbarPart.h" |
74 #include "core/rendering/RenderView.h" | 74 #include "core/rendering/RenderView.h" |
75 #include "core/rendering/svg/RenderSVGRoot.h" | 75 #include "core/rendering/svg/RenderSVGRoot.h" |
76 #include "platform/LengthFunctions.h" | 76 #include "platform/LengthFunctions.h" |
77 #include "platform/Partitions.h" | 77 #include "platform/Partitions.h" |
78 #include "platform/RuntimeEnabledFeatures.h" | 78 #include "platform/RuntimeEnabledFeatures.h" |
79 #include "platform/TraceEvent.h" | 79 #include "platform/TraceEvent.h" |
80 #include "platform/geometry/FloatPoint3D.h" | 80 #include "platform/geometry/FloatPoint3D.h" |
(...skipping 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2648 childLocalRect.moveBy(-childOffset); | 2648 childLocalRect.moveBy(-childOffset); |
2649 | 2649 |
2650 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) | 2650 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) |
2651 return true; | 2651 return true; |
2652 } | 2652 } |
2653 return false; | 2653 return false; |
2654 } | 2654 } |
2655 | 2655 |
2656 bool Layer::shouldBeSelfPaintingLayer() const | 2656 bool Layer::shouldBeSelfPaintingLayer() const |
2657 { | 2657 { |
2658 if (renderer()->isRenderPart() && toRenderPart(renderer())->requiresAccelera
tedCompositing()) | 2658 if (renderer()->isLayoutPart() && toLayoutPart(renderer())->requiresAccelera
tedCompositing()) |
2659 return true; | 2659 return true; |
2660 return m_layerType == NormalLayer | 2660 return m_layerType == NormalLayer |
2661 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) | 2661 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) |
2662 || needsCompositedScrolling(); | 2662 || needsCompositedScrolling(); |
2663 } | 2663 } |
2664 | 2664 |
2665 void Layer::updateSelfPaintingLayer() | 2665 void Layer::updateSelfPaintingLayer() |
2666 { | 2666 { |
2667 bool isSelfPaintingLayer = shouldBeSelfPaintingLayer(); | 2667 bool isSelfPaintingLayer = shouldBeSelfPaintingLayer(); |
2668 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) | 2668 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 } | 2950 } |
2951 } | 2951 } |
2952 | 2952 |
2953 void showLayerTree(const blink::LayoutObject* renderer) | 2953 void showLayerTree(const blink::LayoutObject* renderer) |
2954 { | 2954 { |
2955 if (!renderer) | 2955 if (!renderer) |
2956 return; | 2956 return; |
2957 showLayerTree(renderer->enclosingLayer()); | 2957 showLayerTree(renderer->enclosingLayer()); |
2958 } | 2958 } |
2959 #endif | 2959 #endif |
OLD | NEW |