WebKit bug https://bugs.webkit.org/show_bug.cgi?id=107752 provided a way to fix incorrect selection of content in HTML document when clicking inside an empty region. I want to address the follow up comment from David Hyatt and improve the hit testing code.
Created attachment 200369 [details] Patch
Comment on attachment 200369 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=200369&action=review > Source/WebCore/rendering/RenderObject.cpp:2624 > - if (hitTestFilter != HitTestDescendants && !inside) > + if (hitTestFilter != HitTestDescendants && !inside && !isRenderFlowThread()) I wonder if it would be cleaner to subclass nodeAtPoint for RenderFlowThread and have it return false always if HitTestBlockBackground is the flag?
Created attachment 201449 [details] Patch 2 Use David's suggestion as the hittesting code is better contained in RFT class.
Comment on attachment 201449 [details] Patch 2 r=me
Created attachment 201725 [details] Patch for landing
Comment on attachment 201725 [details] Patch for landing Clearing flags on attachment: 201725 Committed r150078: <http://trac.webkit.org/changeset/150078>
All reviewed patches have been landed. Closing bug.