WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
5326
Scaling problems with viewBox attributes
https://bugs.webkit.org/show_bug.cgi?id=5326
Summary
Scaling problems with viewBox attributes
Julien Palmas
Reported
2005-10-10 13:14:52 PDT
An element with a viewBox attribute is not scaled correctly. The problem is not present in KDE SVN.
Attachments
Reduced test case
(368 bytes, image/svg+xml)
2005-10-10 13:17 PDT
,
Julien Palmas
no flags
Details
Expected result
(13.64 KB, image/png)
2005-10-10 13:18 PDT
,
Julien Palmas
no flags
Details
Set correct default value for align
(746 bytes, patch)
2005-10-12 13:46 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Another attempt at fixing this svg
(2.01 KB, patch)
2005-10-12 14:14 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Expected result
(39.86 KB, image/png)
2005-10-12 14:40 PDT
,
Julien Palmas
no flags
Details
fixes the bug
(2.92 KB, patch)
2005-10-12 16:39 PDT
,
Julien Palmas
eric
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Julien Palmas
Comment 1
2005-10-10 13:17:33 PDT
Created
attachment 4296
[details]
Reduced test case The grey rectangle should be scaled inside the black one, but no scaling is done
Julien Palmas
Comment 2
2005-10-10 13:18:37 PDT
Created
attachment 4297
[details]
Expected result Result obtained with KDE
Eric Seidel (no email)
Comment 3
2005-10-11 03:52:01 PDT
Both FireFox and Opera render this svg just liek we do... I'm not sure what's "expected"
Rob Buis
Comment 4
2005-10-12 13:46:18 PDT
Created
attachment 4326
[details]
Set correct default value for align This may possible help with this bug...
Rob Buis
Comment 5
2005-10-12 14:14:02 PDT
Created
attachment 4327
[details]
Another attempt at fixing this svg Note: this patch is not ready for review! It is a quick and dirty test to see if it fixes the .svg. A cleaner way should be found, maybe changing SVGLengthImpl etc.
Julien Palmas
Comment 6
2005-10-12 14:40:02 PDT
Created
attachment 4328
[details]
Expected result
Julien Palmas
Comment 7
2005-10-12 16:39:43 PDT
Created
attachment 4332
[details]
fixes the bug This patch is actually joining the 2 patches previously posted by rwlbuis. The format is now correct.
Eric Seidel (no email)
Comment 8
2005-10-12 17:01:58 PDT
***
Bug 5343
has been marked as a duplicate of this bug. ***
Eric Seidel (no email)
Comment 9
2005-10-13 00:03:28 PDT
Comment on
attachment 4332
[details]
fixes the bug Looks good. rwlbuis explained this all to me on IRC. Basically instead of passing itself as a reference (off of which to base % calculations), SVGSVGElement is passing the nearest viewport.
Eric Seidel (no email)
Comment 10
2005-10-13 01:25:55 PDT
Landed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug