⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 155348 in webkit


Ignore:
Timestamp:
Sep 9, 2013, 6:58:13 AM (13 years ago)
Author:
allan.jensen@digia.com
Message:

MouseLeave not always emitted when cursor leaves subframe
https://bugs.webkit.org/show_bug.cgi?id=121026

Reviewed by Antonio Gomes.

Source/WebCore:

Forward the PlatformMouseEvent in the recursive calls so nested documents
also get a chance to emit mouseleave when the hover moves out.

Test: fast/events/mouseenterleave-on-subframe.html

  • dom/Document.cpp:

(WebCore::Document::updateHoverActiveState):

LayoutTests:

Test or mouseenter/mouseleave events in an inner document. Note this test also
tests bug 120862, but the initial expectations assume that part to fail.

  • fast/events/mouseenterleave-on-subframe-expected.html: Added.
  • fast/events/mouseenterleave-on-subframe.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r155343 r155348  
     12013-09-09  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        MouseLeave not always emitted when cursor leaves subframe
     4        https://bugs.webkit.org/show_bug.cgi?id=121026
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Test or mouseenter/mouseleave events in an inner document. Note this test also
     9        tests bug 120862, but the initial expectations assume that part to fail.
     10
     11        * fast/events/mouseenterleave-on-subframe-expected.html: Added.
     12        * fast/events/mouseenterleave-on-subframe.html: Added.
     13
    1142013-09-09  Krzysztof Czech  <k.czech@samsung.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r155346 r155348  
     12013-09-09  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        MouseLeave not always emitted when cursor leaves subframe
     4        https://bugs.webkit.org/show_bug.cgi?id=121026
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Forward the PlatformMouseEvent in the recursive calls so nested documents
     9        also get a chance to emit mouseleave when the hover moves out.
     10
     11        Test: fast/events/mouseenterleave-on-subframe.html
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::updateHoverActiveState):
     15
    1162013-09-09  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
    217
  • trunk/Source/WebCore/dom/Document.cpp

    r155344 r155348  
    57605760    Element* innerElementInDocument = innerElement;
    57615761    while (innerElementInDocument && &innerElementInDocument->document() != this) {
    5762         innerElementInDocument->document().updateHoverActiveState(request, innerElementInDocument);
     5762        innerElementInDocument->document().updateHoverActiveState(request, innerElementInDocument, event);
    57635763        innerElementInDocument = innerElementInDocument->document().ownerElement();
    57645764    }
     
    58645864        if (oldHoveredElement && oldHoveredElement->isFrameOwnerElement()) {
    58655865            if (Document* contentDocument = toFrameOwnerElement(oldHoveredElement.get())->contentDocument())
    5866                 contentDocument->updateHoverActiveState(request, 0);
     5866                contentDocument->updateHoverActiveState(request, 0, event);
    58675867        }
    58685868    }
Note: See TracChangeset for help on using the changeset viewer.