Bug 128914 - [CSS Regions] Move specific named flow methods from RenderRegion to RenderNamedFlowFragment
Summary: [CSS Regions] Move specific named flow methods from RenderRegion to RenderNam...
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-02-17 09:19 PST by Radu Stavila
Modified: 2014-02-17 23:49 PST (History)
6 users (show)

See Also:


Attachments
Patch (6.80 KB, patch)
2014-02-17 14:19 PST, Radu Stavila
koivisto: review+
Details | Formatted Diff | Diff
Patch integrating feedback (6.85 KB, patch)
2014-02-17 14:41 PST, Radu Stavila
no flags Details | Formatted Diff | Diff
Rebase (8.89 KB, patch)
2014-02-17 15:44 PST, 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-02-17 09:19:34 PST
Move the regionContainer and regionContainerLayer methods from RenderRegion to RenderNamedFlowFragment
Comment 1 Radu Stavila 2014-02-17 14:19:45 PST
Created attachment 224423 [details]
Patch
Comment 2 Antti Koivisto 2014-02-17 14:23:05 PST
Comment on attachment 224423 [details]
Patch

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

r=me

> Source/WebCore/rendering/RenderNamedFlowFragment.cpp:195
> +RenderBlockFlow* RenderNamedFlowFragment::fragmentContainer() const
> +{
> +    ASSERT(parent() && parent()->isRenderNamedFlowFragmentContainer());
> +    return toRenderBlockFlow(parent());
> +}

Looks like this is never null. Could you return a reference?

Please assert the conditions separately (makes seeing what failed easier).

> Source/WebCore/rendering/RenderNamedFlowFragment.cpp:200
> +RenderLayer* RenderNamedFlowFragment::fragmentContainerLayer() const
> +{
> +    return fragmentContainer()->layer();
> +}

Can this be null?
Comment 3 Radu Stavila 2014-02-17 14:41:16 PST
Created attachment 224425 [details]
Patch integrating feedback
Comment 4 Radu Stavila 2014-02-17 15:44:12 PST
Created attachment 224441 [details]
Rebase
Comment 5 WebKit Commit Bot 2014-02-17 23:48:38 PST
Comment on attachment 224441 [details]
Rebase

Clearing flags on attachment: 224441

Committed r164275: <http://trac.webkit.org/changeset/164275>