Bug 130574

Summary: [CSS Regions] The background of children of scrollable elements flowed into regions is not properly scrolled
Product: WebKit Reporter: Radu Stavila <stavila>
Component: CSSAssignee: Radu Stavila <stavila>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
Test-case
none
Patch
none
Patch
hyatt: review-
Patch integrating feedback none

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.