Title: [255911] trunk/Source/WebCore
Revision
255911
Author
[email protected]
Date
2020-02-06 00:47:38 -0800 (Thu, 06 Feb 2020)

Log Message

[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: trunk/Source/WebCore/ChangeLog (255910 => 255911)


--- trunk/Source/WebCore/ChangeLog	2020-02-06 08:34:49 UTC (rev 255910)
+++ trunk/Source/WebCore/ChangeLog	2020-02-06 08:47:38 UTC (rev 255911)
@@ -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]>
 
         [Cocoa] Use AVAssetWriterDelegate to implement MediaRecorder

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


--- trunk/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp	2020-02-06 08:34:49 UTC (rev 255910)
+++ trunk/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp	2020-02-06 08:47:38 UTC (rev 255911)
@@ -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

Reply via email to