[Webkit-unassigned] [Bug 29621] Add port-specific control over rendering of media control elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 22 08:39:37 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29621
--- Comment #4 from Eric Carlson <eric.carlson at apple.com> 2009-09-22 08:39:37 PDT ---
> +
> + // Alternatively we could pass in the theme for fine-tuned adjustment. If
> + // we keep it as simply setting display to NONE then I might rename this method
> + // shouldDisplayMediaControlPart instead.
> + if (!renderer->theme()->shouldRenderMediaControlPart(renderer))
> + style->setDisplay(NONE);
This shouldn't be necessary. I think if have both MediaControlElement::
rendererIsNeeded and MediaControlInputElement:: rendererIsNeeded call the theme
method it should just work.
> bool MediaControlMuteButtonElement::rendererIsNeeded(RenderStyle* style)
> {
> - return MediaControlInputElement::rendererIsNeeded(style) && !disabled();
> + // All subclasses will probably end up NOT implementing this method anymore.
> + return MediaControlInputElement::rendererIsNeeded(style);
We do want to call the the base class method, an element could not need a
renderer for other reasons (eg. CSS).
--
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