Title: [235774] trunk/Source/WebCore
Revision
235774
Author
[email protected]
Date
2018-09-06 19:36:03 -0700 (Thu, 06 Sep 2018)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (235773 => 235774)


--- trunk/Source/WebCore/ChangeLog	2018-09-07 02:27:37 UTC (rev 235773)
+++ trunk/Source/WebCore/ChangeLog	2018-09-07 02:36:03 UTC (rev 235774)
@@ -1,3 +1,13 @@
+2018-09-06  Simon Fraser  <[email protected]>
+
+        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  <[email protected]>
 
         [LFC] Add support for min/max-height percentage values.

Modified: trunk/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp (235773 => 235774)


--- trunk/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp	2018-09-07 02:27:37 UTC (rev 235773)
+++ trunk/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp	2018-09-07 02:36:03 UTC (rev 235774)
@@ -48,6 +48,10 @@
         },
         [&] (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;
         }
     );
 

Modified: trunk/Source/WebCore/platform/graphics/win/GradientDirect2D.cpp (235773 => 235774)


--- trunk/Source/WebCore/platform/graphics/win/GradientDirect2D.cpp	2018-09-07 02:27:37 UTC (rev 235773)
+++ trunk/Source/WebCore/platform/graphics/win/GradientDirect2D.cpp	2018-09-07 02:36:03 UTC (rev 235774)
@@ -99,6 +99,9 @@
                 &radialGradient);
             RELEASE_ASSERT(SUCCEEDED(hr));
             m_gradient = radialGradient;
+        },
+        [&] (const ConicData&) {
+            // FIXME: implement conic gradient rendering.
         }
     );
 
@@ -148,6 +151,9 @@
 
             if (needScaling)
                 context.restore();
+        },
+        [&] (const ConicData&) {
+            // FIXME: implement conic gradient rendering.
         }
     );
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to