2011-04-18 Andrew Scherkus <scherkus@chromium.org>
authorscherkus@chromium.org <scherkus@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Apr 2011 19:27:35 +0000 (19:27 +0000)
committerscherkus@chromium.org <scherkus@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Apr 2011 19:27:35 +0000 (19:27 +0000)
commite08604e9744fa0171113759772c8f36e0911df5d
treed1e07ff2a01da78f11d35e76bcc59b54ef023876
parentc6cc4ed8850f94e0bfa00ba2eaaebaad3e85ad9a
2011-04-18  Andrew Scherkus  <scherkus@chromium.org>

        Reviewed by Eric Seidel.

        Reset fullscreen element reference when leaving fullscreen mode and some other cleanup.

        https://bugs.webkit.org/show_bug.cgi?id=58719

        * fullscreen/full-screen-cancel-expected.txt: Added.
        * fullscreen/full-screen-cancel.html: Added.
2011-04-18  Andrew Scherkus  <scherkus@chromium.org>

        Reviewed by Eric Seidel.

        Reset fullscreen element reference when leaving fullscreen mode and some other cleanup.

        https://bugs.webkit.org/show_bug.cgi?id=58719

        Test: fullscreen/full-screen-cancel.html

        * dom/Document.cpp:
        (WebCore::Document::Document): Remove m_isFullscreen.
        (WebCore::Document::webkitWillEnterFullScreenForElement):
        (WebCore::Document::webkitWillExitFullScreenForElement): Remove duplicate call to setAnimating().
        (WebCore::Document::webkitDidExitFullScreenForElement): Reset m_fullScreenElement reference.
        * dom/Document.h:
        (WebCore::Document::webkitIsFullScreen): Use m_fullScreenElement instead of m_isFullscreen.
        (WebCore::Document::webkitFullScreenKeyboardInputAllowed): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fullscreen/full-screen-cancel-expected.txt [new file with mode: 0644]
LayoutTests/fullscreen/full-screen-cancel.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h