https://bugs.webkit.org/show_bug.cgi?id=66133
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Aug 2011 21:02:19 +0000 (21:02 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Aug 2011 21:02:19 +0000 (21:02 +0000)
commita74effc74cd3d53e819f15c11bc9fd3a7ffbe350
tree5b843077d3d1ca39d2bef5dc4470bdc836382910
parent7e351366793138b689cc26be8d9b0ad51bff7620
https://bugs.webkit.org/show_bug.cgi?id=66133

Make hit testing work on RenderRegions. Pass off the hit testing to the RenderFlowThread
layer tree (just as we did with painting).

Reviewed by Sam Weinig.

Added hit-test-float.html to demonstrate basic hit testing of content flowed into regions.

Source/WebCore:

* rendering/HitTestRequest.h:
(WebCore::HitTestRequest::type):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::hitTestRegion):
* rendering/RenderFlowThread.h:
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::paintReplaced):
(WebCore::RenderRegion::nodeAtPoint):
* rendering/RenderRegion.h:

LayoutTests:

* fast/regions/hit-test-float-expected.txt: Added.
* fast/regions/hit-test-float.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/regions/hit-test-float-expected.txt [new file with mode: 0644]
LayoutTests/fast/regions/hit-test-float.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/HitTestRequest.h
Source/WebCore/rendering/RenderFlowThread.cpp
Source/WebCore/rendering/RenderFlowThread.h
Source/WebCore/rendering/RenderRegion.cpp
Source/WebCore/rendering/RenderRegion.h