Bug 98313 - ScrollingStateNode should keep a Vector of children instead of child pointers
Summary: ScrollingStateNode should keep a Vector of children instead of child pointers
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: Beth Dakin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 15:52 PDT by Beth Dakin
Modified: 2013-02-15 03:02 PST (History)
6 users (show)

See Also:


Attachments
Patch (10.85 KB, patch)
2012-10-03 16:02 PDT, Beth Dakin
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2012-10-03 15:52:49 PDT
ScrollingStateNode was added with https://bugs.webkit.org/show_bug.cgi?id=97365 We can vastly simplify that class by making each node have a Vector of children instead of of keeping child and sibling pointers.
Comment 1 Beth Dakin 2012-10-03 16:02:44 PDT
Created attachment 166983 [details]
Patch
Comment 2 Simon Fraser (smfr) 2012-10-03 16:12:17 PDT
Comment on attachment 166983 [details]
Patch

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

> Source/WebCore/ChangeLog:17
> +        (WebCore):

(WebCore):

> Source/WebCore/page/scrolling/ScrollingStateNode.h:81
> +    Vector<OwnPtr<ScrollingStateNode> > m_children;

Maybe use a Vector* since many nodes won't have children.
Comment 3 Beth Dakin 2012-10-03 16:36:26 PDT
(In reply to comment #2)
> (From update of attachment 166983 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=166983&action=review
> 
> > Source/WebCore/ChangeLog:17
> > +        (WebCore):
> 
> (WebCore):
> 
> > Source/WebCore/page/scrolling/ScrollingStateNode.h:81
> > +    Vector<OwnPtr<ScrollingStateNode> > m_children;
> 
> Maybe use a Vector* since many nodes won't have children.

Thanks Simon! I took care of both. http://trac.webkit.org/changeset/130342
Comment 4 Rafael Brandao 2013-02-15 03:02:24 PST
I believe this bug is fixed. Closing it.