As is, we are creating the QStateMachine and all associated objects (QState, QPropertyAnimations and QAbstractTransition) for the YRotation action (Developer->GraphicsView->YRotation) at WebViewGraphicsBased constructor time. It is unnecessery. Patch moves all this stuff to the slot that is activated by the associated menuitem to this action, lazily initiating it.
Created attachment 64076 [details] patch v1
Created attachment 64103 [details] (committed with r65159, r=ariya)patch v2 Diff from v1: 1) Moved QStateMachine to a class member of WebView (named m_machine) instead of being it a static variable in WebView::animatedYFlip slot. 2) Removed the yFlipRequest signal, now that it is unneeded.
Comment on attachment 64103 [details] (committed with r65159, r=ariya)patch v2 LGTM (if you fix the last remaining static).
Comment on attachment 64103 [details] (committed with r65159, r=ariya)patch v2 Clearing flags on attachment: 64103 Committed r65159: <http://trac.webkit.org/changeset/65159>