Document.h is included excessively such that a modification to Document.h (or any of the header it includes itself) triggers a rebuild of many files including the whole of SVG and a lot of the JS bindings.
Some of these includes can be avoided by only including Document.h where necessary.
Created attachment 23527 [details]
Remove includes (build speedup)
When landing this, need to keep an eye on the build bots as we might need to add one or two further explicit Document.h includes in port-specific code.
Landed in r36700.