In r40976 a change was made to speedup document.write from JS. With the change Document::write was effectively implemented in two places: in Document.cpp and in JSHTMLDocumentCustom.cpp. This patch refactors so that Document::write is the funnel method again, but keeps the speedup. Cheers, Adam
Created attachment 27664 [details] Refactor patch
I've also removed Document::pendingWrite since it is no longer needed with this patch.
Comment on attachment 27664 [details] Refactor patch Seems fine. r=me
Does this compile on all platforms?
I can only compile it on Qt, but I have compiled and tested and it works for Qt.
Landed with r40988.
I missed the fact that this leaves an extra if statement in Document::write. Currently it checks m_tokenizer for 0 twice in a row.
I'll remove that. Sorry.
Fixed with r40992.