Use the C++ classes instead.
Created attachment 164146 [details] Patch
Comment on attachment 164146 [details] Patch Looks good to me
Comment on attachment 164146 [details] Patch OK.
Committed r131733: <http://trac.webkit.org/changeset/131733>