Skip to content
  • shinyak@chromium.org's avatar
    62a1d0bf
    [Regression] Infinite loop in document.elementFromPoint · 62a1d0bf
    shinyak@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=90820
    
    Reviewed by Nikolas Zimmermann.
    
    Source/WebCore:
    
    Node::shadowAncestorNode returns the caller node itself for SVGElement. However,
    since we have already implemented event retargeting algorithm in Shadow DOM, we don't have to
    take a special care of SVGElement for Node.shadowAncestorNode() now.
    
    This patch will removes the special care code and fixes infinite loop in document.elementFromPoint().
    
    Test: svg/hittest/svg-use-element-from-point.html
    
    * dom/Node.cpp:
    (WebCore::Node::shadowAncestorNode):
    
    LayoutTests:
    
    * svg/hittest/svg-use-element-from-point-expected.txt: Added.
    * svg/hittest/svg-use-element-from-point.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    62a1d0bf
    [Regression] Infinite loop in document.elementFromPoint
    shinyak@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=90820
    
    Reviewed by Nikolas Zimmermann.
    
    Source/WebCore:
    
    Node::shadowAncestorNode returns the caller node itself for SVGElement. However,
    since we have already implemented event retargeting algorithm in Shadow DOM, we don't have to
    take a special care of SVGElement for Node.shadowAncestorNode() now.
    
    This patch will removes the special care code and fixes infinite loop in document.elementFromPoint().
    
    Test: svg/hittest/svg-use-element-from-point.html
    
    * dom/Node.cpp:
    (WebCore::Node::shadowAncestorNode):
    
    LayoutTests:
    
    * svg/hittest/svg-use-element-from-point-expected.txt: Added.
    * svg/hittest/svg-use-element-from-point.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Loading