Fix Windows build after r233268.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jun 2018 20:01:49 +0000 (20:01 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jun 2018 20:01:49 +0000 (20:01 +0000)
* platform/graphics/ca/win/PlatformCALayerWin.cpp:
(PlatformCALayerWin::hasContents const):
* platform/graphics/ca/win/PlatformCALayerWin.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.h

index ec6c407..387f9e4 100644 (file)
@@ -1,3 +1,11 @@
+2018-06-27  Simon Fraser  <simon.fraser@apple.com>
+
+        Fix Windows build after r233268.
+
+        * platform/graphics/ca/win/PlatformCALayerWin.cpp:
+        (PlatformCALayerWin::hasContents const):
+        * platform/graphics/ca/win/PlatformCALayerWin.h:
+
 2018-06-27  Zalan Bujtas  <zalan@apple.com>
 
         [LFC] Out-of-flow positioned element's height depends on its containing block's height.
index 7a3d327..37ed940 100644 (file)
@@ -535,6 +535,11 @@ void PlatformCALayerWin::setSupportsSubpixelAntialiasedText(bool)
 {
 }
 
+bool PlatformCALayerWin::hasContents() const
+{
+    return !!CACFLayerGetContents(m_layer.get());
+}
+
 CFTypeRef PlatformCALayerWin::contents() const
 {
     return CACFLayerGetContents(m_layer.get());
index 781ad8e..60990cd 100644 (file)
@@ -108,6 +108,7 @@ public:
     bool supportsSubpixelAntialiasedText() const override;
     void setSupportsSubpixelAntialiasedText(bool) override;
 
+    bool hasContents() const override;
     CFTypeRef contents() const override;
     void setContents(CFTypeRef) override;