Bug 52309

Summary: Expose fixed layout through WebKit SPI
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: WebKit APIAssignee: Beth Dakin <bdakin>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, mitz, sam, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch that fixes style-bot errors
none
Patch that stores WebPageCreationParameters
andersca: review+
Getters! andersca: review+

Description Beth Dakin 2011-01-12 10:45:28 PST
We need a way to expose opting into fixed layout in the WebKit SPI. 

<rdar://problem/8844464>
Comment 1 Beth Dakin 2011-01-12 10:57:25 PST
Created attachment 78707 [details]
Patch
Comment 2 WebKit Review Bot 2011-01-12 10:59:33 PST
Attachment 78707 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

WebKit2/WebProcess/WebPage/WebPage.h:196:  The parameter name "size" adds no information, so it should be removed.  [readability/parameter_name] [5]
WebKit2/UIProcess/WebPageProxy.h:245:  The parameter name "fixed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WebKit2/UIProcess/WebPageProxy.h:246:  The parameter name "size" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 3 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Beth Dakin 2011-01-12 11:06:54 PST
Created attachment 78710 [details]
Patch that fixes style-bot errors
Comment 4 mitz 2011-01-12 11:10:13 PST
Comment on attachment 78710 [details]
Patch that fixes style-bot errors

I wonder if we aren’t supposed to keep those values on the UI side so that we can reestablish them after a web process crash, like we do with some of the other WKPage state. Perhaps Sam/Anders can weigh in.
Comment 5 Beth Dakin 2011-01-12 12:27:59 PST
Created attachment 78724 [details]
Patch that stores WebPageCreationParameters
Comment 6 Anders Carlsson 2011-01-12 12:31:36 PST
Comment on attachment 78724 [details]
Patch that stores WebPageCreationParameters

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

> WebKit2/UIProcess/WebPageProxy.cpp:108
> +    , m_fixedLayoutSize(IntSize())

No need to initialize m_fixedLayoutSize here.
Comment 7 Beth Dakin 2011-01-12 13:11:58 PST
Fixed with revision 75635.
Comment 8 Beth Dakin 2011-01-12 17:23:52 PST
We decided we need getters too! I will post a patch to add getters in a moment.
Comment 9 Beth Dakin 2011-01-12 17:25:31 PST
Created attachment 78763 [details]
Getters!
Comment 10 Beth Dakin 2011-01-12 17:34:55 PST
Thanks Anders! r75662