[Webkit-unassigned] [Bug 29161] Implement default media UI for mac chromium.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 07:30:32 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29161


David Levin <levin at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39401|review?, commit-queue?      |review+, commit-queue-
               Flag|                            |




--- Comment #9 from David Levin <levin at chromium.org>  2009-09-11 07:30:28 PDT ---
(From update of attachment 39401)

Just a few nits to fix up and then commit.

> diff --git a/WebCore/rendering/RenderThemeChromiumMac.mm b/WebCore/rendering/RenderThemeChromiumMac.mm

> +#if ENABLE(VIDEO)
> +// Attempt to retrieve a HTMLMediaElement from a Node. Returns NULL if one cannot be found.

Use 0 instead of NULL. check-webkit-style would have flagged this :)


> +    static Image* soundFull = Image::loadPlatformResource("mediaSoundFull").releaseRef();
> +    static Image* soundNone = Image::loadPlatformResource("mediaSoundNone").releaseRef();
> +    static Image* soundDisabled = Image::loadPlatformResource("mediaSoundDisabled").releaseRef();
> +
> +    if (mediaElement->networkState() == HTMLMediaElement::NETWORK_NO_SOURCE || !mediaElement->hasAudio())
> +        return paintMediaButtonInternal(paintInfo.context, rect, soundDisabled);
> +
> +    return paintMediaButtonInternal(paintInfo.context, rect, mediaElement->muted() ? soundNone: soundFull);

Add a space before the :


> +    if (bufferedRect.width() > 0 && bufferedRect.height() > 0) {
> +        FloatPoint p0 = bufferedRect.location();
> +        FloatPoint p1 = p0;

Can you think of more meaningful names than p0 and p1? (sliderTop,
sliderBottom?)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list