If cacheGlobalObject lives in the root namespace, it makes trouble.
The KJS_GCC_ROOT_NS_HACK was introduced to work around these troubles,
though it breaks with older gcc3 compilers, and it's just not worth.
We can just as well kill it, and fix it properly. That also makes
it possible to remove the friendship between cacheGlobalObject and
tons of generated JS wrapper classes.
Attaching a patch for this, which also fixes some strange
problems regarding to gcc3 and image-decoders/platform/png.
Created attachment 10862 [details]
A first try :-)
Created attachment 10863 [details]
Forgot the whitespace cleanup in kjs/lookup.h
Comment on attachment 10863 [details]
Looks fine. r=me. (mjs also looked).