Clean up virtual functions in dom/