Bug 142807 - Make it possible to compute a region for elements on the page that have wheel event handlers
Summary: Make it possible to compute a region for elements on the page that have wheel...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
: 124139 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-17 17:56 PDT by Simon Fraser (smfr)
Modified: 2015-08-25 12:56 PDT (History)
21 users (show)

See Also:


Attachments
Patch (48.49 KB, patch)
2015-03-17 18:23 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (566.39 KB, application/zip)
2015-03-17 19:37 PDT, Build Bot
no flags Details
Patch (54.08 KB, patch)
2015-03-18 14:07 PDT, Simon Fraser (smfr)
hyatt: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (699.96 KB, application/zip)
2015-03-18 14:54 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2015-03-17 17:56:42 PDT
Make it possible to compute a region for elements on the page that have wheel event handlers
Comment 1 Simon Fraser (smfr) 2015-03-17 18:23:56 PDT
Created attachment 248894 [details]
Patch
Comment 2 Build Bot 2015-03-17 19:37:47 PDT
Comment on attachment 248894 [details]
Patch

Attachment 248894 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4871917962002432

New failing tests:
platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-handler-in-columns.html
platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/handlers-in-iframes.html
platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-handler-in-region.html
Comment 3 Build Bot 2015-03-17 19:37:53 PDT
Created attachment 248902 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 4 Simon Fraser (smfr) 2015-03-18 14:07:01 PDT
Created attachment 248963 [details]
Patch
Comment 5 Build Bot 2015-03-18 14:54:23 PDT
Comment on attachment 248963 [details]
Patch

Attachment 248963 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4904563471548416

New failing tests:
platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/handlers-in-iframes.html
platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-handler-in-overflow-scroll.html
Comment 6 Build Bot 2015-03-18 14:54:30 PDT
Created attachment 248967 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Dave Hyatt 2015-03-26 12:00:24 PDT
Comment on attachment 248963 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=248963&action=review

r=me

> Source/WebCore/dom/Document.cpp:6118
> +        return renderView->documentRect();

Note that documentRect() does apply a transform. I don't know if you really wanted 

unscaledDocumentRect()

here or not. I'm not sure.

> Source/WebCore/dom/Element.cpp:957
> +LayoutRect Element::eventBounds(bool& boundsIncludeAllDescendantElements, bool& includesFixedPositionElements)

Should probably have absolute in the name.

> Source/WebCore/dom/Element.cpp:1013
> +LayoutRect Element::eventBoundsOfElementAndDescendants(bool& includesFixedPositionElements)

Should probably have absolute in the name.
Comment 8 Jon Lee 2015-03-31 12:43:07 PDT
rdar://problem/16049624
Comment 9 Simon Fraser (smfr) 2015-03-31 16:43:56 PDT
https://trac.webkit.org/r182215
Comment 10 Alexey Proskuryakov 2015-03-31 23:37:01 PDT
This broke Windows build: 

WebCore.lib(InspectorAllInOne.obj) : error LNK2019: unresolved external symbol "public: class WebCore::FloatPoint __thiscall WebCore::RenderObject::localToAbsolute(class WebCore::FloatPoint const &,unsigned int)const " (?localToAbsolute@RenderObject@WebCore@@QBE?AVFloatPoint@2@ABV32@I@Z) referenced in function "class WebCore::FloatPoint __cdecl WebCore::localPointToRoot(class WebCore::RenderObject *,class WebCore::FrameView const *,class WebCore::FrameView const *,class WebCore::FloatPoint const &)" (?localPointToRoot@WebCore@@YA?AVFloatPoint@1@PAVRenderObject@1@PBVFrameView@1@1ABV21@@Z) [C:\cygwin\home\buildbot\slave\win-debug\build\Source\WebKit\WebKit.vcxproj\WebKit\WebKit.vcxproj]

WebCore.lib(InspectorAllInOne.obj) : error LNK2019: unresolved external symbol "public: class WebCore::IntRect __thiscall WebCore::RenderObject::absoluteBoundingBoxRect(bool)const " (?absoluteBoundingBoxRect@RenderObject@WebCore@@QBE?AVIntRect@2@_N@Z) referenced in function "private: class WTF::Ref<class Inspector::Protocol::LayerTree::Layer> __thiscall WebCore::InspectorLayerTreeAgent::buildObjectForLayer(class WTF::String &,class WebCore::RenderLayer *)" (?buildObjectForLayer@InspectorLayerTreeAgent@WebCore@@AAE?AV?$Ref@VLayer@LayerTree@Protocol@Inspector@@@WTF@@AAVString@4@PAVRenderLayer@2@@Z) [C:\cygwin\home\buildbot\slave\win-debug\build\Source\WebKit\WebKit.vcxproj\WebKit\WebKit.vcxproj]
Comment 11 Alexey Proskuryakov 2015-03-31 23:48:56 PDT
I don't see anything wrong with the code, will try a clean build.
Comment 12 Brent Fulgham 2015-08-25 12:56:48 PDT
*** Bug 124139 has been marked as a duplicate of this bug. ***