Bug 61003

Summary: Change RenderTextControl::hitInnerTextElement to use IntPoint
Product: WebKit Reporter: Emil A Eklund <eae>
Component: New BugsAssignee: Emil A Eklund <eae>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric, leviw, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 60318    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Emil A Eklund 2011-05-17 16:25:06 PDT
Change RenderTextControl::hitInnerTextElement to use IntPoint
Comment 1 Emil A Eklund 2011-05-17 16:27:25 PDT
Created attachment 93843 [details]
Patch
Comment 2 Darin Adler 2011-05-17 18:18:34 PDT
Comment on attachment 93843 [details]
Patch

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

> Source/WebCore/rendering/RenderTextControl.cpp:473
> +    result.setLocalPoint(pointInContainer - IntSize(tx + x() + m_innerText->renderBox()->x(),
> +                                                    ty + y() + m_innerText->renderBox()->y()));

We shouldn’t line up like this. The style guide specifically says not to.
Comment 3 Emil A Eklund 2011-05-17 18:28:18 PDT
> We shouldn’t line up like this. The style guide specifically says not to.

Will fix before I commit, thanks for pointing it out!
Comment 4 Emil A Eklund 2011-05-18 14:51:46 PDT
Created attachment 93987 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2011-05-18 17:14:29 PDT
The commit-queue encountered the following flaky tests while processing attachment 93987 [details]:

http/tests/misc/favicon-loads-with-icon-loading-override.html bug 58412 (author: alice.liu@apple.com)
http/tests/websocket/tests/multiple-connections.html bug 53825 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2011-05-18 17:16:55 PDT
Comment on attachment 93987 [details]
Patch for landing

Clearing flags on attachment: 93987

Committed r86807: <http://trac.webkit.org/changeset/86807>
Comment 7 WebKit Commit Bot 2011-05-18 17:16:59 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Emil A Eklund 2011-05-19 10:01:20 PDT
Those two tests appears to be flakey, they passed in the most recent build but failed the one before:
http://build.webkit.org/builders/Leopard%20Intel%20Debug%20%28Tests%29/builds/30442/steps/layout-test/logs/stdio