Detect when we transition away from display: contents when resolving computed styles and tear down child renderers in that case. To keep track of when to do this add a flag to Element.
Created attachment 462955 [details] Patch
Created attachment 462958 [details] Patch
Created attachment 462983 [details] Patch
Committed 255527@main (f6f2c95eb900): <https://commits.webkit.org/255527@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 462983 [details].
<rdar://problem/101166942>
Committed 252432.665@safari-7614-branch (c10d7be58084): <https://commits.webkit.org/252432.665@safari-7614-branch> Reviewed commits have been landed. Closing PR #158 and removing active labels.