Closed
Bug 1486377
Opened 8 years ago
Closed 8 years ago
Top sites search tiles' magnifier icon looks weird
Categories
(Core :: Graphics: WebRender, defect, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox62 | --- | disabled |
| firefox63 | --- | disabled |
| firefox64 | --- | fixed |
People
(Reporter: mak, Assigned: jrmuizel)
References
(Blocks 2 open bugs)
Details
(Keywords: regression)
Attachments
(3 files, 1 external file)
|
12.32 KB,
image/png
|
Details | |
|
1.33 KB,
text/html
|
Details | |
|
1.59 KB,
patch
|
Details | Diff | Splinter Review |
I see a line and a dot below the magnifier icon, that looks part of the icon but shifted. The screenshot is self explanatory.
I think it's some kind of rounding problem, due to the 26px height, any other value seems to work properly. I'm at 125% DPI setting on Windows 10.
Comment 1•8 years ago
|
||
We're having trouble reproducing this on Windows 10 and Mac, marco. Any more specific STRs?
Flags: needinfo?(mak77)
| Reporter | ||
Comment 2•8 years ago
|
||
I can reproduce just by setting the dpi to 125% and resizing the browser window vertically.
BUT, you made me think it could be specific to my setup, and indeed it's a webrender bug, if I disable webrender it works correctly.
Component: Activity Streams: Newtab → Graphics: WebRender
Flags: needinfo?(mak77)
Product: Firefox → Core
Comment 3•8 years ago
|
||
I also noticed this on my mac yesterday, I expect this is a dupe but I'm behind on bugmail so I'll assume this is the unique one until proven otherwise.
Blocks: stage-wr-nightly
Priority: -- → P1
| Assignee | ||
Comment 4•8 years ago
|
||
I can reproduce this on Mac. The icon in question is just a single svg icon. It's not part of a sprite sheet. This suggest that this bug is different from bug 1452337
Summary: Top search tiles' magnifier icon looks weird → Top sites search tiles' magnifier icon looks weird
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → emilio
| Assignee | ||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
mozregression --good 2018-01-15 --bad 2018-08-27 --pref gfx.webrender.all:true -a https://bug1486377.bmoattachments.org/attachment.cgi?id=9007038
> 12:39.53 INFO: Last good revision: bd889e36b9370ff2e2faafb25c5db56a8f05a6da
> 12:39.53 INFO: First bad revision: dd37857e52a137fd89bbe721fa610ec97a558a2d
> 12:39.53 INFO: Pushlog:
> https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=bd889e36b9370ff2e2faafb25c5db56a8f05a6da&tochange=dd37857e52a137fd89bbe721fa610ec97a558a2d
> dd37857e52a1 Andrew Osmond — Bug 1435291 - Part 2. Make background SVGs use WebRender instead of fallback. r=jrmuizel
Blocks: 1435291
status-firefox62:
--- → disabled
status-firefox64:
--- → affected
status-firefox-esr60:
--- → unaffected
Keywords: regression
| Assignee | ||
Comment 7•8 years ago
|
||
So it looks like this is caused by WebRender not supporting no-repeat. Here's the relevant part of the scene:
item: Image((
image_key: ((3), 62),
stretch_size: (62.400001525878906, 62.400001525878906),
tile_spacing: (0, 0),
image_rendering: Auto,
alpha_type: PremultipliedAlpha,
color: (
r: 1,
g: 1,
b: 1,
a: 1,
),
)),
Afaict we don't have anything to prevent the image from repeating other than the stretch_size.
| Assignee | ||
Comment 8•8 years ago
|
||
| Assignee | ||
Comment 9•8 years ago
|
||
The take away here is that WebRender will give no-repeat semantics if stretch_size matches the destination rect size:
i.e. if instead of:
item: Image((
image_key: ((3), 62),
stretch_size: (62.400001525878906, 62.400001525878906),
...
info: (
rect: ((38, 38), (63, 63)),
clip_rect: ((38, 38), (63, 63)),
is_backface_visible: true,
tag: None,
),
we had
item: Image((
image_key: ((3), 62),
stretch_size: (63, 63),
tile_spacing: (0, 0),
...
info: (
rect: ((38, 38), (63, 63)),
clip_rect: ((38, 38), (63, 63)),
is_backface_visible: true,
tag: None,
),
then we'd get what we want.
This doesn't seem like an entirely unreasonable thing for Gecko to provide.
Comment 10•8 years ago
|
||
I agree. So it sounds like Gecko needs to either snap both rects or none of them. I think snapping both is the less risky approach for now.
| Assignee | ||
Comment 11•8 years ago
|
||
Stealing from Emilio. I should be able to implement this today.
Assignee: emilio → jmuizelaar
| Assignee | ||
Comment 12•8 years ago
|
||
| Assignee | ||
Comment 13•8 years ago
|
||
| Assignee | ||
Comment 14•8 years ago
|
||
| Assignee | ||
Comment 15•8 years ago
|
||
My first patch was garbage. Will need to do something more nuanced.
Comment 16•8 years ago
|
||
Comment on attachment 9007268 [details]
Bug 1486377. Avoid repeat sampling when not wanted. r=mstange
Markus Stange [:mstange] has approved the revision.
Attachment #9007268 -
Flags: review+
Comment 17•8 years ago
|
||
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c1583f2f382b
Avoid repeat sampling when not wanted. r=mstange
Comment 18•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•