WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
116896
ENABLE(PAN_SCROLLING) AutoscrollController::updateAutoscrollRenderer calls hitTestResultAtPoint with `true` for HitTestRequestType
https://bugs.webkit.org/show_bug.cgi?id=116896
Summary
ENABLE(PAN_SCROLLING) AutoscrollController::updateAutoscrollRenderer calls hi...
Joseph Pecoraro
Reported
2013-05-28 15:22:07 PDT
This looks like stale code after hitTestResultAtPoint changed signatures and replaced the second boolean parameter with an optional bitfield parameter. AutoscrollController::updateAutoscrollRenderer passes bool true for a parameter that used to mean "allowsShadowDOM", but the parameter is now a bitfield of flags, one of which is AllowsShadowDOM. This could would need to be updated. Or, better yet, if no ports enable PAN_SCROLLING the feature could be removed.
Attachments
Patch
(1.65 KB, patch)
2013-06-05 08:06 PDT
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
Patch
(1.68 KB, patch)
2013-06-06 07:04 PDT
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2013-05-28 15:32:44 PDT
See
bug 95720
: <
http://webkit.org/b/95720
> Simplify hitTestResultAtPoint and nodesFromRect APIs
Allan Sandfeld Jensen
Comment 2
2013-06-05 08:00:48 PDT
Thanks, that looks like a bit of confusion between two different refactorings.
Allan Sandfeld Jensen
Comment 3
2013-06-05 08:06:39 PDT
Created
attachment 203853
[details]
Patch
Allan Sandfeld Jensen
Comment 4
2013-06-05 08:08:42 PDT
Note that allowsShadowDOM is now also implied, and you only need to add a flag to disallow it.
Joseph Pecoraro
Comment 5
2013-06-05 12:10:28 PDT
Comment on
attachment 203853
[details]
Patch I think at the time this was written the signature of hitTestResultAtPoint was: HitTestResult hitTestResultAtPoint(const LayoutPoint&, bool allowShadowContent, bool ignoreClipping = false, HitTestScrollbars scrollbars = DontHitTestScrollbars, HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active, const LayoutSize& padding = LayoutSize()); Current trunk is: HitTestResult hitTestResultAtPoint(const LayoutPoint&, HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::DisallowShadowContent, const LayoutSize& padding = LayoutSize()); So I believe this code intends to have: HitTestRequest::ReadOnly | HitTestRequest::Active (+ allow shadow DOM which is implicit) But your change above ends up with just: HitTestRequest::ReadOnly (+ allow shadow DOM which is implicit) Does this also need to include HitTestRequest::Active?
Allan Sandfeld Jensen
Comment 6
2013-06-06 07:01:35 PDT
(In reply to
comment #5
)
> (From update of
attachment 203853
[details]
) > I think at the time this was written the signature of hitTestResultAtPoint was: > > HitTestResult hitTestResultAtPoint(const LayoutPoint&, bool allowShadowContent, > bool ignoreClipping = false, HitTestScrollbars scrollbars = DontHitTestScrollbars, > HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active, > const LayoutSize& padding = LayoutSize()); > > Current trunk is: > > HitTestResult hitTestResultAtPoint(const LayoutPoint&, > HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::DisallowShadowContent, > const LayoutSize& padding = LayoutSize()); > > So I believe this code intends to have: > > HitTestRequest::ReadOnly | HitTestRequest::Active (+ allow shadow DOM which is implicit) > > But your change above ends up with just: > > HitTestRequest::ReadOnly (+ allow shadow DOM which is implicit) > > Does this also need to include HitTestRequest::Active?
To be the same call yes, it shouldn't matter, but I can re-add it to keep the code equivalent.
Allan Sandfeld Jensen
Comment 7
2013-06-06 07:04:04 PDT
Created
attachment 203932
[details]
Patch
Andreas Kling
Comment 8
2013-06-06 09:56:42 PDT
Comment on
attachment 203932
[details]
Patch r=me
WebKit Commit Bot
Comment 9
2013-06-06 10:10:12 PDT
Comment on
attachment 203932
[details]
Patch Clearing flags on attachment: 203932 Committed
r151281
: <
http://trac.webkit.org/changeset/151281
>
WebKit Commit Bot
Comment 10
2013-06-06 10:10:15 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug