diff options
Diffstat (limited to 'WebCore/platform/graphics/win/GraphicsLayerCACF.cpp')
-rw-r--r-- | WebCore/platform/graphics/win/GraphicsLayerCACF.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp b/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp index 96ac0c1..dad5da1 100644 --- a/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp +++ b/WebCore/platform/graphics/win/GraphicsLayerCACF.cpp @@ -121,11 +121,6 @@ static void clearLayerBackgroundColor(WKCACFLayer* layer) layer->setBackgroundColor(0); } -GraphicsLayer::CompositingCoordinatesOrientation GraphicsLayer::compositingCoordinatesOrientation() -{ - return CompositingCoordinatesBottomUp; -} - PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerClient* client) { return new GraphicsLayerCACF(client); @@ -395,15 +390,6 @@ void GraphicsLayerCACF::setContentsToMedia(PlatformLayer* mediaLayer) updateSublayerList(); } -void GraphicsLayerCACF::setGeometryOrientation(CompositingCoordinatesOrientation orientation) -{ - if (orientation == m_geometryOrientation) - return; - - GraphicsLayer::setGeometryOrientation(orientation); - updateGeometryOrientation(); -} - PlatformLayer* GraphicsLayerCACF::hostLayerForSublayers() const { return m_transformLayer ? m_transformLayer.get() : m_layer.get(); @@ -461,13 +447,6 @@ void GraphicsLayerCACF::swapFromOrToTiledLayer(bool useTiledLayer) m_layer = WebLayer::create(WKCACFLayer::Layer, this); m_usingTiledLayer = useTiledLayer; - - if (useTiledLayer) { - if (GraphicsLayer::compositingCoordinatesOrientation() == GraphicsLayer::CompositingCoordinatesBottomUp) - m_layer->setContentsGravity(WKCACFLayer::BottomLeft); - else - m_layer->setContentsGravity(WKCACFLayer::TopLeft); - } m_layer->adoptSublayers(oldLayer.get()); if (oldLayer->superlayer()) @@ -738,21 +717,6 @@ void GraphicsLayerCACF::updateContentsRect() m_contentsLayer->setBounds(rect); } -void GraphicsLayerCACF::updateGeometryOrientation() -{ - switch (geometryOrientation()) { - case CompositingCoordinatesTopDown: - m_layer->setGeometryFlipped(false); - break; - - case CompositingCoordinatesBottomUp: - m_layer->setGeometryFlipped(true); - break; - } - // Geometry orientation is mapped onto children transform in older QuartzCores, - // so is handled via setGeometryOrientation(). -} - void GraphicsLayerCACF::setupContentsLayer(WKCACFLayer* contentsLayer) { if (contentsLayer == m_contentsLayer) |