Commit 0c0646cd authored by polina@google.com's avatar polina@google.com

Remove temporary hack necessary while webkit change was landing:...

Remove temporary hack necessary while webkit change was landing: https://bugs.webkit.org/show_bug.cgi?id=70076
Review URL: http://codereview.chromium.org/8365022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106981 0039d316-1c4b-4281-b951-d872f2087c98
parent 95e95070
......@@ -741,12 +741,7 @@ void PluginInstance::ViewChanged(const gfx::Rect& position,
if (desired_fullscreen_state_ || fullscreen_) {
WebElement element = container_->element();
WebDocument document = element.document();
// TODO(polina): temporary hack to ease WebKit/Chromium commit sequence.
#ifdef WEBKIT_WEBDOCUMENT_HAS_FULLSCREENELEMENT
bool is_fullscreen_element = (element == document.fullScreenElement());
#else
bool is_fullscreen_element = desired_fullscreen_state_;
#endif
if (!fullscreen_ && desired_fullscreen_state_ &&
delegate()->IsInFullscreenMode() && is_fullscreen_element) {
// Entered fullscreen. Only possible via SetFullscreen().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment