Changeset 87022 in webkit


Ignore:
Timestamp:
May 21, 2011 3:30:01 PM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-05-21 Jeremy Noble <jer.noble@apple.com>

Reviewed by Eric Carlson.

WebKit2: fix failing fullscreen/full-screen-remove* tests.
https://bugs.webkit.org/show_bug.cgi?id=61027

  • platform/mac-wk2/Skipped: Unskip most fullscreen/ tests.

2011-05-21 Jeremy Noble <jer.noble@apple.com>

Reviewed by Eric Carlson.

WebKit2: fix failing fullscreen/full-screen-remove* tests.
https://bugs.webkit.org/show_bug.cgi?id=61027

  • dom/Document.cpp: (WebCore::Document::fullScreenChangeDelayTimerFired): dispatchEvent can be

synchronous, so make sure to check whether the current element is
in the DOM before dispatching.

2011-05-21 Jeremy Noble <jer.noble@apple.com>

Reviewed by Eric Carlson.

WebKit2: fix failing fullscreen/full-screen-remove* tests.
https://bugs.webkit.org/show_bug.cgi?id=61027

  • WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp: (WebKit::InjectedBundlePageFullScreenClient::exitFullScreenForElement): Call the

exit functions (was calling the enter functions).

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87021 r87022  
     12011-05-21  Jeremy Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Eric Carlson.
     4
     5        WebKit2: fix failing fullscreen/full-screen-remove* tests.
     6        https://bugs.webkit.org/show_bug.cgi?id=61027
     7
     8        * platform/mac-wk2/Skipped: Unskip most fullscreen/ tests.
     9
    1102011-05-21  Justin Schuh  <jschuh@chromium.org>
    211
  • trunk/LayoutTests/platform/mac-wk2/Skipped

    r86981 r87022  
    359359fast/text/offsetForPosition-complex-fallback.html
    360360fast/text/reset-drag-on-mouse-down.html
    361 fullscreen/full-screen-cancel.html
    362361http/tests/local/blob/send-hybrid-blob.html
    363362http/tests/local/drag-over-remote-content.html
     
    16601659inspector/console/console-long-eval-crash.html
    16611660
    1662 # WebKit2 needs fullscreen support
    1663 # https://bugs.webkit.org/show_bug.cgi?id=56318
    1664 fullscreen/
     1661# WebKit2 needs fake key event support
     1662fullscreen/full-screen-frameset.html
     1663fullscreen/full-screen-keyboard-disabled.html
     1664fullscreen/full-screen-keyboard-enabled.html
    16651665
    16661666# WebKit2 needs to support synchronous creation of about:blank/data:url frames
  • trunk/Source/WebCore/ChangeLog

    r87020 r87022  
     12011-05-21  Jeremy Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Eric Carlson.
     4
     5        WebKit2: fix failing fullscreen/full-screen-remove* tests.
     6        https://bugs.webkit.org/show_bug.cgi?id=61027
     7
     8        * dom/Document.cpp:
     9        (WebCore::Document::fullScreenChangeDelayTimerFired): dispatchEvent can be
     10            synchronous, so make sure to check whether the current element is
     11            in the DOM before dispatching.
     12
    1132011-05-21  Gavin Peters  <gavinp@chromium.org>
    214
  • trunk/Source/WebCore/dom/Document.cpp

    r86976 r87022  
    49874987        if (!element)
    49884988            element = documentElement();
    4989        
    4990         element->dispatchEvent(Event::create(eventNames().webkitfullscreenchangeEvent, true, false));
    49914989
    49924990        // If the element was removed from our tree, also message the documentElement.
    49934991        if (!contains(element.get()))
    49944992            m_fullScreenChangeEventTargetQueue.append(documentElement());
     4993       
     4994        element->dispatchEvent(Event::create(eventNames().webkitfullscreenchangeEvent, true, false));
    49954995    }
    49964996}
  • trunk/Source/WebKit2/ChangeLog

    r87005 r87022  
     12011-05-21  Jeremy Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Eric Carlson.
     4
     5        WebKit2: fix failing fullscreen/full-screen-remove* tests.
     6        https://bugs.webkit.org/show_bug.cgi?id=61027
     7
     8        * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp:
     9        (WebKit::InjectedBundlePageFullScreenClient::exitFullScreenForElement): Call the
     10            exit functions (was calling the enter functions).
     11
    1122011-05-20  Jeremy Noble  <jer.noble@apple.com>
    213
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp

    r84206 r87022  
    6262void InjectedBundlePageFullScreenClient::exitFullScreenForElement(WebPage *page, WebCore::Element *element)
    6363{
    64     if (m_client.enterFullScreenForElement) {
     64    if (m_client.exitFullScreenForElement) {
    6565        RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(element);
    66         m_client.enterFullScreenForElement(toAPI(page), toAPI(nodeHandle.get()));
     66        m_client.exitFullScreenForElement(toAPI(page), toAPI(nodeHandle.get()));
    6767    } else
    6868        page->send(Messages::WebFullScreenManagerProxy::ExitFullScreen());
Note: See TracChangeset for help on using the changeset viewer.