Try to fix Windows build.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Mar 2019 20:29:03 +0000 (20:29 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Mar 2019 20:29:03 +0000 (20:29 +0000)
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateEventRegion):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerBacking.cpp

index 589c2ef..48a7a1e 100644 (file)
@@ -1,5 +1,12 @@
 2019-03-18  Antti Koivisto  <antti@apple.com>
 
+        Try to fix Windows build.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::updateEventRegion):
+
+2019-03-18  Antti Koivisto  <antti@apple.com>
+
         Layer with no backing store should still hit-test over a scroller
         https://bugs.webkit.org/show_bug.cgi?id=195378
         <rdar://problem/48652078>
index 815a7dd..b35209b 100644 (file)
@@ -1434,6 +1434,7 @@ void RenderLayerBacking::updateDrawsContent(PaintedContentsInfo& contentsInfo)
 
 void RenderLayerBacking::updateEventRegion()
 {
+#if PLATFORM(COCOA)
     GraphicsContext nullContext(nullptr);
     RenderLayer::LayerPaintingInfo paintingInfo(&m_owningLayer, compositedBounds(), { }, LayoutSize());
 
@@ -1446,6 +1447,7 @@ void RenderLayerBacking::updateEventRegion()
     eventRegion.translate(roundedIntSize(contentOffsetInCompositingLayer()));
 
     m_graphicsLayer->setEventRegion(WTFMove(eventRegion));
+#endif
 }
 
 // Return true if the layer changed.