Fix the build for non-Cocoa platforms after r235772.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Sep 2018 02:36:03 +0000 (02:36 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Sep 2018 02:36:03 +0000 (02:36 +0000)
* platform/graphics/cairo/GradientCairo.cpp:
(WebCore::Gradient::createPlatformGradient):
* platform/graphics/win/GradientDirect2D.cpp:
(WebCore::Gradient::generateGradient):
(WebCore::Gradient::fill):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/GradientCairo.cpp
Source/WebCore/platform/graphics/win/GradientDirect2D.cpp

index 764bfd0..39d5c3b 100644 (file)
@@ -1,3 +1,13 @@
+2018-09-06  Simon Fraser  <simon.fraser@apple.com>
+
+        Fix the build for non-Cocoa platforms after r235772.
+
+        * platform/graphics/cairo/GradientCairo.cpp:
+        (WebCore::Gradient::createPlatformGradient):
+        * platform/graphics/win/GradientDirect2D.cpp:
+        (WebCore::Gradient::generateGradient):
+        (WebCore::Gradient::fill):
+
 2018-09-06  Zalan Bujtas  <zalan@apple.com>
 
         [LFC] Add support for min/max-height percentage values.
index af36e43..c4f66a3 100644 (file)
@@ -48,6 +48,10 @@ cairo_pattern_t* Gradient::createPlatformGradient(float globalAlpha)
         },
         [&] (const RadialData& data) -> cairo_pattern_t* {
             return cairo_pattern_create_radial(data.point0.x(), data.point0.y(), data.startRadius, data.point1.x(), data.point1.y(), data.endRadius);
+        },
+        [&] (const ConicData&)  -> cairo_pattern_t* {
+            // FIXME: implement conic gradient rendering.
+            return nullptr;
         }
     );
 
index 59789e0..edc27bf 100644 (file)
@@ -99,6 +99,9 @@ void Gradient::generateGradient(ID2D1RenderTarget* renderTarget)
                 &radialGradient);
             RELEASE_ASSERT(SUCCEEDED(hr));
             m_gradient = radialGradient;
+        },
+        [&] (const ConicData&) {
+            // FIXME: implement conic gradient rendering.
         }
     );
 
@@ -148,6 +151,9 @@ void Gradient::fill(GraphicsContext& context, const FloatRect& rect)
 
             if (needScaling)
                 context.restore();
+        },
+        [&] (const ConicData&) {
+            // FIXME: implement conic gradient rendering.
         }
     );
 }