RESOLVED FIXED 106601
Clamp TileCache visibleRect to WKView's visibleRect
https://bugs.webkit.org/show_bug.cgi?id=106601
Summary Clamp TileCache visibleRect to WKView's visibleRect
Tim Horton
Reported 2013-01-10 14:11:50 PST
In the case where we have a very large WKView which is mostly clipped, we create tons of tiles (covering the whole view!). We should only make tiles in the visible area. Part of <rdar://problem/12843164>.
Attachments
take one (28.55 KB, patch)
2013-01-15 12:40 PST, Tim Horton
no flags
preemptive style fix (28.52 KB, patch)
2013-01-15 12:42 PST, Tim Horton
webkit-ews: commit-queue-
patch (28.05 KB, patch)
2013-01-15 13:33 PST, Tim Horton
no flags
patch after talking to smfr (30.53 KB, patch)
2013-01-15 17:13 PST, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2013-01-15 12:40:03 PST
Created attachment 182827 [details] take one
WebKit Review Bot
Comment 2 2013-01-15 12:42:37 PST
Attachment 182827 [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 Source/WebKit2/WebProcess/WebPage/WebPage.h:723: The parameter name "isScrollable" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/UIProcess/WebPageProxy.h:392: The parameter name "isScrollable" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3 2013-01-15 12:42:39 PST
Created attachment 182828 [details] preemptive style fix
Early Warning System Bot
Comment 4 2013-01-15 12:53:15 PST
Comment on attachment 182828 [details] preemptive style fix Attachment 182828 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/15908017
Tim Horton
Comment 5 2013-01-15 13:33:56 PST
Tim Horton
Comment 6 2013-01-15 17:13:16 PST
Created attachment 182880 [details] patch after talking to smfr
WebKit Review Bot
Comment 7 2013-01-15 17:16:30 PST
Attachment 182880 [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 Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h:54: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 8 2013-01-15 17:28:43 PST
Comment on attachment 182880 [details] patch after talking to smfr View in context: https://bugs.webkit.org/attachment.cgi?id=182880&action=review > Source/WebCore/platform/graphics/ca/mac/TileCache.h:173 > + IntRect m_exposedRect; A comment to say what this is would be nice. > Source/WebCore/platform/graphics/ca/mac/TileCache.mm:418 > + IntRect intersectedVisibleRect = m_visibleRect; I think it would be fine to call this visibleRect. > Source/WebKit2/UIProcess/API/mac/WKView.mm:213 > + BOOL _expandsToFitContent; Maybe this should contain 'autoLayout' in the words. > Source/WebKit2/UIProcess/API/mac/WKView.mm:3100 > + _data->_page->setMinimumLayoutWidth(expandsToFit ? minimumLayoutWidth : 0); Isn't this the same as _data->_page->setMinimumLayoutWidth(minimumLayoutWidth); ? > Source/WebKit2/WebProcess/WebPage/WebPage.h:607 > + bool mainFrameIsScrollable() { return m_mainFrameIsScrollable; } const > Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:347 > + m_exposedRect = exposedRect; > + mainFrameTiledBacking()->setExposedRect(exposedRect); Shouldn't this map through the scroll offset?
Tim Horton
Comment 9 2013-01-15 18:53:12 PST
Note You need to log in before you can comment on or make changes to this bug.