Bug 219202

Summary: Transient quarter display with a HiDPI /4k screen and a 200% scaling
Product: WebKit Reporter: Frédéric Parrenin <frederic.parrenin>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alicem, aperez, berto, bugs-noreply, cgarcia, cmarcelo, ews-watchlist, gustavo, gyuyoung.kim, jan.brummer, luiz, magomez, mcatanzaro, ryuan.choi, sergio, webkit-bug-importer, zeno
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 226320    
Attachments:
Description Flags
Patch
none
Patch none

Description Frédéric Parrenin 2020-11-20 06:20:30 PST
I use epiphany on debian/bullseye XPS13 laptop with a 4k screen.
In gnome, I set the scaling to 200% so that everything does not appear too small.
In epiphany, I sometimes get a transient display where the webpage is displayed on the top-left quarter of the window.
Then, after a fraction of a second, the webpage is scaled to the entire window.
So, I was wondering if this is due to the scaling and if it would possible to scale the display earlier in the process.
Comment 1 Alice Mikhaylenko 2021-05-26 09:34:25 PDT
Created attachment 429764 [details]
Patch

No idea if this is correct, but it works.
Comment 2 EWS Watchlist 2021-05-26 09:35:39 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Alice Mikhaylenko 2021-05-26 09:36:40 PDT
Created attachment 429766 [details]
Patch

Erm, looks like I've attached a patch for a different bug somehow.
Comment 4 Adrian Perez 2021-05-27 01:11:15 PDT
Patch LGTM, but I am going to try and get someone more knowledgeable
with graphics to take a quick look :)
Comment 5 Miguel Gomez 2021-05-27 01:25:24 PDT
LGTM
Comment 6 Adrian Perez 2021-05-27 02:33:48 PDT
(In reply to Miguel Gomez from comment #5)
> LGTM

Thanks for confirming, let's land it \o/
Comment 7 EWS 2021-05-27 02:36:35 PDT
Committed r278156 (238200@main): <https://commits.webkit.org/238200@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 429766 [details].