Bug 77762

Summary: ScrollingTreeState should keep track of the scroll layer
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch kling: review+

Description Anders Carlsson 2012-02-03 12:15:45 PST
ScrollingTreeState should keep track of the scroll layer
Comment 1 Anders Carlsson 2012-02-03 12:17:11 PST
Created attachment 125381 [details]
Patch
Comment 2 Darin Adler 2012-02-03 12:20:35 PST
Comment on attachment 125381 [details]
Patch

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

> Source/WebCore/ChangeLog:3
> +        ScrollingTreeState should keep track of the scroll layer

Why?

> Source/WebCore/page/scrolling/mac/ScrollingTreeStateMac.mm:36
> +PlatformLayer* ScrollingTreeState::platformScrollLayer() const
> +{
> +    return m_platformScrollLayer.get();
> +}

Inline?
Comment 3 Anders Carlsson 2012-02-03 12:22:35 PST
Committed r106683: <http://trac.webkit.org/changeset/106683>
Comment 4 Anders Carlsson 2012-02-03 14:44:46 PST
(In reply to comment #2)
> (From update of attachment 125381 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=125381&action=review
> 
> > Source/WebCore/ChangeLog:3
> > +        ScrollingTreeState should keep track of the scroll layer
> 
> Why?

So it knows what to scroll! :-)

> 
> > Source/WebCore/page/scrolling/mac/ScrollingTreeStateMac.mm:36
> > +PlatformLayer* ScrollingTreeState::platformScrollLayer() const
> > +{
> > +    return m_platformScrollLayer.get();
> > +}
> 
> Inline?

I didn't want to end up with a bunch of different #ifdefs with different inline functions.