Comment on attachment 519654[details][diff][review]
Patch
This review is a bit rubber-stamp-y but it looks good to me.
+ nsBidi* mBidiEngine;
nsAutoPtr
Some of the nsTArrays should probably be nsAutoTArray.