Make it possible to adjust which edges are affected by safe area insets
Created attachment 310194 [details] Patch
Comment on attachment 310194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=310194&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:160 > @property (nonatomic, readonly) BOOL _safeAreaShouldAffectObscuredInsets WK_API_AVAILABLE(ios(WK_IOS_TBA)); > +@property (nonatomic, setter=_setObscuredInsetEdgesAffectedBySafeArea:) UIRectEdge _obscuredInsetEdgesAffectedBySafeArea WK_API_AVAILABLE(ios(WK_IOS_TBA)); Does it make sense to have both of these? Since you could just set _obscuredInsetEdgesAffectedBySafeArea to UIRectEdgeNone. Or does _safeAreaShouldAffectObscuredInsets do more than that?
(In reply to Sam Weinig from comment #2) > Comment on attachment 310194 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=310194&action=review > > > Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:160 > > @property (nonatomic, readonly) BOOL _safeAreaShouldAffectObscuredInsets WK_API_AVAILABLE(ios(WK_IOS_TBA)); > > +@property (nonatomic, setter=_setObscuredInsetEdgesAffectedBySafeArea:) UIRectEdge _obscuredInsetEdgesAffectedBySafeArea WK_API_AVAILABLE(ios(WK_IOS_TBA)); > > Does it make sense to have both of these? Since you could just set > _obscuredInsetEdgesAffectedBySafeArea to UIRectEdgeNone. Or does > _safeAreaShouldAffectObscuredInsets do more than that? Please note that _safeAreaShouldAffectObscuredInsets is read-only. It exposes the intent of the page, not of the API client.
http://trac.webkit.org/changeset/216935/webkit
(In reply to Tim Horton from comment #3) > (In reply to Sam Weinig from comment #2) > > Comment on attachment 310194 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=310194&action=review > > > > > Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:160 > > > @property (nonatomic, readonly) BOOL _safeAreaShouldAffectObscuredInsets WK_API_AVAILABLE(ios(WK_IOS_TBA)); > > > +@property (nonatomic, setter=_setObscuredInsetEdgesAffectedBySafeArea:) UIRectEdge _obscuredInsetEdgesAffectedBySafeArea WK_API_AVAILABLE(ios(WK_IOS_TBA)); > > > > Does it make sense to have both of these? Since you could just set > > _obscuredInsetEdgesAffectedBySafeArea to UIRectEdgeNone. Or does > > _safeAreaShouldAffectObscuredInsets do more than that? > > Please note that _safeAreaShouldAffectObscuredInsets is read-only. It > exposes the intent of the page, not of the API client. Ah. These are some tricky names to wrap ones head around :(.