Changeset 206591 in webkit
- Timestamp:
- Sep 29, 2016 11:09:59 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r206590 r206591 1 2016-09-29 Simon Fraser <simon.fraser@apple.com> 2 3 Fix hit testing on display:block <svg> elements 4 https://bugs.webkit.org/show_bug.cgi?id=162717 5 rdar://problem/23261130 6 7 Reviewed by Zalan Bujtas. 8 9 Test hit testing on inline and block <svg> elements. 10 11 * svg/hittest/block-svg-expected.txt: Added. 12 * svg/hittest/block-svg.html: Added. 13 1 14 2016-09-29 Saam Barati <sbarati@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r206588 r206591 1 2016-09-29 Simon Fraser <simon.fraser@apple.com> 2 3 Fix hit testing on display:block <svg> elements 4 https://bugs.webkit.org/show_bug.cgi?id=162717 5 rdar://problem/23261130 6 7 Reviewed by Zalan Bujtas. 8 9 RenderSVGRoot::nodeAtPoint() needs to test for both the HitTestBlockBackground and 10 HitTestChildBlockBackground phases, since we only get the HitTestChildBlockBackground 11 phase when the <svg> is a block. This is similar to code in RenderTable::nodeAtPoint(), 12 and matches Blink code. 13 14 This fixes the point dragging on http://anthonydugois.com/svg-path-builder/. 15 16 Test: svg/hittest/block-svg.html 17 18 * rendering/svg/RenderSVGRoot.cpp: 19 (WebCore::RenderSVGRoot::nodeAtPoint): 20 1 21 2016-09-29 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r204872 r206591 445 445 446 446 // If we didn't early exit above, we've just hit the container <svg> element. Unlike SVG 1.1, 2nd Edition allows container elements to be hit. 447 if ( hitTestAction == HitTestBlockBackground&& visibleToHitTesting()) {447 if ((hitTestAction == HitTestBlockBackground || hitTestAction == HitTestChildBlockBackground) && visibleToHitTesting()) { 448 448 // Only return true here, if the last hit testing phase 'BlockBackground' is executed. If we'd return true in the 'Foreground' phase, 449 449 // hit testing would stop immediately. For SVG only trees this doesn't matter. Though when we have a <foreignObject> subtree we need
Note: See TracChangeset
for help on using the changeset viewer.