hterm: process inverse text attr after bold-as-bright & faint
hterm: process inverse text attr after bold-as-bright & faint

What the inverse/negative attr actually inverts is not clear.
ECMA-48 only documents SGR-7==negative image.  The vt100.net
site doesn't get into any more detail either that I can find.

xterm and gnome-terminal process bold-as-bright and faint before
inverting the fg/bg colors.  Since bold-as-bright is a feature
that xterm invented, we should at least behave the same as it
there.  By also delaying the swap until after faint, we can make
the code slightly simpler, so lets do that too.

Change-Id: I0ff1801e0b42bd742d0da784151af8afcca41320
Reviewed-on: https://chromium-review.googlesource.com/1227321
Reviewed-by: Vitaliy Shipitsyn <6f51537d61e46a00bf958b60dbef5b5870c2bf22@google.com>
Tested-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@chromium.org>

chromium/hterm,chromium/hterm,chromium/hterm,chromium/hterm