more work on pdf fonts, more to come

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9813 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp b/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp
index d2ff1c9..29727db 100644
--- a/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp
+++ b/experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp
@@ -2565,6 +2565,7 @@
 
 bool isTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "TrueType")) return false;
 
@@ -3232,6 +3233,7 @@
 
 bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "Image")) return false;
 
@@ -3270,6 +3272,7 @@
 
 bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "Form")) return false;
 
@@ -3342,6 +3345,7 @@
 
 bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "MMType1") && (Subtype != "TrueType") && (Subtype != "Type3") && (Subtype != "Type1")) return false;
 
@@ -3363,6 +3367,7 @@
 
 bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "Type3")) return false;
 
@@ -3418,6 +3423,7 @@
 
 bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "CIDFontType0") && (Subtype != "CIDFontType2")) return false;
 
@@ -3456,6 +3462,7 @@
 
 bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "Type0")) return false;
 
@@ -3477,6 +3484,7 @@
 
 bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Type;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Type", "", &Type)) return false;
   if ((Type != "FontDescriptor")) return false;
 
@@ -5385,6 +5393,7 @@
 
 bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
   std::string Subtype;
+  if (!podofoObj.IsDictionary()) return false;
   if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
   if ((Subtype != "MMType1")) return false;