WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 113269
[BlackBerry] Scrolling up and down can cause the screen to flash black
https://bugs.webkit.org/show_bug.cgi?id=113269
Summary
[BlackBerry] Scrolling up and down can cause the screen to flash black
Arvid Nilsson
Reported
2013-03-25 20:17:29 PDT
Various flaws in the code can conspire to make the screen cleared to black before rendering the web page. This only happens when the BackingStore is inactive, and the LayerTiler takes on the job of drawing the root layer. When tiles are missing, this makes the "checkerboard" effect especially noticeable since you see a black color where the tile should have been. It would be better to clear to the web page background color. PR 296106
Attachments
Patch
(10.14 KB, patch)
2013-03-25 20:40 PDT
,
Arvid Nilsson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Arvid Nilsson
Comment 1
2013-03-25 20:40:27 PDT
Created
attachment 194991
[details]
Patch
Jakob Petsovits
Comment 2
2013-03-26 09:13:03 PDT
Comment on
attachment 194991
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=194991&action=review
Looks good to me, worthwhile improvements.
> Source/WebKit/blackberry/Api/WebPage.cpp:6316 > + if (!m_mainFrame || !m_mainFrame->view()) > + return;
With this early return, the BackingStore won't get color updates from WebSettings until a page is loaded. I don't think this makes a difference in practice as we wouldn't draw contents in that case anyways, but I thought I'd mention it since it's a change in program logic. (Just in case you have further thoughts on it.)
Jakob Petsovits
Comment 3
2013-03-26 09:14:03 PDT
(In reply to
comment #2
)
> (From update of
attachment 194991
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=194991&action=review
> > Looks good to me, worthwhile improvements. > > > Source/WebKit/blackberry/Api/WebPage.cpp:6316 > > + if (!m_mainFrame || !m_mainFrame->view()) > > + return; > > With this early return, the BackingStore won't get color updates from WebSettings until a page is loaded.
Correction; "until the main frame is created". Please excuse the inaccuracy.
Rob Buis
Comment 4
2013-03-26 10:58:47 PDT
Comment on
attachment 194991
[details]
Patch LGTM.
Arvid Nilsson
Comment 5
2013-03-26 11:02:19 PDT
Comment on
attachment 194991
[details]
Patch Thanks Jakob and Rob!
WebKit Review Bot
Comment 6
2013-03-26 11:23:45 PDT
Comment on
attachment 194991
[details]
Patch Clearing flags on attachment: 194991 Committed
r146911
: <
http://trac.webkit.org/changeset/146911
>
WebKit Review Bot
Comment 7
2013-03-26 11:23:49 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug