Changeset 145448 in webkit
- Timestamp:
- Mar 11, 2013, 6:08:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r145445 r145448 1 2013-03-11 Christian Biesinger <cbiesinger@chromium.org> 2 3 Hit testing should use ancestorInThisScope to get the non-shadow ancestor 4 https://bugs.webkit.org/show_bug.cgi?id=112068 5 6 Reviewed by Dimitri Glazkov. 7 8 * media/nodesFromRect-shadowContent.html: Extend the hit testing rect 9 to guarantee reaching a nested shadow tree. 10 1 11 2013-03-11 James Robinson <jamesr@chromium.org> 2 12 -
trunk/LayoutTests/media/nodesFromRect-shadowContent.html
r122473 r145448 34 34 var clickY = playCoords[1]; 35 35 36 check(clickX, clickY, 10 , 10, 20, 20, [e.v1, e.body]);36 check(clickX, clickY, 100, 100, 20, 20, [e.v1, e.body]); 37 37 38 38 var shadow =['-webkit-media-controls-timeline-container', '-webkit-media-controls-play-button', '-webkit-media-controls-panel', '-webkit-media-controls']; -
trunk/Source/WebCore/ChangeLog
r145444 r145448 1 2013-03-11 Christian Biesinger <cbiesinger@chromium.org> 2 3 Hit testing should use ancestorInThisScope to get the non-shadow ancestor 4 https://bugs.webkit.org/show_bug.cgi?id=112068 5 6 Reviewed by Dimitri Glazkov. 7 8 Tests: media/nodesFromRect-shadowContent.html 9 10 * rendering/HitTestResult.cpp: 11 (WebCore::HitTestResult::setToNonShadowAncestor): 12 (WebCore::HitTestResult::addNodeToRectBasedTestResult): 13 Use ancestorInThisScope which is not deprecated and which produces 14 correct results for nested shadow trees (e.g. in case of <video>, 15 which contains <input> elements for the controls, which themselves 16 have shadow trees) 17 1 18 2013-03-11 Abhishek Arya <inferno@chromium.org> 2 19 -
trunk/Source/WebCore/rendering/HitTestResult.cpp
r144743 r145448 116 116 Node* node = innerNode(); 117 117 if (node) 118 node = node->d eprecatedShadowAncestorNode();118 node = node->document()->ancestorInThisScope(node); 119 119 setInnerNode(node); 120 120 node = innerNonSharedNode(); 121 121 if (node) 122 node = node->d eprecatedShadowAncestorNode();122 node = node->document()->ancestorInThisScope(node); 123 123 setInnerNonSharedNode(node); 124 124 } … … 558 558 559 559 if (!request.allowsShadowContent()) 560 node = node->d eprecatedShadowAncestorNode();560 node = node->document()->ancestorInThisScope(node); 561 561 562 562 mutableRectBasedTestResult().add(node); … … 578 578 579 579 if (!request.allowsShadowContent()) 580 node = node->d eprecatedShadowAncestorNode();580 node = node->document()->ancestorInThisScope(node); 581 581 582 582 mutableRectBasedTestResult().add(node);
Note:
See TracChangeset
for help on using the changeset viewer.