remove some redundant rebuildLayout() calls
@Tavmjong as far as I can tell, these calls to rebuildLayout() and updateRepr() are redundant. E.g. typing one character currently triggers 4 calls to rebuildLayout() - with this patch it's only one. Typing, resizing, moving, and copy/pasting text all seems to behave correct.
I can't reproduce LP Bug 1339305.
Edited by Jonathan Neuhauser