-
mifenton@rim.com authored
https://bugs.webkit.org/show_bug.cgi?id=82766 Reviewed by Rob Buis. PR 136593. Refactor generation of Selection IntRectRegion to avoid the need for IntRectRegion's helper functions which were not available when using it as a container without unioning the rects. This greatly speeds up rendering by maintaining the distinct rects as the union operation was length with large numbers of rects. Reviewed Internally by Gen Mak, Mike Lattanzio and Tyler Abbott. * WebKitSupport/DOMSupport.cpp: (BlackBerry::WebKit::DOMSupport::visibleTextQuads): (DOMSupport): * WebKitSupport/DOMSupport.h: * WebKitSupport/SelectionHandler.cpp: (BlackBerry::WebKit::SelectionHandler::clippingRectForVisibleContent): (BlackBerry::WebKit::SelectionHandler::regionForTextQuads): (BlackBerry::WebKit::SelectionHandler::setSelection): (WebKit): (BlackBerry::WebKit::regionRectListContainsPoint): (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged): (BlackBerry::WebKit::SelectionHandler::caretPositionChanged): * WebKitSupport/SelectionHandler.h: (WebCore): (SelectionHandler): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f9446b7d