[Webkit-unassigned] [Bug 68090] SVG as image uses very tiny default font-size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 14 14:13:16 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=68090





--- Comment #2 from Florin Malita <fmalita at google.com>  2011-12-14 14:13:16 PST ---
The problem is that SVGImage creates an embedded Page and indirectly a fresh/default-initialized Settings object. Hence, defaultFontSize is 0 for embedded text elements.

The patch above is a fist attempt at addressing the issue by inheriting relevant values from the current settings. There're a couple of things I'm unsure about though:

1) The plumbing for making the current Settings reference available in SVGImage::dataChanged() seems awkward, if even safe. Is there a better way to gain access to the current settings in that method?

2) I couldn't find a way to implement the test programmatically and ended up with a text pixel test - which I presume will have some variance across platforms. Is this avoidable?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list