There is API to give a WKView a header, and we need a new layout milestone to notify bundle clients when that header has been flushed. <rdar://problem/13657284>
Created attachment 198444 [details] Patch
Comment on attachment 198444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=198444&action=review > Source/WebCore/rendering/RenderLayerCompositor.cpp:382 > + if (page->layoutMilestones() & DidFirstFlushForHeaderLayer) { Maybe we can rename Page::layoutMilestones() to Page::requestedLayoutMilestones() in a future patch to make its role clearer. > Source/WebKit2/Shared/API/c/WKPageLoadTypes.h:55 > + // Note that this enum has a fourth, private member that is defined in WKPageLoadTypesPrivate.h I think it would be better to add kWKReserved1 = 1 << 3 or something, so that future changes are less likely to break things.
(In reply to comment #2) > (From update of attachment 198444 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=198444&action=review > > > Source/WebCore/rendering/RenderLayerCompositor.cpp:382 > > + if (page->layoutMilestones() & DidFirstFlushForHeaderLayer) { > > Maybe we can rename Page::layoutMilestones() to Page::requestedLayoutMilestones() in a future patch to make its role clearer. > Good idea. Will do. > > Source/WebKit2/Shared/API/c/WKPageLoadTypes.h:55 > > + // Note that this enum has a fourth, private member that is defined in WKPageLoadTypesPrivate.h > > I think it would be better to add > kWKReserved1 = 1 << 3 or something, so that future changes are less likely to break things. Changed this! http://trac.webkit.org/changeset/148564