Extensible Android font configuration parsing.
authorbungeman <bungeman@google.com>
Wed, 13 May 2015 15:52:16 +0000 (08:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 13 May 2015 15:52:16 +0000 (08:52 -0700)
commit10b063cb91c52fd1f570ee63307fe7e68c1501f1
tree69de01d7003287f166a62bfb4547a379a0aa0c0d
parent6c891107ce0a8431f2327cb8b2f1bfd363cabbbe
Extensible Android font configuration parsing.

The xml parsing of the Android font configuration is quite lax in what
it allows. This has lead to issues with forward compatibility and
extending the existing format. This has lead to some confusion about
what the actual format is and how a given proposed change will affect
existing files and readers.

The main issue this fixes is containment. Tags are now only recognized
at the correct levels in the correct containing tags. Tags which are
not recognized are properly skipped. Tags which accumulate character
data now only accumulate the character data in their own element as
opposed to all child elements.

Review URL: https://codereview.chromium.org/1138073002
src/ports/SkFontConfigParser_android.cpp