Title: [256115] releases/WebKitGTK/webkit-2.28/Source/WebCore
- Revision
- 256115
- Author
- [email protected]
- Date
- 2020-02-10 05:22:13 -0800 (Mon, 10 Feb 2020)
Log Message
Merge r255911 - [Cairo] Do not use old-style GNU field initializers
https://bugs.webkit.org/show_bug.cgi?id=207309
Reviewed by Carlos Garcia Campos.
No new tests needed.
* platform/graphics/cairo/GradientCairo.cpp:
(WebCore::addConicSector): Use the standard named field initializer syntax instead.
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.28/Source/WebCore/ChangeLog (256114 => 256115)
--- releases/WebKitGTK/webkit-2.28/Source/WebCore/ChangeLog 2020-02-10 11:21:37 UTC (rev 256114)
+++ releases/WebKitGTK/webkit-2.28/Source/WebCore/ChangeLog 2020-02-10 13:22:13 UTC (rev 256115)
@@ -1,3 +1,15 @@
+2020-02-06 Adrian Perez de Castro <[email protected]>
+
+ [Cairo] Do not use old-style GNU field initializers
+ https://bugs.webkit.org/show_bug.cgi?id=207309
+
+ Reviewed by Carlos Garcia Campos.
+
+ No new tests needed.
+
+ * platform/graphics/cairo/GradientCairo.cpp:
+ (WebCore::addConicSector): Use the standard named field initializer syntax instead.
+
2020-02-06 youenn fablet <[email protected]>
ServiceWorkerProvider::registerServiceWorkerClients is no longer needed
Modified: releases/WebKitGTK/webkit-2.28/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp (256114 => 256115)
--- releases/WebKitGTK/webkit-2.28/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp 2020-02-10 11:21:37 UTC (rev 256114)
+++ releases/WebKitGTK/webkit-2.28/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp 2020-02-10 13:22:13 UTC (rev 256115)
@@ -117,20 +117,20 @@
// Calculate starting point, ending point and control points of Bezier curve.
double f = 4 * tan((angleEnd - angleStart) / 4) / 3;
point_t p0 = {
- x: cx + (r * cos(angleStart)),
- y: cy + (r * sin(angleStart))
+ .x = cx + (r * cos(angleStart)),
+ .y = cy + (r * sin(angleStart)),
};
point_t p1 = {
- x: cx + (r * cos(angleStart)) - f * (r * sin(angleStart)),
- y: cy + (r * sin(angleStart)) + f * (r * cos(angleStart))
+ .x = cx + (r * cos(angleStart)) - f * (r * sin(angleStart)),
+ .y = cy + (r * sin(angleStart)) + f * (r * cos(angleStart)),
};
point_t p2 = {
- x: cx + (r * cos(angleEnd)) + f * (r * sin(angleEnd)),
- y: cy + (r * sin(angleEnd)) - f * (r * cos(angleEnd))
+ .x = cx + (r * cos(angleEnd)) + f * (r * sin(angleEnd)),
+ .y = cy + (r * sin(angleEnd)) - f * (r * cos(angleEnd)),
};
point_t p3 = {
- x: cx + (r * cos(angleEnd)),
- y: cy + (r * sin(angleEnd))
+ .x = cx + (r * cos(angleEnd)),
+ .y = cy + (r * sin(angleEnd)),
};
// Add patch with shape of the sector and gradient colors.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes