[Webkit-unassigned] [Bug 132706] REGRESSION (r168053): Phone number detection boxes are wrong when scrolled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 9 07:39:23 PDT 2014


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





--- Comment #3 from Darin Adler <darin at apple.com>  2014-05-09 07:39:45 PST ---
(From update of attachment 231101)
View in context: https://bugs.webkit.org/attachment.cgi?id=231101&action=review

> Source/WebKit2/WebProcess/WebPage/mac/TelephoneNumberOverlayControllerMac.mm:66
> +    size_t size = textQuads.size();
> +    for (size_t i = 0; i < size; ++i)
> +        boundingRect.unite(textQuads[i].boundingBox());

Should use a modern for loop:

    for (auto& quad : textQuads)
        boundingRect.unit(quad.boundingBox());

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list