Improve performance of DOMElement.

Signed-off-by: Grant Skinner <info@gskinner.com>
Added getBounds() support to Text.

Signed-off-by: Grant Skinner <info@gskinner.com>