When detaching children of DETAILS element, anonymous RenderBlock may be left. It was introduced to prevent crash in r81812, but actually it is not necessary now. It often keeps unnecessary anonymous RenderObjects, and causes unexpected text diff mismatch when tweaking content element.
Created attachment 124509 [details] Patch
With this patch, Bug 76262's patch will not fail the following tests. fast/html/details-replace-text.html fast/html/details-remove-child-1.html And you can see that this test's expectation has unnecessary RenderBlock (so unexpected text mismatch will occur). fast/html/details-remove-child-2.html I will fix them in Bug 76262.
Comment on attachment 124509 [details] Patch Good catch! Evil is between the lines...
Comment on attachment 124509 [details] Patch Clearing flags on attachment: 124509 Committed r106228: <http://trac.webkit.org/changeset/106228>
All reviewed patches have been landed. Closing bug.