diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm')
-rw-r--r-- | Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm b/Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm index 72ae6fbd4..c6aab8aff 100644 --- a/Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm +++ b/Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm @@ -78,6 +78,16 @@ using namespace WebCore; _tileCache->tileCacheLayerBoundsChanged(); } +- (void)setOpaque:(BOOL)opaque +{ + _tileCache->setTilesOpaque(opaque); +} + +- (BOOL)isOpaque +{ + return _tileCache->tilesAreOpaque(); +} + - (void)setNeedsDisplay { _tileCache->setNeedsDisplay(); @@ -127,7 +137,8 @@ using namespace WebCore; - (void)setBorderWidth:(CGFloat)borderWidth { - _tileCache->setTileDebugBorderWidth(borderWidth); + // Tiles adjoin, so halve the border width. + _tileCache->setTileDebugBorderWidth(borderWidth / 2); } @end |