Changeset 238410 in webkit
- Timestamp:
- Nov 20, 2018 5:02:25 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238409 r238410 1 2018-11-20 Dean Jackson <dino@apple.com> 2 3 Removing using namespace WebCore from WebLayer 4 https://bugs.webkit.org/show_bug.cgi?id=191870 5 <rdar://problem/46192206> 6 7 Rubber-stamped by Sam Weinig. 8 9 Remove "using namespace WebCore" from WebLayer.mm 10 because it will cause type clashes in unified source 11 builds. 12 13 * platform/graphics/mac/WebLayer.mm: 14 (-[WebLayer drawInContext:]): 15 (-[WebSimpleLayer setNeedsDisplay]): 16 (-[WebSimpleLayer setNeedsDisplayInRect:]): 17 (-[WebSimpleLayer display]): 18 (-[WebSimpleLayer drawInContext:]): 19 1 20 2018-11-20 Ryosuke Niwa <rniwa@webkit.org> 2 21 -
trunk/Source/WebCore/platform/graphics/mac/WebLayer.mm
r237266 r238410 40 40 #endif 41 41 42 using namespace WebCore;43 44 42 #if PLATFORM(IOS_FAMILY) 45 43 @interface WebLayer(Private) … … 52 50 - (void)drawInContext:(CGContextRef)context 53 51 { 54 PlatformCALayer* layer =PlatformCALayer::platformCALayer((__bridge void*)self);52 WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 55 53 if (layer) { 56 PlatformCALayer::RepaintRectList rectsToPaint =PlatformCALayer::collectRectsToPaint(context, layer);57 PlatformCALayer::drawLayerContents(context, layer, rectsToPaint, self.isRenderingInContext ? GraphicsLayerPaintSnapshotting :GraphicsLayerPaintNormal);54 WebCore::PlatformCALayer::RepaintRectList rectsToPaint = WebCore::PlatformCALayer::collectRectsToPaint(context, layer); 55 WebCore::PlatformCALayer::drawLayerContents(context, layer, rectsToPaint, self.isRenderingInContext ? WebCore::GraphicsLayerPaintSnapshotting : WebCore::GraphicsLayerPaintNormal); 58 56 } 59 57 } … … 82 80 - (void)setNeedsDisplay 83 81 { 84 PlatformCALayer* layer =PlatformCALayer::platformCALayer((__bridge void*)self);82 WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 85 83 if (layer && layer->owner() && layer->owner()->platformCALayerDrawsContent()) 86 84 [super setNeedsDisplay]; … … 89 87 - (void)setNeedsDisplayInRect:(CGRect)dirtyRect 90 88 { 91 PlatformCALayer* platformLayer =PlatformCALayer::platformCALayer((__bridge void*)self);89 WebCore::PlatformCALayer* platformLayer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 92 90 if (!platformLayer) { 93 91 [super setNeedsDisplayInRect:dirtyRect]; … … 95 93 } 96 94 97 if ( PlatformCALayerClient* layerOwner = platformLayer->owner()) {95 if (WebCore::PlatformCALayerClient* layerOwner = platformLayer->owner()) { 98 96 if (layerOwner->platformCALayerDrawsContent()) { 99 97 [super setNeedsDisplayInRect:dirtyRect]; … … 116 114 ASSERT(isMainThread()); 117 115 [super display]; 118 PlatformCALayer* layer =PlatformCALayer::platformCALayer((__bridge void*)self);116 WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 119 117 if (layer && layer->owner()) 120 118 layer->owner()->platformCALayerLayerDidDisplay(layer); … … 128 126 #endif 129 127 ASSERT(isMainThread()); 130 PlatformCALayer* layer =PlatformCALayer::platformCALayer((__bridge void*)self);128 WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 131 129 if (layer && layer->owner()) { 132 GraphicsContext graphicsContext(context);130 WebCore::GraphicsContext graphicsContext(context); 133 131 graphicsContext.setIsCALayerContext(true); 134 132 graphicsContext.setIsAcceleratedContext(layer->acceleratesDrawing()); 135 133 136 FloatRect clipBounds = CGContextGetClipBoundingBox(context);137 layer->owner()->platformCALayerPaintContents(layer, graphicsContext, clipBounds, self.isRenderingInContext ? GraphicsLayerPaintSnapshotting :GraphicsLayerPaintNormal);134 WebCore::FloatRect clipBounds = CGContextGetClipBoundingBox(context); 135 layer->owner()->platformCALayerPaintContents(layer, graphicsContext, clipBounds, self.isRenderingInContext ? WebCore::GraphicsLayerPaintSnapshotting : WebCore::GraphicsLayerPaintNormal); 138 136 } 139 137 }
Note: See TracChangeset
for help on using the changeset viewer.