pseudos. Move some utility functions into nsLayoutUtils; simplify some places that basically had copies of those functions. Improves perf a bit in bug 145425 and its dependencies, r+sr=roc+moz git-svn-id: svn://10.0.0.236/trunk@141541 18797224-902f-48f8-a5cc-f745e15eee43