We saved the scale and scroll position before entering full screen mode, so that we can restore them after leaving fullscreen mode, because entering fullscreen mode automatically changes the scale to make the video to fit to the viewport. But if there's device rotation during the fullscreen, the scale and scroll position saved before may or may not apply anymore, we need to adjust the scale and/or scroll position if needed to make sure no over-scale or over-scroll in the new orientation.
Created attachment 183100 [details] Patch
Comment on attachment 183100 [details] Patch Already reviewed by George Staikos. Commit it.
Comment on attachment 183100 [details] Patch Clearing flags on attachment: 183100 Committed r139955: <http://trac.webkit.org/changeset/139955>
All reviewed patches have been landed. Closing bug.