Bug 41968 - RenderSVGRoot::nodeAtPoint truncates translated mouse coordinates
Summary: RenderSVGRoot::nodeAtPoint truncates translated mouse coordinates
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Fady Samuel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 11:09 PDT by Fady Samuel
Modified: 2010-12-20 22:40 PST (History)
5 users (show)

See Also:


Attachments
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint. (1.22 KB, patch)
2010-07-09 11:20 PDT, Fady Samuel
darin: review-
darin: commit-queue-
Details | Formatted Diff | Diff
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint. (4.54 KB, patch)
2010-08-04 17:39 PDT, Fady Samuel
no flags Details | Formatted Diff | Diff
One line fix: localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint. (4.57 KB, patch)
2010-08-05 07:15 PDT, Fady Samuel
no flags Details | Formatted Diff | Diff
Patch for landing (1.91 KB, patch)
2010-08-10 23:07 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch - Adds missing files (4.29 KB, patch)
2010-08-12 15:44 PDT, Fady Samuel
abarth: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fady Samuel 2010-07-09 11:09:38 PDT
Simple one line fix to webkit that's blocking another (chromium) bug I'm working on. localPoint is being stored in an IntPoint instead of a FloatPoint, which means we lose (a lot of) precision if the transform scales down the coordinates.
Comment 1 Fady Samuel 2010-07-09 11:20:31 PDT
Created attachment 61065 [details]
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.
Comment 2 Darin Adler 2010-07-09 11:35:55 PDT
Comment on attachment 61065 [details]
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

Bug fixes need to include regression tests. Can you make and include a test for what this fixes?
Comment 3 Fady Samuel 2010-08-04 17:39:08 PDT
Created attachment 63520 [details]
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

Added a layout test.
Comment 4 Fady Samuel 2010-08-05 07:15:38 PDT
Created attachment 63586 [details]
One line fix: localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

Fixed conflicting test_expectations file.
Comment 5 Nikolas Zimmermann 2010-08-05 07:50:17 PDT
Comment on attachment 63586 [details]
One line fix: localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

r=me.
Comment 6 Eric Seidel (no email) 2010-08-05 08:53:33 PDT
Comment on attachment 63520 [details]
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

Cleared Darin Adler's review+ from obsolete attachment 63520 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 7 WebKit Commit Bot 2010-08-05 21:31:29 PDT
Comment on attachment 63586 [details]
One line fix: localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.

Rejecting patch 63586 from commit-queue.

Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'Nikolas Zimmermann', u'--force']" exit_code: 1
Last 500 characters of output:
hangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file LayoutTests/platform/chromium-mac/svg/hittest/svg-rect-hit-expected.txt
patching file LayoutTests/platform/chromium/test_expectations.txt
Hunk #1 FAILED at 3181.
1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/chromium/test_expectations.txt.rej
patching file LayoutTests/svg/hittest/svg-rect-hit.html
patching file WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file WebCore/rendering/RenderSVGRoot.cpp

Full output: http://queues.webkit.org/results/3635418
Comment 8 Adam Barth 2010-08-10 23:07:27 PDT
Created attachment 64077 [details]
Patch for landing
Comment 9 WebKit Commit Bot 2010-08-11 12:34:17 PDT
Comment on attachment 64077 [details]
Patch for landing

Clearing flags on attachment: 64077

Committed r65172: <http://trac.webkit.org/changeset/65172>
Comment 10 WebKit Commit Bot 2010-08-11 12:34:22 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Fady Samuel 2010-08-12 15:44:25 PDT
Created attachment 64275 [details]
Patch - Adds missing files
Comment 12 Fady Samuel 2010-08-12 15:45:02 PDT
Bug was prematurely closed.
Comment 13 Adam Barth 2010-08-12 15:49:27 PDT
Comment on attachment 64275 [details]
Patch - Adds missing files

Thanks.  Sorry for screwing up your patch earlier.  :-/
Comment 14 WebKit Commit Bot 2010-08-12 17:39:30 PDT
Comment on attachment 64275 [details]
Patch - Adds missing files

Rejecting patch 64275 from commit-queue.

Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--wait-for-httpd', '--ignore-tests', 'compositing', '--quiet']" exit_code: 1
Running build-dumprendertree
Compiling Java tests
make: Nothing to be done for `default'.
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 20833 test cases.
svg/text/select-textLength-spacing-squeeze-3.svg -> failed

Exiting early after 1 failures. 18680 tests run.
402.01s total testing time

18679 test cases (99%) succeeded
1 test case (<1%) had incorrect layout
261 test cases (1%) had stderr output

Full output: http://queues.webkit.org/results/3721096
Comment 15 Eric Seidel (no email) 2010-10-13 12:25:20 PDT
Attachment 64275 [details] was posted by a committer and has review+, assigning to Fady Samuel for commit.
Comment 16 Eric Seidel (no email) 2010-12-20 22:40:17 PST
r65172.  Please use webkit-patch land so that bugs get closed when you land changes.