Create a separate path for fetching lineLength
When we want line length via doc->lineLength() we only want the length. This avoids fetching the whole shared pointer along with the line length.
When we want line length via doc->lineLength() we only want the length. This avoids fetching the whole shared pointer along with the line length.