Summary: | Mac OS X media controls should have a way to adjust volume incrementally | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> | ||||
Component: | Media | Assignee: | Eric Carlson <eric.carlson> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | rcombs | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.6 | ||||||
Attachments: |
|
Description
Eric Carlson
2010-07-06 15:16:55 PDT
Created attachment 60661 [details]
proposed patch
Comment on attachment 60661 [details] proposed patch > + (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement): Add ButtonLocation > + parameter both mute buttons can be created. Missing a word there? > +audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container { > + -webkit-appearance: media-volume-slider-container; > + position: absolute; > + > + width: 22px; > + height: 114px; > +} I wonder if this can specify one of top/bottom and one of left/right. > +IntPoint RenderThemeMac::volumeSliderOffsetFromMuteButton(Node* muteButton, const IntSize& size) const > +{ > + static const int xOffset = -4; > + static const int yOffset = 5; > + > + int y = muteButton->renderBox()->offsetHeight() + yOffset - size.height(); > + FloatPoint absPoint = muteButton->renderer()->localToAbsolute(FloatPoint(muteButton->renderBox()->offsetLeft(), y), true, true); > + if (absPoint.y() < 0) > + y = muteButton->renderBox()->height(); > + return IntPoint(xOffset, y); > +} I think I know what this does but a comment wouldn’t hurt. r=me! |