Closed
Bug 1165513
Opened 9 years ago
Closed 9 years ago
gtk3 build form controls move around
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: kbrosnan, Assigned: lsalzman)
References
Details
Attachments
(2 files)
441.83 KB,
image/png
|
Details | |
1.15 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
Form controls are floating around in the wrong position and drawing improperly.
This is a personal build off of
changeset: 244029:1a8343f8ed83
tag: tip
parent: 243992:c0e709a5baca
parent: 244028:17042d4111bb
user: Carsten "Tomcat" Book <cbook@mozilla.com>
date: Fri May 15 17:39:23 2015 +0200
summary: merge mozilla-inbound to mozilla-central on a CLOSED TREE a=merge
.mozconfig
ac_add_options --enable-default-toolkit=cairo-gtk3
ac_add_options --enable-gstreamer=1.0
mk_add_options AUTOCLOBBER=1
export MOZILLA_OFFICIAL=1
I have layout.css.devPixelsPerPx set to 1.4 which may be relevant. It seems somewhat intermittent. E10S is turned off.
Comment 1•9 years ago
|
||
It's HiDPI display, right? Something like https://bugzilla.redhat.com/show_bug.cgi?id=1215459#c8 ?
Flags: needinfo?(kbrosnan)
Updated•9 years ago
|
OS: Unspecified → Linux
Assignee | ||
Comment 3•9 years ago
|
||
When GTK3 widgets used snapped pixel coordinates, their coordinates are also relative to the origin, because they already went through the draw target's transform. However, the draw target matrix is not reset to identity to avoid messing with its state. To compensate, just translate the coordinates to invert the transform - legal since coordinates are only snapped if there is no scale and the transform is axis-aligned.
Attachment #8607755 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Kevin Brosnan [:kbrosnan] from comment #0)
> Created attachment 8606557 [details]
> Screenshot from 2015-05-15 15-51-11.png
>
> Form controls are floating around in the wrong position and drawing
> improperly.
>
> This is a personal build off of
> changeset: 244029:1a8343f8ed83
> tag: tip
> parent: 243992:c0e709a5baca
> parent: 244028:17042d4111bb
> user: Carsten "Tomcat" Book <cbook@mozilla.com>
> date: Fri May 15 17:39:23 2015 +0200
> summary: merge mozilla-inbound to mozilla-central on a CLOSED TREE
> a=merge
>
> .mozconfig
> ac_add_options --enable-default-toolkit=cairo-gtk3
> ac_add_options --enable-gstreamer=1.0
> mk_add_options AUTOCLOBBER=1
> export MOZILLA_OFFICIAL=1
>
> I have layout.css.devPixelsPerPx set to 1.4 which may be relevant. It seems
> somewhat intermittent. E10S is turned off.
Can you check if my patch fixes the issue for you? It seems to fix the issue for me. I was able to reproduce the problem by narrowing it down to one particular branch where transforms weren't respected.
Flags: needinfo?(kbrosnan)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → lsalzman
Reporter | ||
Comment 5•9 years ago
|
||
Doing a build on the tip of m-c now. Will report back.
Updated•9 years ago
|
Attachment #8607755 -
Flags: review?(jmuizelaar) → review+
Reporter | ||
Comment 6•9 years ago
|
||
This looks good after several hours of usage.
Flags: needinfo?(kbrosnan)
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•