WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112450
Clean up RenderFrameSet::nodeAtPoint
https://bugs.webkit.org/show_bug.cgi?id=112450
Summary
Clean up RenderFrameSet::nodeAtPoint
Allan Sandfeld Jensen
Reported
2013-03-15 09:50:54 PDT
As part of my work to remove side-effects in hit-testing I want to also eliminate any tests on the HitTestRequest::isReadOnly(), only one such remain and is in a cryptic test in RenderFrameSet::nodeAtPoint. if (inside && frameSet()->noResize() && !request.readOnly() && !result.innerNode() && !request.touchMove()) Reseaching the history of the test shows that it has been invalid since
r18333
in December 2006 where a part of the test was accidentally reversed from !element()->noResize to frameSet->noResize(). That has however had no effect since the check itself was dead code since
r17770
in November 2006 where the newly introduced EventHandler started taking care of sending events the frameset being resized without needing a hit-test. The check can therefore be removed and RenderFrameSet::nodeAtPoint made both cleaner and sane.
Attachments
Patch
(2.00 KB, patch)
2013-03-15 10:04 PDT
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
Patch for landing
(3.00 KB, patch)
2013-03-18 04:40 PDT
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Allan Sandfeld Jensen
Comment 1
2013-03-15 10:04:34 PDT
Created
attachment 193328
[details]
Patch
Eric Seidel (no email)
Comment 2
2013-03-15 11:53:17 PDT
Comment on
attachment 193328
[details]
Patch OK. I assume we have some tests for this? If not, we definitely need to add one.
Darin Adler
Comment 3
2013-03-15 16:29:12 PDT
Comment on
attachment 193328
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193328&action=review
> Source/WebCore/rendering/RenderFrameSet.cpp:166 > if (action != HitTestForeground) > return false;
Do we still need this part? What does this accomplish? I think we probably want to remove the entire function unless this has some benefit.
Allan Sandfeld Jensen
Comment 4
2013-03-18 04:27:46 PDT
(In reply to
comment #3
)
> (From update of
attachment 193328
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=193328&action=review
> > > Source/WebCore/rendering/RenderFrameSet.cpp:166 > > if (action != HitTestForeground) > > return false; > > Do we still need this part? What does this accomplish? I think we probably want to remove the entire function unless this has some benefit.
No, I guess not. RenderBox::nodeAtPoint also makes the check if (action == HitTestForeground).
Allan Sandfeld Jensen
Comment 5
2013-03-18 04:40:08 PDT
Created
attachment 193527
[details]
Patch for landing
Allan Sandfeld Jensen
Comment 6
2013-03-18 05:01:41 PDT
Committed
r146056
: <
http://trac.webkit.org/changeset/146056
>
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