summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm')
-rw-r--r--Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm b/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
index d50886801..915a60be6 100644
--- a/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
+++ b/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
@@ -35,6 +35,7 @@
#import "GraphicsContext.h"
#import "GraphicsLayerCA.h"
#import "LengthFunctions.h"
+#import "TiledBacking.h"
#import "WebLayer.h"
#import "WebTiledLayer.h"
#import "WebTileCacheLayer.h"
@@ -193,6 +194,7 @@ PlatformCALayer::PlatformCALayer(LayerType layerType, PlatformLayer* layer, Plat
layerClass = [WebTiledLayer class];
break;
case LayerTypeTileCacheLayer:
+ case LayerTypePageTileCacheLayer:
layerClass = [WebTileCacheLayer class];
break;
case LayerTypeCustom:
@@ -218,7 +220,7 @@ PlatformCALayer::PlatformCALayer(LayerType layerType, PlatformLayer* layer, Plat
[tiledLayer setContentsGravity:@"bottomLeft"];
}
- if (m_layerType == LayerTypeTileCacheLayer) {
+ if (usesTileCacheLayer()) {
m_customSublayers = adoptPtr(new PlatformCALayerList(1));
CALayer* tileCacheTileContainerLayer = [static_cast<WebTileCacheLayer *>(m_layer.get()) tileContainerLayer];
(*m_customSublayers)[0] = PlatformCALayer::create(tileCacheTileContainerLayer, 0);
@@ -238,7 +240,7 @@ PlatformCALayer::~PlatformCALayer()
// Remove the owner pointer from the delegate in case there is a pending animationStarted event.
[static_cast<WebAnimationDelegate*>(m_delegate.get()) setOwner:nil];
- if (m_layerType == LayerTypeTileCacheLayer)
+ if (usesTileCacheLayer())
[static_cast<WebTileCacheLayer *>(m_layer.get()) invalidate];
}
@@ -931,7 +933,7 @@ void PlatformCALayer::setContentsScale(float value)
TiledBacking* PlatformCALayer::tiledBacking()
{
- if (m_layerType != LayerTypeTileCacheLayer)
+ if (!usesTileCacheLayer())
return 0;
WebTileCacheLayer *tileCacheLayer = static_cast<WebTileCacheLayer *>(m_layer.get());