Closed
Bug 520614
Opened 16 years ago
Closed 16 years ago
Fix usage of vbox in videocontrols.xml
Categories
(Toolkit :: Video/Audio Controls, defect)
Toolkit
Video/Audio Controls
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: bas.schouten, Assigned: Dolske)
References
Details
Attachments
(1 file)
2.46 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
Currently the vbox in videocontrols.xml fills the entire video area (except the timeline bar). This means that if the background image update (like with the rotating throbber), the entire background is invalidated for each frame of the animation, causing significant composition overhead on larger video controller sizes.
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → dolske
Assignee | ||
Comment 1•16 years ago
|
||
Enn's suggestion here was to center the box w/o using flex.
Assignee | ||
Comment 2•16 years ago
|
||
This shrinks the statusIcon box. At least, if I add a style rule to give it a border, it's tight around the throbber image instead of filling the whole <video> content area.
Bas: Would be useful if you could test with this patch and doublecheck that it fixes the problem you found.
Attachment #405620 -
Flags: review?(enndeakin)
Comment 3•16 years ago
|
||
Comment on attachment 405620 [details] [diff] [review]
Patch v.1
> .statusOverlay {
>+ -moz-box-align: center;
>+ -moz-box-pack: center;
Is there a reason to do this instead of using align/pack attributes?
Assignee | ||
Comment 4•16 years ago
|
||
No, just seemed like since it was more of a presentational thing vs. structural, that having it in the CSS was better.
Comment 5•16 years ago
|
||
Comment on attachment 405620 [details] [diff] [review]
Patch v.1
The "presentational thing vs. structural" nonsense doesn't apply to xul.
What's relevant is whether a theme would want to override the values. In this case, other themes won't pick up this change and since this has a notable performance impact, it seems like something we'd want to have always applied.
That said, it doesn't matter too much to me which is used in this case, so the patch is ok as is if you like.
Attachment #405620 -
Flags: review?(enndeakin) → review+
Comment 6•16 years ago
|
||
As a long-time themer, I agree with the patch, and with comment #3, use the align and pack attributes to center the icon, and this will also remove the need to add -moz-box-pack/align to all themes.
Assignee | ||
Comment 7•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.3a1
Assignee | ||
Updated•16 years ago
|
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Target Milestone: mozilla1.9.3a1 → mozilla1.9.2a1
Assignee | ||
Updated•16 years ago
|
Target Milestone: mozilla1.9.2a1 → mozilla1.9.3a1
Comment 8•15 years ago
|
||
Comment on attachment 405620 [details] [diff] [review]
Patch v.1
> <stack flex="1">
>+ <vbox flex="1" class="statusOverlay" hidden="true">
Flex on a stack child makes no sense either.
[Unusual mix of 2- and 4-space indent in this file...]
You need to log in
before you can comment on or make changes to this bug.
Description
•