Bug 51968

Summary: WebKit2: Add APIs to WKBundleFrame to get content bounds and scroll offset
Product: WebKit Reporter: Jeff Miller <jeffm>
Component: WebKit2Assignee: Jeff Miller <jeffm>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch to add APIs to WKBundleFrame to get content bounds and scroll offset none

Description Jeff Miller 2011-01-05 16:25:39 PST
WebKit2: Add APIs to WKBundleFrame to get content bounds and scroll offset
Comment 1 Jeff Miller 2011-01-05 16:28:25 PST
This is to support the equivalent of IWebFramePrivate::contentBounds() and IWebFramePrivate::scrollOffset from WebKit1.
Comment 2 Jeff Miller 2011-01-05 16:32:21 PST
Created attachment 78061 [details]
Patch
Comment 3 Jeff Miller 2011-01-05 17:11:42 PST
Comment on attachment 78061 [details]
Patch

Obsoleting this patch, once https://bugs.webkit.org/show_bug.cgi?id=51970 lands I'll redo the patch to include the parameter names in the header.
Comment 4 Jeff Miller 2011-01-05 21:31:31 PST
Created attachment 78095 [details]
Patch to add APIs to WKBundleFrame to get content bounds and scroll offset
Comment 5 Darin Adler 2011-01-05 21:38:45 PST
Comment on attachment 78095 [details]
Patch to add APIs to WKBundleFrame to get content bounds and scroll offset

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

> WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:145
> +    WKRect contentBounds = { {0, 0}, {0, 0} };

We’d normally put four more spaces in there.
Comment 6 Jeff Miller 2011-01-05 21:43:26 PST
(In reply to comment #5)
> (From update of attachment 78095 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=78095&action=review
> 
> > WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:145
> > +    WKRect contentBounds = { {0, 0}, {0, 0} };
> 
> We’d normally put four more spaces in there.

Normally, I prefer contentBounds = { 0 }, which avoids any dependency on the internal structure of WKRect, but Sam said he did it this way.  Thanks for reviewing.
Comment 7 WebKit Commit Bot 2011-01-06 11:08:56 PST
Comment on attachment 78095 [details]
Patch to add APIs to WKBundleFrame to get content bounds and scroll offset

Clearing flags on attachment: 78095

Committed r75171: <http://trac.webkit.org/changeset/75171>
Comment 8 WebKit Commit Bot 2011-01-06 11:09:02 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 WebKit Review Bot 2011-01-06 12:18:00 PST
http://trac.webkit.org/changeset/75171 might have broken GTK Linux 32-bit Release