Title: [270704] trunk/Source/WebCore
Revision
270704
Author
[email protected]
Date
2020-12-11 12:53:08 -0800 (Fri, 11 Dec 2020)

Log Message

Unreviewed. Address post-review comments after r270678.


* rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::paintColorWellDecorations):

Use std::size to determine the size of the color stops array.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (270703 => 270704)


--- trunk/Source/WebCore/ChangeLog	2020-12-11 20:41:35 UTC (rev 270703)
+++ trunk/Source/WebCore/ChangeLog	2020-12-11 20:53:08 UTC (rev 270704)
@@ -1,3 +1,12 @@
+2020-12-11  Aditya Keerthi  <[email protected]>
+
+        Unreviewed. Address post-review comments after r270678.
+
+        * rendering/RenderThemeIOS.mm:
+        (WebCore::RenderThemeIOS::paintColorWellDecorations):
+
+        Use std::size to determine the size of the color stops array.
+
 2020-12-11  Zalan Bujtas  <[email protected]>
 
         [LFC][IFC] Line should report the correct value for "content logical right"

Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.mm (270703 => 270704)


--- trunk/Source/WebCore/rendering/RenderThemeIOS.mm	2020-12-11 20:41:35 UTC (rev 270703)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.mm	2020-12-11 20:53:08 UTC (rev 270704)
@@ -2329,7 +2329,6 @@
     }
 
     constexpr int strokeThickness = 2;
-    constexpr int numColorStops = 9;
     constexpr DisplayP3<float> colorStops[] = {
         { 1, 1, 0, 1 },
         { 1, 0.5, 0, 1 },
@@ -2341,6 +2340,7 @@
         { 0.63, 0.88, 0.03, 1 },
         { 1, 1, 0, 1 }
     };
+    constexpr int numColorStops = std::size(colorStops);
 
     auto gradient = Gradient::create(Gradient::ConicData { rect.center(), 0 });
     for (int i = 0; i < numColorStops; ++i)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to