DOMMatrix/DOMMatrixReadOnly validation is incorrect for NaN values
Created attachment 319751 [details] Patch
Comment on attachment 319751 [details] Patch r=me
Comment on attachment 319751 [details] Patch Clearing flags on attachment: 319751 Committed r221545: <http://trac.webkit.org/changeset/221545>
All reviewed patches have been landed. Closing bug.
Comment on attachment 319751 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=319751&action=review > Source/WebCore/css/DOMMatrixReadOnly.cpp:99 > +static bool sameValueZero(double a, double b) It may be in the spec, but I find the name of this very confusing, and not at all memorable. Also, should it go into MathExtras.h?
(In reply to Simon Fraser (smfr) from comment #5) > Comment on attachment 319751 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=319751&action=review > > > Source/WebCore/css/DOMMatrixReadOnly.cpp:99 > > +static bool sameValueZero(double a, double b) > > It may be in the spec, but I find the name of this very confusing, and not > at all memorable. Also, should it go into MathExtras.h? I agree the name's not good. Have any ideas for a better one? I'm not a fan of putting things in MathExtras.h (or other shared places) that are only used in one place (though I admit its a bit of a chicken and the egg. If it's not in the shared place, how will people know about it?) Happy to move it if we can come up with a non-terrible name.
(In reply to Sam Weinig from comment #6) > (In reply to Simon Fraser (smfr) from comment #5) > > Comment on attachment 319751 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=319751&action=review > > > > > Source/WebCore/css/DOMMatrixReadOnly.cpp:99 > > > +static bool sameValueZero(double a, double b) > > > > It may be in the spec, but I find the name of this very confusing, and not > > at all memorable. Also, should it go into MathExtras.h? > > I agree the name's not good. Have any ideas for a better one? I'm not a fan > of putting things in MathExtras.h (or other shared places) that are only > used in one place (though I admit its a bit of a chicken and the egg. If > it's not in the shared place, how will people know about it?) > > Happy to move it if we can come up with a non-terrible name. nanEquivalentCompare() or something?
<rdar://problem/34694412>