RenderTreeUpdater::invalidateWhitespaceOnlyTextSiblingsAfterAttachIfNeeded is a pretty complex function for figuring out if some whitespace-only text node might need to have its rendering status recomputed. However actually computing if a text renderer is needed is not expensive. We can simply do it for all whitespace nodes.
Created attachment 324809 [details] patch
Created attachment 324812 [details] patch
Created attachment 324815 [details] patch
Created attachment 324818 [details] patch
Comment on attachment 324818 [details] patch Attachment 324818 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/4983393 New failing tests: http/tests/cache/iframe-304-crash.html fast/events/content-changed-during-drop.html svg/custom/svg-fonts-in-html.html http/tests/security/xss-DENIED-script-inject-into-inactive-window.html
Created attachment 324822 [details] Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 324818 [details] patch Attachment 324818 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4983361 New failing tests: http/tests/cache/iframe-304-crash.html imported/w3c/web-platform-tests/css/css-display-3/display-contents-state-change-001.html svg/custom/svg-fonts-in-html.html fast/events/content-changed-during-drop.html http/tests/security/xss-DENIED-script-inject-into-inactive-window.html
Created attachment 324823 [details] Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 324818 [details] patch Attachment 324818 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/4983425 New failing tests: http/tests/paymentrequest/payment-response-payerName-attribute.https.html http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html transforms/3d/point-mapping/3d-point-mapping-2.html fast/frames/iframe-option-crash.xhtml http/tests/paymentrequest/payment-response-complete-method.https.html http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html fast/dynamic/float-in-trailing-whitespace-after-last-line-break.html transforms/3d/point-mapping/3d-point-mapping-origins.html
Created attachment 324825 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Created attachment 324978 [details] patch
Comment on attachment 324978 [details] patch Attachment 324978 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/4997297 New failing tests: http/tests/security/xss-DENIED-script-inject-into-inactive-window.html
Created attachment 324994 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Comment on attachment 324978 [details] patch Attachment 324978 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4997654 New failing tests: http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm svg/custom/getscreenctm-in-mixed-content.xhtml svg/custom/svg-fonts-in-html.html http/tests/security/xss-DENIED-script-inject-into-inactive-window.html
Created attachment 324997 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 325015 [details] patch
Comment on attachment 325015 [details] patch Attachment 325015 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/4999501 New failing tests: fast/xmlhttprequest/xmlhttprequest-access-self-as-blob.html
Created attachment 325023 [details] Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 325015 [details] patch Clearing flags on attachment: 325015 Committed r224034: <https://trac.webkit.org/changeset/224034>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35568129>