Fix navigation generation so that the ul's nest correctly.

BUG=skia:

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