Bug 38523 - [Qt] QtWebKit has render bugs on Google Maps markers
Summary: [Qt] QtWebKit has render bugs on Google Maps markers
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Major
Assignee: Tor Arne Vestbø
URL:
Keywords: Qt, QtTriaged
: 34775 (view as bug list)
Depends on:
Blocks: 35784
  Show dependency treegraph
 
Reported: 2010-05-04 08:29 PDT by Jesus Sanchez-Palencia
Modified: 2010-05-18 02:03 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesus Sanchez-Palencia 2010-05-04 08:29:50 PDT
The test case is here: http://code.google.com/apis/maps/documentation/examples/marker-simple.html

Just try to move the markers around and you will notice a black rectangle on them. It seems to be something related to the shadow of the popup window.
Tested with QtLauncher (with and without -graphicsbased) on Mac OS and Linux with Qt 4.7 trunk (32ecf8e8ad326ea13ec9a430c99ce540e8b4efac) and WebKit trunk (58755).


This bug was reported on the mailing list: https://lists.webkit.org/pipermail/webkit-qt/2010-April/000442.html
Comment 1 Tor Arne Vestbø 2010-05-06 07:49:16 PDT
It's a -webkit-user-select issue. Can be reproduced by this:

data:text/html,foo<img src="http://maps.gstatic.com/intl/en_ALL/mapfiles/marker.png" style="-webkit-user-select: none">bar

Looking into it.
Comment 2 Tor Arne Vestbø 2010-05-06 08:33:19 PDT
-webkit-user-select: none is handled by calling fillRect with an invalid Color, which we then pass on to Qt as an invalid QColor. The behavior for using an invalid QColor is unspecified.

Will talk to the graphics team if it's okey for us to pass a fully transparent brush, that will be short-circuited early on in Qt, or if that will cause us to hit slow code paths due to the transparency.
Comment 3 Tor Arne Vestbø 2010-05-07 08:15:22 PDT
Fix landed in r58949
Comment 4 Simon Hausmann 2010-05-07 14:10:44 PDT
Revision r58949 cherry-picked into qtwebkit-2.0 with commit 51fb0ae5b1519f02b5982e77a3face2447c2ad14
Comment 5 Simon Hausmann 2010-05-18 02:03:57 PDT
*** Bug 34775 has been marked as a duplicate of this bug. ***