The same bug as stated by report https://bugs.webkit.org/show_bug.cgi?id=25738 is present within the Qt binding of WebKit.
Created attachment 61343 [details] Proposed patch.
Comment on attachment 61343 [details] Proposed patch. While the change looks fairly reasonable, I cannot actually reproduce the problem with QtWebKit trunk. What versions of Qt and QtWebKit are you using?
Wrong coding style, though. Should not use braces.
Comment on attachment 61343 [details] Proposed patch. Yeah, patch looks good to me. It's a safe thing to do, and the original patch for Skia is doing the same. Would be nice to join the layout test coverage for this. I'm going to say r+ but cq- because it needs the coding style fix before landing. So if someone wants to land it, go ahead :). Otherwise Mirko just attach a new patch and we'll run it through the commit queue.
Committed r63394: <http://trac.webkit.org/changeset/63394>