Remove uses of the String::toInt family of functions from the WebCore/svg and WebCore/workers directories
Created attachment 428107 [details] Patch
Created attachment 428109 [details] Patch
Created attachment 428111 [details] Patch
Comment on attachment 428111 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428111&action=review > Source/WebCore/svg/SVGToOTFFontConversion.cpp:1456 > + if (value && *value >= 0 && *value < 1000) { > + m_weight = std::max(std::min((*value + 50) / 100, static_cast<int>(std::numeric_limits<uint8_t>::max())), static_cast<int>(std::numeric_limits<uint8_t>::min())); This std::max/min stuff is not needed. We can’t get a value outside the range 0-255 when we take a number that’s required to be in the range 0-999 and divide it by 100 (with rounding). That gives us a number in the range of 0-10, nowhere near 255, and not less than 0. I’ll remove it.
Accidentally commit this along at the same time as the fix for bug 225577. Committed r277245 (237514@main): <https://commits.webkit.org/237514@main>
<rdar://problem/77717702>