diff options
Diffstat (limited to 'WebCore/platform/graphics/mac/WebTiledLayer.mm')
-rw-r--r-- | WebCore/platform/graphics/mac/WebTiledLayer.mm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/mac/WebTiledLayer.mm b/WebCore/platform/graphics/mac/WebTiledLayer.mm index 1dd00ba..a1f5693 100644 --- a/WebCore/platform/graphics/mac/WebTiledLayer.mm +++ b/WebCore/platform/graphics/mac/WebTiledLayer.mm @@ -74,12 +74,19 @@ using namespace WebCore; - (void)setNeedsDisplayInRect:(CGRect)dirtyRect { if (m_layerOwner && m_layerOwner->client() && m_layerOwner->drawsContent()) { +#if defined(BUILDING_ON_LEOPARD) + dirtyRect = CGRectApplyAffineTransform(dirtyRect, [self contentsTransform]); +#endif [super setNeedsDisplayInRect:dirtyRect]; #ifndef NDEBUG if (m_layerOwner->showRepaintCounter()) { CGRect bounds = [self bounds]; - [super setNeedsDisplayInRect:CGRectMake(bounds.origin.x, bounds.origin.y, 46, 25)]; + CGRect indicatorRect = CGRectMake(bounds.origin.x, bounds.origin.y, 46, 25); +#if defined(BUILDING_ON_LEOPARD) + indicatorRect = CGRectApplyAffineTransform(indicatorRect, [self contentsTransform]); +#endif + [super setNeedsDisplayInRect:indicatorRect]; } #endif } |