Bug 91918

Summary: SVG-as-image (constrained) intrinsic size calculation is wrong in vertical writing modes
Product: WebKit Reporter: mitz
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, dino, eric, hyatt, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case
none
Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical
mitz: review-
Another test case
none
Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical andersca: review+

mitz
Reported 2012-07-20 22:28:04 PDT
Created attachment 153647 [details] Test case See the attached test case, which is a transposed version of svg/as-image/svg-intrinsic-size-rectangular.html . The image element should end up 100px wide and 200px tall, but RenderSVGRoot::computeIntrinsicRatioInformation() returns a physical intrinsic size (and ratio) instead of a logical size, which is what the caller expects (and what raster images return, so they work as expected).
Attachments
Test case (510 bytes, text/html)
2012-07-20 22:28 PDT, mitz
no flags
Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical (4.09 KB, patch)
2012-07-21 12:33 PDT, mitz
mitz: review-
Another test case (438 bytes, text/html)
2012-07-21 13:52 PDT, mitz
no flags
Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical (5.22 KB, patch)
2012-07-21 14:45 PDT, mitz
andersca: review+
mitz
Comment 1 2012-07-20 22:28:28 PDT
mitz
Comment 2 2012-07-21 12:33:39 PDT
Created attachment 153674 [details] Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical
mitz
Comment 3 2012-07-21 13:52:30 PDT
Created attachment 153677 [details] Another test case Turns out this is not enough. The attached test case is still broken after applying attachment 153674 [details].
mitz
Comment 4 2012-07-21 14:45:32 PDT
Created attachment 153678 [details] Transpose the intrinsic size of the content renderer of a vertical replaced element to turn it from physical to logical Avoid clobbering m_intrinsicSize with a transposed value. Added a test for this, too.
mitz
Comment 5 2012-07-21 14:55:30 PDT
Fixed in r123294.
Note You need to log in before you can comment on or make changes to this bug.