Bug 38651

Summary: WebFrame::paintDocumentRectToContext paints content at the wrong location
Product: WebKit Reporter: Steve Falkenburg <sfalken>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch aroben: review+

Steve Falkenburg
Reported 2010-05-06 09:45:20 PDT
WebFrame::paintDocumentRectToContext paints content at the wrong location
Attachments
Patch (1.20 KB, patch)
2010-05-06 09:53 PDT, Steve Falkenburg
aroben: review+
Steve Falkenburg
Comment 1 2010-05-06 09:53:09 PDT
Adam Roben (:aroben)
Comment 2 2010-05-06 10:04:24 PDT
Comment on attachment 55252 [details] Patch > @@ -348,11 +348,8 @@ HRESULT STDMETHODCALLTYPE WebFrame::pain > gc.save(); > LONG width = rect.right - rect.left; > LONG height = rect.bottom - rect.top; > - FloatRect dirtyRect; > - dirtyRect.setWidth(width); > - dirtyRect.setHeight(height); > + FloatRect dirtyRect(rect.left, rect.top, width, height); You could get rid of the width and height variables by doing: FloatRect dirtyRect(IntRect(rect)); Too bad we don't have a way to test this. r=me
Steve Falkenburg
Comment 3 2010-05-06 10:39:38 PDT
Note You need to log in before you can comment on or make changes to this bug.