Closed
Bug 966996
Opened 11 years ago
Closed 11 years ago
Repeating linear gradients applied to giant boxes render slowly and incorrectly on Mac
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(3 files)
479 bytes,
text/html
|
Details | |
1.42 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
2.58 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
The testcase has a scrollable area that contains a 600px * 80000px box that has a repeating linear gradient as its background. Scrolling the box is very slow and the gradient stops are in the wrong locations.
Assignee | ||
Comment 1•11 years ago
|
||
This fixes the performance when we're not scrolled down much.
Attachment #8369429 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 2•11 years ago
|
||
We calculate t_min and t_max in such a way that they always include zero. That's unnecessary because our displayed part of the gradient may be far away from zero, so initialize t_min and t_max to +- Infinity so that they always get replaced by the UpdateLinearParametersToIncludePoint call for the extent rect's top left corner.
This fixes the case when the testcase is scrolled down a lot.
Attachment #8369438 -
Flags: review?(jmuizelaar)
Updated•11 years ago
|
Attachment #8369429 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8369438 [details] [diff] [review]
part 2: Don't include t=0 when not necessary
>+ MOZ_ASSERT(!isinf(t_min) && !isinf(t_max),
>+ "The first call to UpdateLinearParametersToIncludePoint should have made t_min and t_max non-infinite.");
I realize now that "finite" is the short way of saying "non-infinite". Will fix before checkin.
Updated•11 years ago
|
Attachment #8369438 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/28b77fb96e62
https://hg.mozilla.org/integration/mozilla-inbound/rev/7d6e5cd7fe20
Oops, I forgot to address comment 3. Oh well.
https://hg.mozilla.org/mozilla-central/rev/28b77fb96e62
https://hg.mozilla.org/mozilla-central/rev/7d6e5cd7fe20
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•