Bug 41968

Summary: RenderSVGRoot::nodeAtPoint truncates translated mouse coordinates
Product: WebKit Reporter: Fady Samuel <fsamuel>
Component: SVGAssignee: Fady Samuel <fsamuel>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric, fsamuel, rjkroege, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.
darin: review-, darin: commit-queue-
One line fix localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.
none
One line fix: localPoint in RenderSVGRoot::nodeAtPoint is now a FloatPoint instead of an IntPoint.
none
Patch for landing
none
Patch - Adds missing files abarth: review+, commit-queue: commit-queue-

Fady Samuel
Reported 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.
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-
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
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
Patch for landing (1.91 KB, patch)
2010-08-10 23:07 PDT, Adam Barth
no flags
Patch - Adds missing files (4.29 KB, patch)
2010-08-12 15:44 PDT, Fady Samuel
abarth: review+
commit-queue: commit-queue-
Fady Samuel
Comment 1 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.
Darin Adler
Comment 2 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?
Fady Samuel
Comment 3 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.
Fady Samuel
Comment 4 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.
Nikolas Zimmermann
Comment 5 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.
Eric Seidel (no email)
Comment 6 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.
WebKit Commit Bot
Comment 7 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
Adam Barth
Comment 8 2010-08-10 23:07:27 PDT
Created attachment 64077 [details] Patch for landing
WebKit Commit Bot
Comment 9 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>
WebKit Commit Bot
Comment 10 2010-08-11 12:34:22 PDT
All reviewed patches have been landed. Closing bug.
Fady Samuel
Comment 11 2010-08-12 15:44:25 PDT
Created attachment 64275 [details] Patch - Adds missing files
Fady Samuel
Comment 12 2010-08-12 15:45:02 PDT
Bug was prematurely closed.
Adam Barth
Comment 13 2010-08-12 15:49:27 PDT
Comment on attachment 64275 [details] Patch - Adds missing files Thanks. Sorry for screwing up your patch earlier. :-/
WebKit Commit Bot
Comment 14 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
Eric Seidel (no email)
Comment 15 2010-10-13 12:25:20 PDT
Attachment 64275 [details] was posted by a committer and has review+, assigning to Fady Samuel for commit.
Eric Seidel (no email)
Comment 16 2010-12-20 22:40:17 PST
r65172. Please use webkit-patch land so that bugs get closed when you land changes.
Note You need to log in before you can comment on or make changes to this bug.