RESOLVED FIXED 56220
Add full screen animation code to WebFullScreenManager.
https://bugs.webkit.org/show_bug.cgi?id=56220
Summary Add full screen animation code to WebFullScreenManager.
Jer Noble
Reported 2011-03-11 13:47:18 PST
Animation of the full screen element's CALayer must be done in the WebProcess, so add that code to WebFullScreenManager.
Attachments
Patch (25.85 KB, patch)
2011-03-11 14:08 PST, Jer Noble
no flags
Patch (25.27 KB, patch)
2011-03-11 14:46 PST, Jer Noble
andersca: review+
Jer Noble
Comment 1 2011-03-11 14:08:38 PST
Jer Noble
Comment 2 2011-03-11 14:46:00 PST
Created attachment 85539 [details] Patch Modified the linker settings for new files in the .xcodeproj.
Anders Carlsson
Comment 3 2011-03-11 17:05:05 PST
Comment on attachment 85539 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=85539&action=review > Source/WebKit2/ChangeLog:8 > + * WebProcess/FullScreen/WebFullScreenManager.cpp: Move functions into virtual base class. I don't see a virtual base class here. Maybe this should say "Move virtual functions into base class"? > Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.cpp:51 > + Extra newline. > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h:38 > +typedef struct objc_object *id; I don't think forward declaring id like this works with newer compilers. Could you forward declare WebFullScreenManagerAnimationListener instead and use it for the RetainPtr? We have an OBJC_CLASS macro that is useful for forward declaring Objective-C classes. > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:88 > + _manager = NULL; = 0; > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:132 > + m_rootLayer->setName("LayerTreeHost root layer"); This should say something else, maybe "Full screen root layer".
Jer Noble
Comment 4 2011-03-11 18:03:46 PST
(In reply to comment #3) > (From update of attachment 85539 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=85539&action=review > > > Source/WebKit2/ChangeLog:8 > > + * WebProcess/FullScreen/WebFullScreenManager.cpp: Move functions into virtual base class. > > I don't see a virtual base class here. Maybe this should say "Move virtual functions into base class"? Yes, this was incredibly poorly written. How about, "Make functions pure virtual to be implemented by a concrete subclass."? > > Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.cpp:51 > > + > > Extra newline. Deleted. > > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.h:38 > > +typedef struct objc_object *id; > > I don't think forward declaring id like this works with newer compilers. Could you forward declare WebFullScreenManagerAnimationListener instead and use it for the RetainPtr? > > We have an OBJC_CLASS macro that is useful for forward declaring Objective-C classes. OBJC_CLASS seems to work fine here. Changed. > > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:88 > > + _manager = NULL; > > = 0; Changed. > > Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:132 > > + m_rootLayer->setName("LayerTreeHost root layer"); > > This should say something else, maybe "Full screen root layer". Suggestion taken. Changed. Thanks!
Jer Noble
Comment 5 2011-03-11 20:20:22 PST
Jer Noble
Comment 6 2011-03-11 20:53:23 PST
Jer Noble
Comment 7 2011-03-11 21:17:09 PST
Jer Noble
Comment 8 2011-03-11 21:32:53 PST
webkit-patch added the above commit messages incorrectly, probably due to #56241.
Jer Noble
Comment 9 2011-03-11 21:43:18 PST
The correct message is the last one: Committed r80925: <http://trac.webkit.org/changeset/80925>
Note You need to log in before you can comment on or make changes to this bug.