Bug 56822

Summary: [Qt][Symbian] Part of the border of icon-box/image gets cut-off for a while
Product: WebKit Reporter: vijaysharma <murlivala>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Severity: Major CC: joel.parks, johannes.oikarinen, joseph.wild, koshuin, laszlo.gombos, sandhya.a
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: S60 Hardware   
OS: Other   
Bug Depends on:    
Bug Blocks: 55056    
Description Flags
Sample code and gif to demonstrate the issue
Patch proposal none

Description vijaysharma 2011-03-22 03:30:22 PDT
Created attachment 86452 [details]
Sample code and gif to demonstrate the issue

Steps to reproduce this issue with attached code.
1. Open the attached index.html
3. Tap smiley box to focus that element
4. Tap "Press me" box

Observed behavior:
A part of the border of icon box gets cut-off for a while.

Expected behavior:
Border should be solid as long it is visible.

Please have a look at attached gif for better understanding of the issue.

Note: Make sure that you really tap the "Press me" box. Otherwise this issue
cannot be reproduce.
Comment 1 Joel Parks 2011-03-22 16:03:23 PDT
adding InTSW keyword for tracking by QtWebKit EM
blocks 55056 = targeting QtWebKit 2.2
Comment 2 Joel Parks 2011-03-22 16:06:44 PDT
refer to http://bugs.nokia-boston.com/bugzilla/show_bug.cgi?id=7451 for customer details
Comment 3 sandhya.a 2011-03-28 22:28:46 PDT
Hi Joel,
This MUST be fixed for 1.3 Vasco PS2.
Usecase : Check box comes in Sign-up & Sign-in pages.
Comment 4 Johannes Oikarinen 2011-04-20 07:42:38 PDT
RenderBox::repaintLayerRectsForImage might be the cause of the problem. This function is called in cases where the borders are defined and the borders are larger than the background image. The problem is that the function calculates the update area to be only the size of the background image, but doesn't include the borders. This causes the cut-off of the border image. Instead, giving the border rectangle as update area won't cause the cut-off.
Comment 5 Joe Wild 2011-04-26 14:11:01 PDT
This sample code test case works fine for my on Symbian 15.05 (w15) Vasco.

So it looks like I have to continue to investigate on PS2.
Comment 6 Janne Koskinen 2011-04-27 02:17:05 PDT
(In reply to comment #5)
> This sample code test case works fine for my on Symbian 15.05 (w15) Vasco.
> So it looks like I have to continue to investigate on PS2.

Johannes is on vacation, but he showed me what the issue is and yes the image was eventually drawn correctly in week 13 image where he tested. What you can see is that it is drawn twice if clicked on the "press me" - button. First draw happens on focus loss and second draw on button down state of "press me".
And in the first draw the borders are corrupted. Also the fix suggestion is correct, draw invalidate rectangle should not be calculated from the border image as it is not in correct scale.
Comment 7 Johannes Oikarinen 2011-05-02 01:27:20 PDT
Created attachment 91897 [details]
Patch proposal
Comment 8 Laszlo Gombos 2011-06-06 07:52:28 PDT
Is this issue really specific to Symbian or QtWebKit ?
Comment 9 sandhya.a 2011-06-06 21:56:13 PDT
This issue is related to QtWebKit
Comment 10 Jocelyn Turcotte 2014-02-03 03:17:25 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.