Bug 141668 - RenderTableRow should check if it has access to its ancestor chain.
Summary: RenderTableRow should check if it has access to its ancestor chain.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 15:05 PST by zalan
Modified: 2015-02-16 17:02 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.65 KB, patch)
2015-02-16 15:08 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (4.93 KB, patch)
2015-02-16 15:37 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (4.93 KB, patch)
2015-02-16 15:50 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2015-02-16 15:05:23 PST
It might be in detached state.
Comment 1 zalan 2015-02-16 15:08:59 PST
Created attachment 246687 [details]
Patch
Comment 2 Andreas Kling 2015-02-16 15:11:06 PST
Comment on attachment 246687 [details]
Patch

r=me
Comment 3 Chris Dumez 2015-02-16 15:14:39 PST
Comment on attachment 246687 [details]
Patch

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

r=me % nits.

> Source/WebCore/rendering/RenderTableRow.h:46
> +    RenderTable* table() const

Now that this is no longer a one-liner, we may want to move it outside the class and mark it as inline.

> Source/WebCore/rendering/RenderTableRow.h:121
> +    RenderTableSection* section() const { return downcast<RenderTableSection>(parent()); }

Even though they are no outside callers now, I could imagine this getter being useful. Why not keep it public?
Comment 4 Chris Dumez 2015-02-16 15:15:10 PST
Andreas beat me to it :)
Comment 5 zalan 2015-02-16 15:32:55 PST
(In reply to comment #3)
> Comment on attachment 246687 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=246687&action=review
> 
> r=me % nits.
> 
> > Source/WebCore/rendering/RenderTableRow.h:46
> > +    RenderTable* table() const
> 
> Now that this is no longer a one-liner, we may want to move it outside the
> class and mark it as inline.
> 
Sure.

> > Source/WebCore/rendering/RenderTableRow.h:121
> > +    RenderTableSection* section() const { return downcast<RenderTableSection>(parent()); }
> 
> Even though they are no outside callers now, I could imagine this getter
> being useful. Why not keep it public?
I prefer the not public until required policy.
Comment 6 zalan 2015-02-16 15:37:24 PST
Created attachment 246690 [details]
Patch
Comment 7 zalan 2015-02-16 15:50:21 PST
Created attachment 246692 [details]
Patch
Comment 8 WebKit Commit Bot 2015-02-16 17:02:27 PST
Comment on attachment 246692 [details]
Patch

Clearing flags on attachment: 246692

Committed r180190: <http://trac.webkit.org/changeset/180190>
Comment 9 WebKit Commit Bot 2015-02-16 17:02:34 PST
All reviewed patches have been landed.  Closing bug.