Bug 51968 - WebKit2: Add APIs to WKBundleFrame to get content bounds and scroll offset
Summary: WebKit2: Add APIs to WKBundleFrame to get content bounds and scroll offset
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Jeff Miller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 16:25 PST by Jeff Miller
Modified: 2011-01-06 12:18 PST (History)
4 users (show)

See Also:


Attachments
Patch (2.98 KB, patch)
2011-01-05 16:32 PST, Jeff Miller
no flags Details | Formatted Diff | Diff
Patch to add APIs to WKBundleFrame to get content bounds and scroll offset (2.99 KB, patch)
2011-01-05 21:31 PST, Jeff Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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