diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-15 14:51:42 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-15 14:51:42 -0700 |
commit | 86adb658843658969041a13bf6cf0cc950ffe8ed (patch) | |
tree | 374cd2cb1fa62dd95301d7a777c6e03bfbf8d780 /fpdfsdk/src/fpdf_ext.cpp | |
parent | bb51c4fb6bc6095984c303c95e5336f83e66bc67 (diff) | |
download | pdfium-86adb658843658969041a13bf6cf0cc950ffe8ed.tar.xz |
Fix layering violation in CPDF_Document::FromFPDFDocument().
Make this a function in the fpdfsdk/ layer, rather than a method
in the core/ layer. Nothing in core should know about public FPDF
types.
BUG=pdfium:217
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1396283006 .
Diffstat (limited to 'fpdfsdk/src/fpdf_ext.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_ext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp index 1cc1829914..c0391dfc14 100644 --- a/fpdfsdk/src/fpdf_ext.cpp +++ b/fpdfsdk/src/fpdf_ext.cpp @@ -183,7 +183,7 @@ void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code) { } DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) { - CPDF_Document* pDoc = CPDF_Document::FromFPDFDocument(document); + CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); if (!pDoc) return PAGEMODE_UNKNOWN; |