Bug 82766 - [BlackBerry] Speed up processing of Selection region generation.
Summary: [BlackBerry] Speed up processing of Selection region generation.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike Fenton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-30 11:54 PDT by Mike Fenton
Modified: 2012-04-12 08:54 PDT (History)
3 users (show)

See Also:


Attachments
Patch (20.57 KB, patch)
2012-03-30 12:10 PDT, Mike Fenton
no flags Details | Formatted Diff | Diff
Fixed Patch (3.75 KB, patch)
2012-04-12 07:21 PDT, Mike Fenton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Fenton 2012-03-30 11:54:10 PDT
This addresses both bug 81536 and the regression caused by it.
Comment 1 Mike Fenton 2012-03-30 12:10:11 PDT
Created attachment 134855 [details]
Patch
Comment 2 Rob Buis 2012-03-30 12:13:15 PDT
Comment on attachment 134855 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=134855&action=review

Looks good.

> Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp:814
> +    for (unsigned int i = 0; i < rectList.size(); i++) {

Just unsigned is likely enough.

> Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp:886
> +        for (unsigned int i = 0; i < unclippedRegion.numRects(); i++)

Ditto.
Comment 3 WebKit Review Bot 2012-03-30 13:51:46 PDT
Comment on attachment 134855 [details]
Patch

Clearing flags on attachment: 134855

Committed r112721: <http://trac.webkit.org/changeset/112721>
Comment 4 WebKit Review Bot 2012-03-30 13:51:52 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Antonio Gomes 2012-04-03 10:15:53 PDT
Comment on attachment 134855 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=134855&action=review

> Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp:808
> +static bool regionRectListContainsPoint(IntRectRegion& region, WebCore::IntPoint point)

1st param should be const
2nd param should be const&
Comment 6 Mike Fenton 2012-04-12 06:44:16 PDT
This patch caused a general error causing selection to fail.  Bug 83355, the temporary fix for that, regressed this bug.
Comment 7 Mike Fenton 2012-04-12 07:21:13 PDT
Created attachment 136906 [details]
Fixed Patch
Comment 8 Rob Buis 2012-04-12 07:23:11 PDT
Comment on attachment 136906 [details]
Fixed Patch

LGTM.
Comment 9 WebKit Review Bot 2012-04-12 08:54:04 PDT
Comment on attachment 136906 [details]
Fixed Patch

Clearing flags on attachment: 136906

Committed r113987: <http://trac.webkit.org/changeset/113987>
Comment 10 WebKit Review Bot 2012-04-12 08:54:09 PDT
All reviewed patches have been landed.  Closing bug.