From 3e26690daed332a3ed415e4af0892b4fa33b0a28 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Sun, 22 Mar 2020 18:45:00 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Address=C2=A0review=C2=A0comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.bs | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/index.bs b/index.bs index c0e21418c..9e1663c5b 100644 --- a/index.bs +++ b/index.bs @@ -5972,7 +5972,8 @@ type that corresponds to the set of finite single-precision 32 bit IEEE 754 floating point numbers. [[!IEEE-754]] When defined with the [{{Unrestricted}}] [=extended attribute=], the {{float}} type -additionally corresponds to IEEE 754 non-finite, and special "not a number" values (NaNs). [[!IEEE-754]] +additionally corresponds to the single-precision 32 bit IEEE 754 non-finite, +and special "not a number" values (NaNs). [[!IEEE-754]] {{float}} constant values in IDL are represented with decimal @@ -5997,7 +5998,8 @@ type that corresponds to the set of finite double-precision 64 bit IEEE 754 floating point numbers. [[!IEEE-754]] When defined with the [{{Unrestricted}}] [=extended attribute=], the {{double}} type -additionally corresponds to IEEE 754 non-finite, and special "not a number" values (NaNs). [[!IEEE-754]] +additionally corresponds to the double-precision 64 bit IEEE 754 non-finite, +and special "not a number" values (NaNs). [[!IEEE-754]] {{double}} constant values in IDL are represented with decimal @@ -7125,8 +7127,8 @@ ECMAScript value type. return the {{boolean}} value that represents the same truth value. 1. If Type(|V|) is Number, then return the result of converting |V| - to an {{double}} [=extended attribute associated with|associated with=] - the [{{Unrestricted}}] [=extended attribute=]. + to a {{double}} [=extended attribute associated with|with an associated=] + [{{Unrestricted}}] [=extended attribute=]. 1. If Type(|V|) is String, then return the result of converting |V| to a {{DOMString}}. @@ -10691,12 +10693,12 @@ for the specific requirements that the use of
         [Exposed=Window]
         interface GraphicsContext {
-          void setColorFloat(double red, double green, double blue);
-          void setColorUnrestrictedFloat([Unrestricted] double red, [Unrestricted] double green, [Unrestricted] double blue);
+          void setColorDouble(double red, double green, double blue);
+          void setColorUnrestrictedDouble([Unrestricted] double red, [Unrestricted] double green, [Unrestricted] double blue);
         };
     
- In an ECMAScript implementation of the IDL, a call to setColor3f with + In an ECMAScript implementation of the IDL, a call to setColorDouble with Number values that are out of range for a {{double}} will result in an exception being thrown. @@ -10706,14 +10708,14 @@ for the specific requirements that the use of var context = getGraphicsContext(); // Calling the [Unrestricted] version uses allows NaN and non-finite numbers values: - context.setColorUnrestrictedFloat(NaN, +Infinity, -Infinity); + context.setColorUnrestrictedDouble(NaN, +Infinity, -Infinity); - // When setColorFloat is called, floating point values are allowed: - context.setColorFloat(-0.9, 1, 1.1); + // When setColorDouble is called, floating point values are allowed: + context.setColorDouble(-0.9, 1, 1.1); // The following will cause a TypeError to be thrown, since NaN and non-finite // number values are not allowed when [Unrestricted] is not specified: - context.setColorFloat(NaN, +Infinity, -Infinity); + context.setColorDouble(NaN, +Infinity, -Infinity);