[Webkit-unassigned] [Bug 131553] Snapshotted plugins may need to be restarted if style properties are changed after initial load of plugin.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 11 16:28:24 PDT 2014


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





--- Comment #7 from Roger Fong <roger_fong at apple.com>  2014-04-11 16:28:42 PST ---
(In reply to comment #6)
> (From update of attachment 229173 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=229173&action=review
> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:604
> > +bool HTMLPlugInImageElement::isTopLevelFullPage(const RenderEmbeddedObject& renderEmbedded, int contentWidth, int contentHeight)
> 
> Fewer weird abbreviations please!
> isTopLevelFullPagePlugin(const RenderEmbeddedObject& embeddedObject, ...
> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:606
> > +    if (document().frame()->isMainFrame()) {
> 
> if (!document().frame()->isMainFrame())
>   return false
> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:613
> > +        if (isFullPage && contentArea > visibleArea * sizingFullPageAreaRatioThreshold)
> > +            return true;
> 
> return isFullPage && (contentArea > visibleArea * sizingFullPageAreaRatioThreshold);
> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:622
> > +    if (contentWidth <= sizingTinyDimensionThreshold || contentHeight <= sizingTinyDimensionThreshold)
> > +        return true;
> > +    return false;
> 
> return (contentWidth <= sizingTinyDimensionThreshold || contentHeight <= sizingTinyDimensionThreshold)
> 
> This could be a local static function.
> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:630
> > +        auto& renderEmbedded = toRenderEmbeddedObject(*this->renderer());
> 
> Why not use the renderEmbeddedObject() function (and check its return value)?

Should I assert that it's not null? When would it not exist?

> 
> > Source/WebCore/html/HTMLPlugInImageElement.cpp:642
> > +        if (displayState() == Playing)
> > +        checkSizeChangeForSnapshotting();
> 
> Wrong indentation.
> 
> > Source/WebCore/html/HTMLPlugInImageElement.h:144
> > +    bool isTopLevelFullPage(const RenderEmbeddedObject&, int contentWidth, int contentHeight);
> 
> Should be a const function.

-- 
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