Some SVG functions have done a first iteration by using a boolean flag. This is one of poor implementations. This cl fix it by extracting a logic into a new method. Additionally it would be good to use do-while() loop instead of using while() in renderStyleForLengthResolving() because a first condition is always true.

BUG=N/A

Review URL: https://codereview.chromium.org/135913002

git-svn-id: svn://svn.chromium.org/blink/trunk@165358 bbb929c8-8fbe-4397-9dbb-9b2b20218538