[Webkit-unassigned] [Bug 23728] New: [QT] clearRect fill's a given rect with white

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 4 04:38:19 PST 2009


           Summary: [QT] clearRect fill's a given rect with white
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: krit at webkit.org

clearRect doesn't erase a given rect, it just fills it with white. 
clearRect uses p->eraseRect to clear a given rect. eraseRect is the same as
p->fillRect(rect, p->background()). We never set the background, because we're
using transparent background mode, the default. And the documentation saith
that setBackground() has no effect in transparent background mode.

But adding:
    ImageBuffer::ImageBuffer(const IntSize& size, bool grayScale, bool&
solves the problem.

(I would add set the background somewhere in the ImageBuffer. We may need to
erase the context somewehere else than in context->clearRect().)

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list