WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
129485
[CSS Regions] Scrolling regions with the mouse wheel only works properly if hovering over the region's padding
https://bugs.webkit.org/show_bug.cgi?id=129485
Summary
[CSS Regions] Scrolling regions with the mouse wheel only works properly if h...
Radu Stavila
Reported
2014-02-28 08:15:53 PST
Hovering over the flowed content while using the mouse wheel to scroll the region doesn't work properly. See LayoutTests/fast/regions/scrollable-single-region.html for a sample.
Attachments
Patch
(13.00 KB, patch)
2014-03-10 06:26 PDT
,
Radu Stavila
abucur
: review-
Details
Formatted Diff
Diff
Patch
(15.30 KB, patch)
2014-03-10 07:42 PDT
,
Radu Stavila
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radu Stavila
Comment 1
2014-03-10 06:26:25 PDT
Created
attachment 226300
[details]
Patch
Andrei Bucur
Comment 2
2014-03-10 07:01:28 PDT
Comment on
attachment 226300
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=226300&action=review
r- because of the padding box issue. Also, don't forget about the CLs.
> Source/WebCore/rendering/RenderNamedFlowFragment.cpp:258 > + ASSERT(&fragmentContainer() == o);
We should also assert o == container() as the other implementations of offsetFromContainer do.
> Source/WebCore/rendering/RenderNamedFlowThread.cpp:381 > + IntRect fragmentAbsoluteRect(roundedIntPoint(fragmentContainer.localToAbsolute()), roundedIntSize(fragmentContainer.paddingBoxRect().size()));
I'm not sure this is correct. For example, if you have a region chain with two regions. The first region: padding-bottom: 100px, overflow: hidden. The second region: margin-top: -100px, padding: 0px, overflow: hidden. For a point found above the padding of the first region, fragmentFromAbsolutePointAndBox() will return the first region, not the second one, right? We should use the visualOverflow rectangles in each region to correctly determine this. Also, in the stacking order of the region layers.
Radu Stavila
Comment 3
2014-03-10 07:33:48 PDT
Comment on
attachment 226300
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=226300&action=review
>> Source/WebCore/rendering/RenderNamedFlowFragment.cpp:258 >> + ASSERT(&fragmentContainer() == o); > > We should also assert o == container() as the other implementations of offsetFromContainer do.
OK.
>> Source/WebCore/rendering/RenderNamedFlowThread.cpp:381 >> + IntRect fragmentAbsoluteRect(roundedIntPoint(fragmentContainer.localToAbsolute()), roundedIntSize(fragmentContainer.paddingBoxRect().size())); > > I'm not sure this is correct. For example, if you have a region chain with two regions. > The first region: padding-bottom: 100px, overflow: hidden. > The second region: margin-top: -100px, padding: 0px, overflow: hidden. > > For a point found above the padding of the first region, fragmentFromAbsolutePointAndBox() will return the first region, not the second one, right? We should use the visualOverflow rectangles in each region to correctly determine this. Also, in the stacking order of the region layers.
This is part of the old code, it's not code added by this patch. Also, a flowed scrollable element will always have a range of just one region, which means we will not encounter the situation you describe. If this situation changes, a better solution should be found for this.
Radu Stavila
Comment 4
2014-03-10 07:42:08 PDT
Created
attachment 226302
[details]
Patch
Andrei Bucur
Comment 5
2014-03-10 08:37:48 PDT
Comment on
attachment 226302
[details]
Patch r=me. Please add a bug to track either rename the function with something like "...ForScrolling" or, even better, file a bug to implement this at a layer level. Right now you won't get a positive result if you scroll over the overflow of a region, thus not scrolling the region container as it should happen.
WebKit Commit Bot
Comment 6
2014-03-10 09:23:19 PDT
Comment on
attachment 226302
[details]
Patch Clearing flags on attachment: 226302 Committed
r165377
: <
http://trac.webkit.org/changeset/165377
>
WebKit Commit Bot
Comment 7
2014-03-10 09:23:22 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