RESOLVED FIXED 34703
All SVG *-expected.txt files contain wrong results
https://bugs.webkit.org/show_bug.cgi?id=34703
Summary All SVG *-expected.txt files contain wrong results
Nikolas Zimmermann
Reported 2010-02-08 04:57:01 PST
Most DRT results for SVG are wrong and not reliable. This is because we're not dumping meaningful information like absoluteClippedOverflowRect(), but instead use the absoluteTransform() legacy code, to map the repaintRectInLocalCoordinates() through that wrong and not CSS-aware rectangle. absoluteTransform() needs to die, and it's only used by DRT & SVGPaintServerGradient (for Cg gradient-on-text support). It turns out to be easy fixable, all we need is proper overflow clipping for RenderSVGRoot -> SVG has _special_ rules on initial clipping paths that _differ_ from CSS overflow handling rules. If we respect them properly, and do the right transformations between SVG-world (RenderSVGRoot children) and CSS Box-world (RenderSVGRoot parent objects, if any in a non-standalone SVG document) the absoluteClippedOverflowRect() for all objects is magically right, and finally repaint rects seem fixed across all boundaries. Thanks to Erics early ground-breaking integration work :-) As side effect, it's a matter of 2 LOC to fix the looong standing: SVG does not display scrollbars problem, which will be done in a follow-up patch.
Attachments
Initial patch (71.55 KB, patch)
2010-02-08 05:45 PST, Nikolas Zimmermann
krit: review+
LayoutTests: expected.txt changes (compressed) (645.55 KB, application/x-gzip)
2010-02-08 05:50 PST, Nikolas Zimmermann
krit: review+
LayoutTests: expected.png changes (1.37 MB, patch)
2010-02-08 05:52 PST, Nikolas Zimmermann
krit: review+
Nikolas Zimmermann
Comment 1 2010-02-08 05:45:03 PST
Created attachment 48329 [details] Initial patch Not including LayoutTests changes, will upload them compressed, as it's over 5mb.
Nikolas Zimmermann
Comment 2 2010-02-08 05:50:15 PST
Created attachment 48330 [details] LayoutTests: expected.txt changes (compressed)
Nikolas Zimmermann
Comment 3 2010-02-08 05:52:32 PST
Created attachment 48331 [details] LayoutTests: expected.png changes
Dirk Schulze
Comment 4 2010-02-08 05:53:36 PST
Comment on attachment 48329 [details] Initial patch Greak work Niko. I hope you checked every single test ;-)
Dirk Schulze
Comment 5 2010-02-08 06:09:43 PST
Comment on attachment 48330 [details] LayoutTests: expected.txt changes (compressed) lgtm
Dirk Schulze
Comment 6 2010-02-08 06:10:34 PST
Comment on attachment 48331 [details] LayoutTests: expected.png changes lgtm
Nikolas Zimmermann
Comment 7 2010-02-08 06:34:40 PST
Landed in r54483. Waiting for bot results...
Nikolas Zimmermann
Comment 8 2010-02-08 09:34:10 PST
Landed the last fix in r54492 - baselines are properly updated for all platforms.
Note You need to log in before you can comment on or make changes to this bug.