[Webkit-unassigned] [Bug 261656] [SVG2] Allow leading and trailing whitespace in svg attributes using <integer>, <angle>, <number>, <length> and <percentage>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 21 19:38:43 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261656

--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
So Chris Dumez helped me understand better


    WTF_EXPORT_PRIVATE float toFloat(bool* ok = nullptr) const;

So we could do something like

bool success = false;
float result = attribute.toFloat(&success);
if (success)
   // use result.
else
  // ...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230922/c8e9662f/attachment.htm>


More information about the webkit-unassigned mailing list