Bug 113743

Summary: Viewport constrained elements should work properly with headers and footers
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: Layout and RenderingAssignee: Beth Dakin <bdakin>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, cmarcelo, jamesr, luiz, sam, simon.fraser, thorton, tonikitoo, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch simon.fraser: review+

Beth Dakin
Reported 2013-04-01 21:14:10 PDT
http://trac.webkit.org/changeset/147039 provided API to allow a WebView to have a header and/or footer. position:fixed elements need to work correctly in this mode. <rdar://problem/13522402>
Attachments
Patch (22.96 KB, patch)
2013-04-01 21:25 PDT, Beth Dakin
simon.fraser: review+
Beth Dakin
Comment 1 2013-04-01 21:25:10 PDT
Simon Fraser (smfr)
Comment 2 2013-04-01 22:15:02 PDT
Comment on attachment 196068 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=196068&action=review > Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:112 > + unsigned headerHeight() const { return m_headerHeight; } int return. > Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:115 > + unsigned footerHeight() const { return m_footerHeight; } Ditto. > Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h:161 > + unsigned m_headerHeight; > + unsigned m_footerHeight; int? > Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.h:77 > + unsigned headerHeight() const { return m_headerHeight; } > + unsigned footerHeight() const { return m_footerHeight; } ints > Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.h:98 > + unsigned m_headerHeight; > + unsigned m_footerHeight; ints > Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.h:119 > + unsigned headerHeight; > + unsigned footerHeight; ints > LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html:5 > + <meta name="apple-mobile-web-app-capable" content="yes"> Remove this. > LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html:47 > + <script type="text/javascript" charset="utf-8"> No need for the attributes.
Beth Dakin
Comment 3 2013-04-02 11:24:37 PDT
Thanks, Simon! I fixed the errors you found. http://trac.webkit.org/changeset/147471
Note You need to log in before you can comment on or make changes to this bug.