summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_page.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-05-26 10:33:45 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-26 17:46:09 +0000
commitd9281818c09a628668202558fbd1b79f39a98e4c (patch)
tree30ad53d4d4ee89cc68be498870293b4cda5b2f17 /core/fpdfapi/page/cpdf_page.h
parent05f3359d0e74f6450c3f8d6e9a7b854ba2d35ac8 (diff)
downloadpdfium-d9281818c09a628668202558fbd1b79f39a98e4c.tar.xz
Simplify CPDF_Page ctor.
Add a GetBox() helper method. Change-Id: I171b2e6714b6c001fad60baa0d4dff2f3c3c978f Reviewed-on: https://pdfium-review.googlesource.com/6011 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_page.h')
-rw-r--r--core/fpdfapi/page/cpdf_page.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_page.h b/core/fpdfapi/page/cpdf_page.h
index b0dfa26124..77cc793d81 100644
--- a/core/fpdfapi/page/cpdf_page.h
+++ b/core/fpdfapi/page/cpdf_page.h
@@ -57,7 +57,6 @@ class CPDF_Page : public CPDF_PageObjectHolder {
CFX_FloatRect GetPageBBox() const { return m_BBox; }
const CFX_Matrix& GetPageMatrix() const { return m_PageMatrix; }
int GetPageRotation() const;
- CPDF_Object* GetPageAttr(const CFX_ByteString& name) const;
CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender.get(); }
CPDF_PageRenderContext* GetRenderContext() const {
@@ -71,9 +70,12 @@ class CPDF_Page : public CPDF_PageObjectHolder {
std::map<GraphicsData, CFX_ByteString> m_GraphicsMap;
std::map<FontData, CFX_ByteString> m_FontsMap;
- protected:
+ private:
void StartParse();
+ CPDF_Object* GetPageAttr(const CFX_ByteString& name) const;
+ CFX_FloatRect GetBox(const CFX_ByteString& name) const;
+
float m_PageWidth;
float m_PageHeight;
CFX_Matrix m_PageMatrix;