RESOLVED FIXED131141
[iOS][WK2] Add SPI to handle animated resize
https://bugs.webkit.org/show_bug.cgi?id=131141
Summary [iOS][WK2] Add SPI to handle animated resize
Benjamin Poulain
Reported 2014-04-02 18:35:16 PDT
[iOS][WK2] Add SPI to handle animated resize
Attachments
Patch (6.31 KB, patch)
2014-04-02 18:36 PDT, Benjamin Poulain
simon.fraser: review+
Benjamin Poulain
Comment 1 2014-04-02 18:36:29 PDT
Simon Fraser (smfr)
Comment 2 2014-04-03 14:12:15 PDT
Comment on attachment 228453 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228453&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:181 > + [self _frameOrBoundsChangedFrom:self.bounds]; This is a bit weird. Maybe from:CGZeroRect? > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:447 > + // FIXME: animated resize is gonna be a lot of fun. Some properties need to be updated live, others need to be stored > + // for the end of the animation. I don't think this comment is useful. > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:683 > + CGFloat oldWebViewWidhtInContentCoordinate = oldBounds.size.width / contentZoomScale(self); "Widht". Coordinates. > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:686 > + CGFloat visibleWebPageWidthInContentCoordinate = std::min([_contentView bounds].size.width, oldWebViewWidhtInContentCoordinate); > + CGFloat targetScale = bounds.size.width / visibleWebPageWidthInContentCoordinate; > + [_scrollView setZoomScale:targetScale]; I'm not really sure what you're trying to do here.
Tim Horton
Comment 3 2014-04-03 14:12:50 PDT
Comment on attachment 228453 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228453&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:683 > + CGFloat oldWebViewWidhtInContentCoordinate = oldBounds.size.width / contentZoomScale(self); typo "Widht" > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:684 > + CGFloat visibleWebPageWidthInContentCoordinate = std::min([_contentView bounds].size.width, oldWebViewWidhtInContentCoordinate); "WebPage"? > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1160 > + // FIXME: send a single message to the WebProcess to layout and repaint instead. capitals at the beginning of a sentence
Benjamin Poulain
Comment 4 2014-04-03 15:56:08 PDT
Note You need to log in before you can comment on or make changes to this bug.