[Webkit-unassigned] [Bug 66531] Don't detach elements from the render tree when entering fullscreen mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 22 10:48:45 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=66531
--- Comment #10 from Jer Noble <jer.noble at apple.com> 2011-08-22 10:48:44 PST ---
(From update of attachment 104645)
View in context: https://bugs.webkit.org/attachment.cgi?id=104645&action=review
> Source/WebCore/rendering/RenderFullScreen.cpp:114
> + RenderObject* parent = object->parent();
> + if (parent) {
I think this can be written as:
if (RenderObject* parent = object->parent()) {
> Source/WebCore/rendering/RenderFullScreen.h:50
> + RenderObject* m_wrappedRenderer;
The wrapped renderer will always be the first and only child of the RenderFullScreen, so this extra ivar is probably unnecessary. All the instances above which reference m_wrappedRenderer can be replaced with firstChild().
> Source/WebCore/rendering/RenderFullScreen.h:51
> + static PassRefPtr<RenderStyle> createFullScreenStyle();
If this is only ever accessed from RenderFullScreen.cpp now, it can be made a file static.
--
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