Bug 61003 - Change RenderTextControl::hitInnerTextElement to use IntPoint
Summary: Change RenderTextControl::hitInnerTextElement to use IntPoint
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Emil A Eklund
URL:
Keywords:
Depends on:
Blocks: 60318
  Show dependency treegraph
 
Reported: 2011-05-17 16:25 PDT by Emil A Eklund
Modified: 2011-05-19 10:01 PDT (History)
4 users (show)

See Also:


Attachments
Patch (4.10 KB, patch)
2011-05-17 16:27 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff
Patch for landing (4.05 KB, patch)
2011-05-18 14:51 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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