blob: 7912283a60c01a878c834d3e44b6da1b35d67a63 [file] [log] [blame]
#include "SkPdfDeviceNColorSpaceDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
SkPdfDictionary* SkPdfDeviceNColorSpaceDictionary::Colorants(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Colorants", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
bool SkPdfDeviceNColorSpaceDictionary::has_Colorants() const {
return get("Colorants", "") != NULL;
}