Bug 101510 - [BlackBerry] Verify touched element using the rootEditableElement
Summary: [BlackBerry] Verify touched element using the rootEditableElement
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: Nima Ghanavatian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 14:11 PST by Nima Ghanavatian
Modified: 2012-11-08 08:24 PST (History)
5 users (show)

See Also:


Attachments
Patch (5.85 KB, patch)
2012-11-07 14:18 PST, Nima Ghanavatian
no flags Details | Formatted Diff | Diff
Patch (5.83 KB, patch)
2012-11-07 15:57 PST, Nima Ghanavatian
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nima Ghanavatian 2012-11-07 14:11:56 PST
When tapping on a misspelled word, look at the rootEditableElement to verify if it is the element under focus.
Comment 1 Nima Ghanavatian 2012-11-07 14:18:10 PST
Created attachment 172870 [details]
Patch
Comment 2 WebKit Review Bot 2012-11-07 14:19:47 PST
Attachment 172870 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/blackberry/ChangeLog', u'Sou..." exit_code: 1
Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:242:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Rob Buis 2012-11-07 14:25:36 PST
Comment on attachment 172870 [details]
Patch

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

Some stuff to fix, have a look at the style problem too and that the patch applies generally (guess we need to watch the bots).

> Source/WebKit/blackberry/WebKitSupport/FatFingers.h:170
> +        WebCore::Node* parentNode;

You only need this in the while loop.

> Source/WebKit/blackberry/WebKitSupport/FatFingers.h:174
> +                break;

Can you use parentElement here as well?

> Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp:713
> +    Element* parentElement;

You only need this in the while loop.
Comment 4 Nima Ghanavatian 2012-11-07 15:57:48 PST
Created attachment 172886 [details]
Patch
Comment 5 WebKit Review Bot 2012-11-07 16:00:53 PST
Attachment 172886 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/blackberry/ChangeLog', u'Sou..." exit_code: 1
Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:242:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Rob Buis 2012-11-07 16:10:35 PST
Comment on attachment 172886 [details]
Patch

LGTM.
Comment 7 WebKit Review Bot 2012-11-08 08:24:35 PST
Comment on attachment 172886 [details]
Patch

Clearing flags on attachment: 172886

Committed r133902: <http://trac.webkit.org/changeset/133902>
Comment 8 WebKit Review Bot 2012-11-08 08:24:39 PST
All reviewed patches have been landed.  Closing bug.