Bug 130574 - [CSS Regions] The background of children of scrollable elements flowed into regions is not properly scrolled
Summary: [CSS Regions] The background of children of scrollable elements flowed into r...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Radu Stavila
URL:
Keywords: AdobeTracked
Depends on:
Blocks: 57312
  Show dependency treegraph
 
Reported: 2014-03-21 02:50 PDT by Radu Stavila
Modified: 2014-03-25 15:01 PDT (History)
5 users (show)

See Also:


Attachments
Test-case (809 bytes, text/html)
2014-03-21 02:50 PDT, Radu Stavila
no flags Details
Patch (7.64 KB, patch)
2014-03-21 07:15 PDT, Radu Stavila
no flags Details | Formatted Diff | Diff
Patch (7.78 KB, patch)
2014-03-21 07:31 PDT, Radu Stavila
hyatt: review-
Details | Formatted Diff | Diff
Patch integrating feedback (12.85 KB, patch)
2014-03-21 09:20 PDT, Radu Stavila
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Radu Stavila 2014-03-21 02:50:39 PDT
Created attachment 227406 [details]
Test-case

The background of children of elements flowed into scrollable regions is not properly scrolled. See attached test-case.
Comment 1 Radu Stavila 2014-03-21 07:15:35 PDT
Created attachment 227432 [details]
Patch
Comment 2 Radu Stavila 2014-03-21 07:31:31 PDT
Created attachment 227433 [details]
Patch
Comment 3 Dave Hyatt 2014-03-21 08:43:45 PDT
Comment on attachment 227433 [details]
Patch

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

> Source/WebCore/rendering/RenderNamedFlowThread.cpp:307
> +    // Take the scrolled offset of this object's parents into consideration.
> +    IntSize scrolledContentOffset;
> +    RenderElement* parent = box.parent();
> +    while (parent) {
> +        if (parent->isBox()) {
> +            RenderBox* parentBox = toRenderBox(parent);
> +            if (parentBox->isRenderNamedFlowThread()) {

Don't we have a function to get the enclosing named flow thread for a box? Pretty sure we do, in which case writing this loop yourself seems like extra code?
Comment 4 Radu Stavila 2014-03-21 09:20:08 PDT
Created attachment 227443 [details]
Patch integrating feedback
Comment 5 Dave Hyatt 2014-03-25 14:04:23 PDT
Comment on attachment 227443 [details]
Patch integrating feedback

r=me
Comment 6 WebKit Commit Bot 2014-03-25 15:01:52 PDT
Comment on attachment 227443 [details]
Patch integrating feedback

Clearing flags on attachment: 227443

Committed r166259: <http://trac.webkit.org/changeset/166259>
Comment 7 WebKit Commit Bot 2014-03-25 15:01:56 PDT
All reviewed patches have been landed.  Closing bug.