WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED FIXED
6240
REGRESSION: scrollbars in overflows don't work
https://bugs.webkit.org/show_bug.cgi?id=6240
Summary
REGRESSION: scrollbars in overflows don't work
mitz
Reported
2005-12-25 12:54:41 PST
Scrollbars in overflows don't respond at all. See for example
attachment 4800
[details]
. The regression happened sometime in these 18 minutes: WebKit-CVS-2005-12-23 21-57-59 GMT.dmg - scrollbars work WebKit-CVS-2005-12-23 22-16-19 GMT.dmg - scrollbars don't work
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2005-12-25 13:48:34 PST
Looks like a regression from the changes to position computations in dom2_eventsimpl.cpp in the patch for
bug 6177
.
mitz
Comment 2
2005-12-25 14:13:53 PST
- docRenderer->layer()->hitTest(hitTestResult, m_pageX, m_pageY); + docRenderer->layer()->hitTest(hitTestResult, m_clientX, m_clientY); seems to do the trick, but I don't understand all those coordinate systems.
mitz
Comment 3
2005-12-25 14:16:35 PST
(And just to explain how this affected scrollbars: hit-testing the wrong point at the wrong time clears the RenderLayer::gScrollBar global).
mitz
Comment 4
2005-12-25 14:32:35 PST
On an unrelated note, the use of viewportToContents in MouseRelatedEventImpl::computePositions seems ood. It looks to me like m_clientX and m_clientY are already the result of applying viewportToContents to view coordinates in e.g. NodeImpl::dispatchMouseEvent(QMouseEvent *_mouse, const AtomicString &overrideType, int overrideDetail).
Darin Adler
Comment 5
2005-12-26 17:52:26 PST
You're right about that viewportToContents call being wrong. That was part of a bigger patch that should not have been landed in this broken form.
Darin Adler
Comment 6
2005-12-26 17:57:12 PST
The real issue here is that the current code can't handle clientX, clientY, pageX, and pageY without changes that are outside the event class. So the right thing to do here is to patch to restore the old (albeit broken) behavior. And file a new bug about clientX and clientY being wrong.
Darin Adler
Comment 7
2006-01-03 11:05:17 PST
<
rdar://problem/4392772
> REGRESSION (420+): Can't use scroll bar on DIV element that has been assigned (overflow: auto) (6240)
Joost de Valk (AlthA)
Comment 8
2006-01-22 04:56:20 PST
Removing keyword(s) since bug is fixed.
Joost de Valk (AlthA)
Comment 9
2006-01-22 05:00:34 PST
Removing keyword(s) since bug is fixed.
Eric Seidel (no email)
Comment 10
2006-01-31 21:20:52 PST
Removing Regression keyword from bugs already fixed.
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