use ContentRange arithmetics where possible

Signed-off-by: Florian Thienel <florian@thienel.org>
7 files changed