Bug 939049 - Part 2: Add generic ComputeLength code for backends with no such functionality. r=jrmuizel