Bug 20557

Summary: getScreenCTM() returns wrong values
Product: WebKit Reporter: Tuom Larsen <tuom.larsen>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Attachment
none
First attempt darin: review+

Description Tuom Larsen 2008-08-28 02:12:59 PDT
For nested SVG, getScreenCTM() returns wrong position values (.e, .f).
Please, see the attachment.
Comment 1 Tuom Larsen 2008-08-28 02:13:31 PDT
Created attachment 23050 [details]
Attachment
Comment 2 Tuom Larsen 2008-09-09 11:10:54 PDT
I should have been a bit more specific, sorry:
The two alerted values should be top and left coordinates of that squate, relative to the browser window.
Comment 3 Rob Buis 2008-09-21 07:53:31 PDT
Created attachment 23626 [details]
First attempt

The patch fixes the testcase. I hope there are no drawback to using the renderer abs pos and not the parents, I cant see any.
Cheers,

Rob.
Comment 4 Darin Adler 2008-09-21 13:53:07 PDT
Comment on attachment 23626 [details]
First attempt

Looks fine. r=me

It'd be a lot better if the test case was a text-only test so it could be used cross platform. You should strive to make new tests text-only whenever possible.
Comment 5 Tuom Larsen 2008-09-23 17:58:02 PDT
(In reply to comment #4)
> 
> It'd be a lot better if the test case was a text-only test so it could be used
> cross platform. You should strive to make new tests text-only whenever
> possible.

I'm sorry, I don't quite understand what do you mean by text only? It is just a text..
Comment 6 Nikolas Zimmermann 2008-09-24 12:53:45 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > 
> > It'd be a lot better if the test case was a text-only test so it could be used
> > cross platform. You should strive to make new tests text-only whenever
> > possible.
> 
> I'm sorry, I don't quite understand what do you mean by text only? It is just a
> text..
Darin, meant a WebKit specific LayoutTest feature "layoutTestController.dumpAsText()". This way the test just logs the actual text output in the test-expected.txt file, instead of the coordinates of the RenderObjects' in the render tree.

Greetings,
Niko
> 
Comment 7 Rob Buis 2008-09-25 04:06:59 PDT
Fixed by r36856.