Merge to XFA: Refactor some common code for bounding boxes.

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1373333002 .

(cherry picked from commit 721f003bcb6a3631571bd8f046bc90bcb6def13a)

Review URL: https://codereview.chromium.org/1376033002 .
1 file changed