Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2374)

Unified Diff: experimental/PdfViewer/SkPdfInlineLevelStructureElementsDictionary_autogen.h

Issue 17395005: put each generated pdf api class in a file (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfInlineLevelStructureElementsDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfInlineLevelStructureElementsDictionary_autogen.h (revision 9669)
+++ experimental/PdfViewer/SkPdfInlineLevelStructureElementsDictionary_autogen.h (working copy)
@@ -7,8 +7,8 @@
class SkPdfInlineLevelStructureElementsDictionary : public SkPdfDictionary {
public:
- virtual SkPdfObjectType getType() const { return kObjectDictionaryInlineLevelStructureElementsDictionary_SkPdfObjectType;}
- virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectDictionaryInlineLevelStructureElementsDictionary_SkPdfObjectType + 1);}
+ virtual SkPdfObjectType getType() const { return kInlineLevelStructureElementsDictionary_SkPdfObjectType;}
+ virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kInlineLevelStructureElementsDictionary_SkPdfObjectType + 1);}
public:
virtual SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() {return this;}
virtual const SkPdfInlineLevelStructureElementsDictionary* asInlineLevelStructureElementsDictionary() const {return this;}
@@ -524,7 +524,7 @@
bool isLineHeightANumber() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LineHeight", "", &ret)) return false;
- return ret->podofo()->GetDataType() == ePdfDataType_Real;
+ return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
}
double getLineHeightAsNumber() const {
« no previous file with comments | « experimental/PdfViewer/SkPdfInkAnnotationDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfInteger_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698