MediaPlayer.cpp lives in WebCore/platform, yet it knows about FrameView, Frame and Document. This totally breaks the layering that 'platform' is supposed to adhere to.
... and MediaDocument, where it tests for that a lot.
The bug title and description are rather overheated. As far as I see all layering violations here are trivial and easily fixable.