Closed
Bug 625974
Opened 14 years ago
Closed 14 years ago
Gradients in the address bar should be changed to borders on Mac for speed
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 4.0b10
People
(Reporter: pcwalton, Assigned: pcwalton)
Details
(Keywords: perf, Whiteboard: [frame-rate-monitor])
Attachments
(1 file, 1 obsolete file)
1.94 KB,
patch
|
Dolske
:
approval2.0+
|
Details | Diff | Splinter Review |
When resizing the window, I see a lot of time spent drawing the gradients in the UI bar. These gradients can be borders instead, which render a lot quicker.
With this patch and the Mac events patch in bug 625454, resizing about:blank is noticeably faster in Firefox than in Chrome for me.
Comment 1•14 years ago
|
||
Are these so small the gradient isn't visible?
/be
Assignee | ||
Comment 2•14 years ago
|
||
Proposed patch attached.
Attachment #505216 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #1)
> Are these so small the gradient isn't visible?
>
> /be
They're one pixel wide and ~20 pixels tall. I can't tell the difference.
Assignee | ||
Updated•14 years ago
|
Whiteboard: [frame-rate-monitor]
Updated•14 years ago
|
Attachment #505216 -
Flags: ui-review?(shorlander)
Attachment #505216 -
Flags: review?(gavin.sharp)
Attachment #505216 -
Flags: review?(dao)
Comment 4•14 years ago
|
||
+ border-top: 1px solid rgba(98, 98, 98, 1.0);
+ border-right: 1px solid rgba(120, 120, 120, 1.0);
+ border-left: 1px solid rgba(120, 120, 120, 1.0);
+ border-bottom: 1px solid rgba(140, 140, 140, 1.0);
+ -moz-border-left-colors: none;
+ -moz-border-right-colors: none;
+ -moz-border-top-colors: none;
+ -moz-border-bottom-colors: none;
I think the border shorthand resets -moz-border-*-colors now, so this could be:
border: 1px solid;
border-top-color: rgb(98, 98, 98);
border-right-color: rgb(120, 120, 120);
border-left-color: rgb(120, 120, 120);
border-bottom-color: rgb(140, 140, 140);
For opaque colors the #RRGGBB notation is more common in this file, but that probably doesn't matter.
Comment 5•14 years ago
|
||
Comment on attachment 505216 [details] [diff] [review]
Proposed patch.
>+ border-top: 1px solid rgba(98, 98, 98, 1.0);
>+ border-right: 1px solid rgba(120, 120, 120, 1.0);
>+ border-left: 1px solid rgba(120, 120, 120, 1.0);
>+ border-bottom: 1px solid rgba(140, 140, 140, 1.0);
>+ -moz-border-left-colors: none;
>+ -moz-border-right-colors: none;
>+ -moz-border-top-colors: none;
>+ -moz-border-bottom-colors: none;
Replace with:
border: 1px solid;
border-color: rgb(98,98,98) rgb(120,120,120) rgb(140,140,140);
Also add background-clip: padding-box; here for the corners to look right in focused state.
> #urlbar:-moz-window-inactive,
> .searchbar-textbox:-moz-window-inactive {
>- background-image: -moz-linear-gradient(#D6D6D6, #D6D6D6 1px, #F7F7F7 1px, #F7F7F7 2px, #FFF 2px, #FFF),
>- -moz-linear-gradient(@toolbarbuttonInactiveBorderColor@, @toolbarbuttonInactiveBorderColor@);
>+ border: 1px solid @toolbarbuttonInactiveBorderColor@;
border-color: @toolbarbuttonInactiveBorderColor@;
> #urlbar[focused="true"],
> .searchbar-textbox[focused="true"] {
>- background-color: -moz-mac-focusring;
>- background-image: -moz-linear-gradient(#D6D6D6, #D6D6D6 1px, #F7F7F7 1px, #F7F7F7 2px, #FFF 2px, #FFF),
>- -moz-linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1));
>+ border: 1px solid -moz-mac-focusring;
border-color: -moz-mac-focusring;
r=me with these changes.
Attachment #505216 -
Flags: review?(dao) → review+
Comment 6•14 years ago
|
||
Comment on attachment 505216 [details] [diff] [review]
Proposed patch.
This looks good with the changes Dão suggested.
Attachment #505216 -
Flags: ui-review?(shorlander) → ui-review+
Assignee | ||
Comment 7•14 years ago
|
||
Patch version 2 addresses review comments. Requesting approval2.0 for this small, low-risk CSS change.
Attachment #505216 -
Attachment is obsolete: true
Attachment #505483 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #505483 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 8•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b10
You need to log in
before you can comment on or make changes to this bug.
Description
•