Changeset 238410 in webkit


Ignore:
Timestamp:
Nov 20, 2018 5:02:25 PM (5 years ago)
Author:
dino@apple.com
Message:

Removing using namespace WebCore from WebLayer
https://bugs.webkit.org/show_bug.cgi?id=191870
<rdar://problem/46192206>

Rubber-stamped by Sam Weinig.

Remove "using namespace WebCore" from WebLayer.mm
because it will cause type clashes in unified source
builds.

  • platform/graphics/mac/WebLayer.mm:

(-[WebLayer drawInContext:]):
(-[WebSimpleLayer setNeedsDisplay]):
(-[WebSimpleLayer setNeedsDisplayInRect:]):
(-[WebSimpleLayer display]):
(-[WebSimpleLayer drawInContext:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r238409 r238410  
     12018-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
    1202018-11-20  Ryosuke Niwa  <rniwa@webkit.org>
    221
  • trunk/Source/WebCore/platform/graphics/mac/WebLayer.mm

    r237266 r238410  
    4040#endif
    4141
    42 using namespace WebCore;
    43 
    4442#if PLATFORM(IOS_FAMILY)
    4543@interface WebLayer(Private)
     
    5250- (void)drawInContext:(CGContextRef)context
    5351{
    54     PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
     52    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    5553    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);
    5856    }
    5957}
     
    8280- (void)setNeedsDisplay
    8381{
    84     PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
     82    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    8583    if (layer && layer->owner() && layer->owner()->platformCALayerDrawsContent())
    8684        [super setNeedsDisplay];
     
    8987- (void)setNeedsDisplayInRect:(CGRect)dirtyRect
    9088{
    91     PlatformCALayer* platformLayer = PlatformCALayer::platformCALayer((__bridge void*)self);
     89    WebCore::PlatformCALayer* platformLayer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    9290    if (!platformLayer) {
    9391        [super setNeedsDisplayInRect:dirtyRect];
     
    9593    }
    9694
    97     if (PlatformCALayerClient* layerOwner = platformLayer->owner()) {
     95    if (WebCore::PlatformCALayerClient* layerOwner = platformLayer->owner()) {
    9896        if (layerOwner->platformCALayerDrawsContent()) {
    9997            [super setNeedsDisplayInRect:dirtyRect];
     
    116114    ASSERT(isMainThread());
    117115    [super display];
    118     PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
     116    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    119117    if (layer && layer->owner())
    120118        layer->owner()->platformCALayerLayerDidDisplay(layer);
     
    128126#endif
    129127    ASSERT(isMainThread());
    130     PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
     128    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    131129    if (layer && layer->owner()) {
    132         GraphicsContext graphicsContext(context);
     130        WebCore::GraphicsContext graphicsContext(context);
    133131        graphicsContext.setIsCALayerContext(true);
    134132        graphicsContext.setIsAcceleratedContext(layer->acceleratesDrawing());
    135133
    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);
    138136    }
    139137}
Note: See TracChangeset for help on using the changeset viewer.