Show
Ignore:
Timestamp:
02/17/07 10:35:29 (23 months ago)
Author:
adele
Message:

LayoutTests:

Reviewed by Darin.

  • fast/events/shadow-boundary-crossing-expected.txt: Added.
  • fast/events/shadow-boundary-crossing.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/events/shadow-boundary-crossing.html

  • dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchGenericEvent): Changed to use the new eventParentNode() function for constructing the chain of ancestors for capture and bubbling.
  • dom/Node.h: (WebCore::Node::eventParentNode): Added. Returns the node's parent for the purpose of of event capture and bubbling. The base class implementation is to return the parent node.
  • ksvg2/svg/SVGElement.h: (WebCore::SVGElement::eventParentNode): Added. Since in SVG events bubble to and can be captured across the shadow DOM boundary, returns the shadow parent for shadow nodes.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/dom/Node.h

    r19584 r19681  
    150150    virtual Node* shadowParentNode() { return 0; } 
    151151    Node* shadowAncestorNode(); 
     152 
     153    // The node's parent for the purpose of event capture and bubbling. 
     154    virtual Node* eventParentNode() { return parentNode(); } 
     155 
    152156    bool isBlockFlow() const; 
    153157    bool isBlockFlowOrBlockTable() const;