The current createTextRenderersForSiblingsAfterAttachIfNeeded code only adds text renderers, never removes them. Style changes can however go either way.
Created attachment 210904 [details] patch
Created attachment 210906 [details] fix a few bad test result updates
Comment on attachment 210906 [details] fix a few bad test result updates View in context: https://bugs.webkit.org/attachment.cgi?id=210906&action=review > Source/WebCore/ChangeLog:8 > + The current createTextRenderersForSiblingsAfterAttachIfNeeded code only adds text renderers, never removes them. Style changes can go either way. Extra space before "go". > Source/WebCore/style/StyleResolveTree.cpp:305 > + bool hadRenderer = !!whitespaceTextSibling.renderer(); Do you really need the !! here? > LayoutTests/editing/selection/focus-crash-expected.txt:1 > -To run this test manually, click the "Crash me" button. > +To run this test manually, click the "Crash me" button. What's with this test? Looks like it adds whitespace? > LayoutTests/userscripts/user-script-all-frames-expected.txt:1 > +If any thingers appear on this page, the test has failed. Same here. > LayoutTests/userscripts/user-script-top-frame-only-expected.txt:1 > +Two thingers should appear on this page. Otherwise the test has failed. And here!
(In reply to comment #3) > What's with this test? Looks like it adds whitespace? Yeah. The new code is also less buggy to other direction. It found a few places where logic dictates we actually need a renderer but failed to create one before.
https://trac.webkit.org/r155253