function normalizeRectangle(textRect, leftOffset, topOffset) {

        var plainRectObject = {
            left: textRect.left,
            right: textRect.right,
            top: textRect.top,
            bottom: textRect.bottom,
            width: textRect.right - textRect.left,
            height: textRect.bottom - textRect.top
        };
        offsetRectangle(plainRectObject, leftOffset, topOffset);
        return plainRectObject;
    }
@private
Converts TextRectangle object into a plain object,
taking content offsets (=scrolls, position shifts etc.) into account

@param {TextRectangle} textRect
@param {number} leftOffset
@param {number} topOffset
@returns {Object}