Bug 1079692 --  [Flame][Woodduck][Free Test][Video] Make video title tru...

...ncation process more efficient
Yes, clientHeight includes padding so even though there is currently no padding on the thumbnail title node, the code will break if padding is added to the css. Thanks for pointing this out. I have refactored the code to determine the line height, using getComputedStyle to get the padding (top and bottom). Some of the refactoring was unrelated to this problem, for example, to move variables to where they were used and to initialize them when declared and to rename variables such that they are more appropriate.