Bug 82922

Summary: border-image with image-set does not render correctly when viewed at 2x
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Layout and RenderingAssignee: Beth Dakin <bdakin>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, japhet, mitz, webkit-bug-importer, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test Case
none
Image 1x
none
Image 2x
none
Patch mitz: review+

Timothy Hatcher
Reported 2012-04-02 11:56:58 PDT
Created attachment 135145 [details] Test Case A -webkit-image-set() in a border-image does not render correctly when viewed at 2x. You need to use a media query to make border-image work still. See attached test case with images.
Attachments
Test Case (885 bytes, text/html)
2012-04-02 11:56 PDT, Timothy Hatcher
no flags
Image 1x (385 bytes, image/png)
2012-04-02 11:57 PDT, Timothy Hatcher
no flags
Image 2x (800 bytes, image/png)
2012-04-02 11:57 PDT, Timothy Hatcher
no flags
Patch (87.14 KB, patch)
2012-04-27 17:25 PDT, Beth Dakin
mitz: review+
Radar WebKit Bug Importer
Comment 1 2012-04-02 11:57:29 PDT
Timothy Hatcher
Comment 2 2012-04-02 11:57:30 PDT
Created attachment 135146 [details] Image 1x
Timothy Hatcher
Comment 3 2012-04-02 11:57:46 PDT
Created attachment 135147 [details] Image 2x
Beth Dakin
Comment 4 2012-04-27 17:25:09 PDT
mitz
Comment 5 2012-04-27 18:01:22 PDT
Comment on attachment 139310 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=139310&action=review > Source/WebCore/rendering/RenderBoxModelObject.cpp:1084 > + float imageScaleFactorAdjustRatio = 1 / image->imageScaleFactor(); Not sure this variable is needed. The word “ratio” doesn’t mean “reciprocal”, so this name is rather meaningless.
Beth Dakin
Comment 6 2012-04-30 08:42:47 PDT
Thanks Dan! I got rid of that variable you didn't like: http://trac.webkit.org/changeset/115641
Note You need to log in before you can comment on or make changes to this bug.