Bug 8467

Summary: Block with percentage background-size doesn't repaint properly when it grows
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: Layout and RenderingAssignee: Beth Dakin <bdakin>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test case
none
Image for test case
none
Patch
hyatt: review+
Test case that works in Bugzilla none

Description Dave Hyatt 2006-04-18 16:08:16 PDT
This is a bug to track the issue I mentioned on IRC where mustPaintBackgroundOrBorder in RenderObject.cpp needs to return true if you have a percentage background-size.  This will need a manual test.
Comment 1 Beth Dakin 2006-04-18 16:10:08 PDT
*** Bug 8466 has been marked as a duplicate of this bug. ***
Comment 2 Beth Dakin 2006-04-19 10:33:30 PDT
Created attachment 7837 [details]
Test case

Here is a test case I made based on a test Mitz made for a similar problem.
Comment 3 Beth Dakin 2006-04-19 10:33:58 PDT
Created attachment 7838 [details]
Image for test case
Comment 4 Beth Dakin 2006-04-19 10:39:58 PDT
Created attachment 7839 [details]
Patch

Here is a patch that fixes the problem. I can't seem to reproduce thh bug with a fixed background size, so I think I only need to check for percent.
Comment 5 Beth Dakin 2006-04-19 10:45:49 PDT
Created attachment 7840 [details]
Test case that works in Bugzilla

I just realized that the other test case won't find the background-image I specified, so here is a version of the test that links to an internet-based image so that the test works in Bugzilla. I will check in the other version, of course.
Comment 6 Dave Hyatt 2006-04-19 12:04:20 PDT
Comment on attachment 7839 [details]
Patch

r=me
Comment 7 Beth Dakin 2006-04-19 12:50:08 PDT
I committed this fix.