Bug 29422 - [Qt] Webkit: Canvas clearRect should use transparent black color not opaque white
Summary: [Qt] Webkit: Canvas clearRect should use transparent black color not opaque w...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-18 07:41 PDT by Tor Arne Vestbø
Modified: 2009-09-30 02:53 PDT (History)
1 user (show)

See Also:


Attachments
clearRect (376 bytes, text/html)
2009-09-30 02:52 PDT, Dirk Schulze
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Arne Vestbø 2009-09-18 07:41:51 PDT
This bug report originated from issue QTBUG-3949
<http://bugreports.qt.nokia.com/browse/QTBUG-3949>

--- Description ---

<canvas> clearRect does not use transparent black color instead it uses white color. 
This is different from other webkit based browsers thet currently clear with transparent black color.
Comment 1 Dirk Schulze 2009-09-30 01:50:32 PDT
I can't open the original bug at nokia but it doesn't seem valid. A given rect is "filled" or  better reseted to transparent black by:

p->fillRect(rect, Qt::transparent);

Qt::transparent is transparent black (http://doc.trolltech.com/4.4/qt.html#GlobalColor-enum). Can we close this bug?
Comment 2 Dirk Schulze 2009-09-30 02:52:26 PDT
Created attachment 40354 [details]
clearRect

This example shows the use of clearRect. If clearRect works like expacted, you should see a green page and a black border at the top left. This rect schould be filled with green (transparent black of the clearRect).

This example works for me on QtLauncher. I close this bug for now. Please reopen the bug if you have another example, that doesn't work.