OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 if (Page* page = renderer()->frame()->page()) | 128 if (Page* page = renderer()->frame()->page()) |
129 graphicsLayerFactory = page->chrome()->client()->graphicsLayerFactory(); | 129 graphicsLayerFactory = page->chrome()->client()->graphicsLayerFactory(); |
130 | 130 |
131 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac
tory, this); | 131 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac
tory, this); |
132 | 132 |
133 #ifndef NDEBUG | 133 #ifndef NDEBUG |
134 graphicsLayer->setName(name); | 134 graphicsLayer->setName(name); |
135 #else | 135 #else |
136 UNUSED_PARAM(name); | 136 UNUSED_PARAM(name); |
137 #endif | 137 #endif |
138 graphicsLayer->setMaintainsPixelAlignment(compositor()->keepLayersPixelAlign
ed()); | |
139 | 138 |
140 return graphicsLayer.release(); | 139 return graphicsLayer.release(); |
141 } | 140 } |
142 | 141 |
143 void RenderLayerBacking::updateDebugIndicators(bool showBorder, bool showRepaint
Counter) | 142 void RenderLayerBacking::updateDebugIndicators(bool showBorder, bool showRepaint
Counter) |
144 { | 143 { |
145 m_graphicsLayer->setShowDebugBorder(showBorder); | 144 m_graphicsLayer->setShowDebugBorder(showBorder); |
146 m_graphicsLayer->setShowRepaintCounter(showRepaintCounter); | 145 m_graphicsLayer->setShowRepaintCounter(showRepaintCounter); |
147 | 146 |
148 if (m_ancestorClippingLayer) | 147 if (m_ancestorClippingLayer) |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 m_owningLayer->paintScrollCorner(&context, IntPoint(), transformedClip); | 1673 m_owningLayer->paintScrollCorner(&context, IntPoint(), transformedClip); |
1675 m_owningLayer->paintResizer(&context, IntPoint(), transformedClip); | 1674 m_owningLayer->paintResizer(&context, IntPoint(), transformedClip); |
1676 context.restore(); | 1675 context.restore(); |
1677 } | 1676 } |
1678 #ifndef NDEBUG | 1677 #ifndef NDEBUG |
1679 if (Page* page = renderer()->frame()->page()) | 1678 if (Page* page = renderer()->frame()->page()) |
1680 page->setIsPainting(false); | 1679 page->setIsPainting(false); |
1681 #endif | 1680 #endif |
1682 } | 1681 } |
1683 | 1682 |
1684 float RenderLayerBacking::pageScaleFactor() const | |
1685 { | |
1686 return compositor()->pageScaleFactor(); | |
1687 } | |
1688 | |
1689 float RenderLayerBacking::deviceScaleFactor() const | |
1690 { | |
1691 return compositor()->deviceScaleFactor(); | |
1692 } | |
1693 | |
1694 void RenderLayerBacking::didCommitChangesForLayer(const GraphicsLayer* layer) co
nst | 1683 void RenderLayerBacking::didCommitChangesForLayer(const GraphicsLayer* layer) co
nst |
1695 { | 1684 { |
1696 } | 1685 } |
1697 | 1686 |
1698 bool RenderLayerBacking::getCurrentTransform(const GraphicsLayer* graphicsLayer,
TransformationMatrix& transform) const | 1687 bool RenderLayerBacking::getCurrentTransform(const GraphicsLayer* graphicsLayer,
TransformationMatrix& transform) const |
1699 { | 1688 { |
1700 GraphicsLayer* transformedLayer = m_contentsContainmentLayer.get() ? m_conte
ntsContainmentLayer.get() : m_graphicsLayer.get(); | 1689 GraphicsLayer* transformedLayer = m_contentsContainmentLayer.get() ? m_conte
ntsContainmentLayer.get() : m_graphicsLayer.get(); |
1701 if (graphicsLayer != transformedLayer) | 1690 if (graphicsLayer != transformedLayer) |
1702 return false; | 1691 return false; |
1703 | 1692 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 info.addMember(m_childContainmentLayer, "childContainmentLayer"); | 1953 info.addMember(m_childContainmentLayer, "childContainmentLayer"); |
1965 info.addMember(m_maskLayer, "maskLayer"); | 1954 info.addMember(m_maskLayer, "maskLayer"); |
1966 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar")
; | 1955 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar")
; |
1967 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); | 1956 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); |
1968 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 1957 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
1969 info.addMember(m_scrollingLayer, "scrollingLayer"); | 1958 info.addMember(m_scrollingLayer, "scrollingLayer"); |
1970 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); | 1959 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); |
1971 } | 1960 } |
1972 | 1961 |
1973 } // namespace WebCore | 1962 } // namespace WebCore |
OLD | NEW |