RESOLVED FIXED 157784
Update RenderBlockFlow::adjustComputedFontSizes() to use RenderObjectTraversal
https://bugs.webkit.org/show_bug.cgi?id=157784
Summary Update RenderBlockFlow::adjustComputedFontSizes() to use RenderObjectTraversal
Chris Dumez
Reported 2016-05-16 20:43:20 PDT
Clean up / optimize RenderBlockFlow::adjustComputedFontSizes().
Attachments
Patch (28.41 KB, patch)
2016-05-16 20:51 PDT, Chris Dumez
no flags
Patch (11.89 KB, patch)
2016-05-16 21:12 PDT, Chris Dumez
no flags
Archive of layout-test-results from ews101 for mac-yosemite (957.18 KB, application/zip)
2016-05-16 22:14 PDT, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-yosemite (1.63 MB, application/zip)
2016-05-16 22:15 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.25 MB, application/zip)
2016-05-16 22:57 PDT, Build Bot
no flags
Patch (12.79 KB, patch)
2016-05-17 12:26 PDT, Chris Dumez
no flags
Patch (12.57 KB, patch)
2016-05-17 12:27 PDT, Chris Dumez
no flags
Patch (12.56 KB, patch)
2016-05-19 11:38 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-05-16 20:51:40 PDT
zalan
Comment 2 2016-05-16 20:54:13 PDT
Do you mind decoupling the iterator from the optimization? -I wouldn't want to rollout the iterator, in case the optimization causes regression.
Chris Dumez
Comment 3 2016-05-16 20:57:35 PDT
(In reply to comment #2) > Do you mind decoupling the iterator from the optimization? -I wouldn't want > to rollout the iterator, in case the optimization causes regression. Hmm, so you'd want me to land the RenderDescendantIterator first without any call site? The change to RenderBlockFlow::adjustComputedFontSizes() is pretty trivial with the iterator.
Chris Dumez
Comment 4 2016-05-16 21:03:22 PDT
(In reply to comment #2) > Do you mind decoupling the iterator from the optimization? -I wouldn't want > to rollout the iterator, in case the optimization causes regression. Done in https://bugs.webkit.org/show_bug.cgi?id=157785. I will rebaseline this patch when the other when lands.
Chris Dumez
Comment 5 2016-05-16 21:12:00 PDT
Build Bot
Comment 6 2016-05-16 22:14:50 PDT
Comment on attachment 279099 [details] Patch Attachment 279099 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1334593 New failing tests: fast/text-autosizing/ios/lists.html
Build Bot
Comment 7 2016-05-16 22:14:54 PDT
Created attachment 279103 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 8 2016-05-16 22:14:56 PDT
Comment on attachment 279099 [details] Patch Attachment 279099 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1334550 New failing tests: fast/text-autosizing/ios/lists.html
Build Bot
Comment 9 2016-05-16 22:15:00 PDT
Created attachment 279104 [details] Archive of layout-test-results from ews112 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-yosemite Platform: Mac OS X 10.10.5
Chris Dumez
Comment 10 2016-05-16 22:17:24 PDT
Comment on attachment 279099 [details] Patch Looks like this broke something. I'll take a look tomorrow.
Simon Fraser (smfr)
Comment 11 2016-05-16 22:51:23 PDT
It's a good thing I enabled autosizing on Mac for testing and landed tests.
Build Bot
Comment 12 2016-05-16 22:57:34 PDT
Comment on attachment 279099 [details] Patch Attachment 279099 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1334752 New failing tests: fast/text-autosizing/ios/lists.html
Build Bot
Comment 13 2016-05-16 22:57:38 PDT
Created attachment 279105 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Chris Dumez
Comment 14 2016-05-17 07:25:30 PDT
(In reply to comment #11) > It's a good thing I enabled autosizing on Mac for testing and landed tests. Definitely:)
Chris Dumez
Comment 15 2016-05-17 12:26:43 PDT
Chris Dumez
Comment 16 2016-05-17 12:27:21 PDT
Chris Dumez
Comment 17 2016-05-17 12:29:10 PDT
Comment on attachment 279148 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=279148&action=review > Source/WebCore/rendering/RenderBlockFlow.cpp:3792 > + descendant = RenderObjectTraversal::nextSkippingChildren(*descendant, this); As it turns out, the previous implementation was skipping children in this case, which is why the previous patch failed some tests. > Source/WebCore/rendering/RenderBlockFlow.cpp:3819 > + descendant = RenderObjectTraversal::nextSkippingChildren(text, this); Here, it is safe to call nextSkippingChildren() instead of next() because RenderText cannot have children.
WebKit Commit Bot
Comment 18 2016-05-19 10:41:15 PDT
Comment on attachment 279148 [details] Patch Rejecting attachment 279148 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 279148, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: f 3 hunks FAILED -- saving rejects to file Source/WebCore/rendering/RenderBlockFlow.cpp.rej patching file Source/WebCore/rendering/RenderIterator.h patching file Source/WebCore/rendering/RenderObject.cpp Hunk #1 succeeded at 298 (offset 4 lines). Hunk #2 succeeded at 347 (offset 4 lines). patching file Source/WebCore/rendering/RenderObject.h Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Zalan Bujtas']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.webkit.org/results/1349029
Chris Dumez
Comment 19 2016-05-19 11:38:27 PDT
WebKit Commit Bot
Comment 20 2016-05-19 12:08:41 PDT
Comment on attachment 279406 [details] Patch Clearing flags on attachment: 279406 Committed r201174: <http://trac.webkit.org/changeset/201174>
WebKit Commit Bot
Comment 21 2016-05-19 12:08:47 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.