Add lookup flag validation check.

Checks existence of Glyph class definition table in GDEF table if bits of lookup flags which require the table are set.

BUG=76943
TEST=test/layout_common_table_test.cc



git-svn-id: http://ots.googlecode.com/svn/trunk@59 a4e77c2c-9104-11de-800e-5b313e0d2bf3
diff --git a/src/gdef.h b/src/gdef.h
index f896e0d..f46f419 100644
--- a/src/gdef.h
+++ b/src/gdef.h
@@ -12,6 +12,7 @@
 struct OpenTypeGDEF {
   OpenTypeGDEF()
       : version_2(false),
+        has_glyph_class_def(false),
         has_mark_attachment_class_def(false),
         has_mark_glyph_sets_def(false),
         num_mark_glyph_sets(0),
@@ -20,6 +21,7 @@
   }
 
   bool version_2;
+  bool has_glyph_class_def;
   bool has_mark_attachment_class_def;
   bool has_mark_glyph_sets_def;
   uint16_t num_mark_glyph_sets;