Support font color with Text.StyledText in SceneGraph
Support font color with Text.StyledText in SceneGraph

When Text.StyledText is set as format, QML will use a QTextLayout
back-end with additional formats to render styled text, supporting
a few HTML tags. To support color changes using this format, we
need to process the additional formats in the text node. The code
that fetches glyph runs is now separated into its own function and
is called once per color-changing format if any such exist.

Task-number: QTBUG-21199
Change-Id: Ib9b0cbec8d23de2dfafae9f641a2e3f7819c6a7a
Reviewed-on: http://codereview.qt.nokia.com/3982
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Jiang Jiang <594d7d250b9ab2285e8b7bb5d68542d53c50c753@nokia.com>

corngood/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,jfaust/qtdeclarative,jfaust/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative