Title: [288428] trunk/Source/WebCore
Revision
288428
Author
[email protected]
Date
2022-01-23 18:07:06 -0800 (Sun, 23 Jan 2022)

Log Message

Fix "componet" typo in just-landed patch.

* platform/graphics/ColorInterpolation.h: I suggested Sam change a name
to interpolateComponentWithoutAccountingForNaN, but mispelled it "componet".
Fixing it here.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288427 => 288428)


--- trunk/Source/WebCore/ChangeLog	2022-01-24 00:57:12 UTC (rev 288427)
+++ trunk/Source/WebCore/ChangeLog	2022-01-24 02:07:06 UTC (rev 288428)
@@ -1,3 +1,11 @@
+2022-01-23  Darin Adler  <[email protected]>
+
+        Fix "componet" typo in just-landed patch.
+
+        * platform/graphics/ColorInterpolation.h: I suggested Sam change a name
+        to interpolateComponentWithoutAccountingForNaN, but mispelled it "componet".
+        Fixing it here.
+
 2022-01-23  Sam Weinig  <[email protected]>
 
         Support interpolating colors with missing/none components via color-mix()

Modified: trunk/Source/WebCore/platform/graphics/ColorInterpolation.h (288427 => 288428)


--- trunk/Source/WebCore/platform/graphics/ColorInterpolation.h	2022-01-24 00:57:12 UTC (rev 288427)
+++ trunk/Source/WebCore/platform/graphics/ColorInterpolation.h	2022-01-24 02:07:06 UTC (rev 288428)
@@ -46,7 +46,7 @@
 
 // MARK: - Premultiplication-agnostic interpolation helpers.
 
-inline float interpolateComponetWithoutAccountingForNaN(float componentFromColor1, double color1Multiplier, float componentFromColor2, double color2Multiplier)
+inline float interpolateComponentWithoutAccountingForNaN(float componentFromColor1, double color1Multiplier, float componentFromColor2, double color2Multiplier)
 {
     return (componentFromColor1 * color1Multiplier) + (componentFromColor2 * color2Multiplier);
 }
@@ -58,7 +58,7 @@
     if (std::isnan(componentFromColor2))
         return componentFromColor1;
 
-    return interpolateComponetWithoutAccountingForNaN(componentFromColor1, color1Multiplier, componentFromColor2, color2Multiplier);
+    return interpolateComponentWithoutAccountingForNaN(componentFromColor1, color1Multiplier, componentFromColor2, color2Multiplier);
 }
 
 template<typename InterpolationMethodColorSpace>
@@ -70,7 +70,7 @@
         return componentFromColor1;
 
     auto [fixedupComponent1, fixedupComponent2] = fixupHueComponentsPriorToInterpolation(interpolationMethodColorSpace.hueInterpolationMethod, componentFromColor1, componentFromColor2);
-    return interpolateComponetWithoutAccountingForNaN(fixedupComponent1, color1Multiplier, fixedupComponent2, color2Multiplier);
+    return interpolateComponentWithoutAccountingForNaN(fixedupComponent1, color1Multiplier, fixedupComponent2, color2Multiplier);
 }
 
 // MARK: - Premultiplied interpolation.
@@ -95,7 +95,7 @@
     if (std::isnan(alphaForColor2))
         return { alphaForColor1, alphaForColor1, alphaForColor1, alphaForColor1 };
 
-    auto interpolatedAlpha = interpolateComponetWithoutAccountingForNaN(alphaForColor1, color1Multiplier, alphaForColor2, color2Multiplier);
+    auto interpolatedAlpha = interpolateComponentWithoutAccountingForNaN(alphaForColor1, color1Multiplier, alphaForColor2, color2Multiplier);
     return { alphaForColor1, alphaForColor2, interpolatedAlpha, interpolatedAlpha };
 }
 
@@ -116,7 +116,7 @@
         auto premultipliedComponent1 = colorComponents1[I] * interpolatedAlpha.alphaForPremultiplicationOfColor1;
         auto premultipliedComponent2 = colorComponents2[I] * interpolatedAlpha.alphaForPremultiplicationOfColor2;
 
-        auto premultipliedResult = interpolateComponetWithoutAccountingForNaN(premultipliedComponent1, color1Multiplier, premultipliedComponent2, color2Multiplier);
+        auto premultipliedResult = interpolateComponentWithoutAccountingForNaN(premultipliedComponent1, color1Multiplier, premultipliedComponent2, color2Multiplier);
 
         if (interpolatedAlpha.alphaForUnpremultiplication == 0.0f)
             return premultipliedResult;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to