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