diff options
author | tsepez <tsepez@chromium.org> | 2016-08-29 10:24:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-29 10:24:19 -0700 |
commit | d09a09751f724ecdb1a0bc307447a3d0c212ebff (patch) | |
tree | 917a2986be9769a6bfaf8ac4cc96a8a4006eed82 /core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp | |
parent | a032f7f79c67ddef4db0f44fca8f0d245bfb8e82 (diff) | |
download | pdfium-d09a09751f724ecdb1a0bc307447a3d0c212ebff.tar.xz |
Replace wrapper methods in CPDF_Path with -> operator.
These just invoked exaclty the same methodes in the underlying
xxxData class, which we can now do with just a ->()
Move some methods to the xxxData class, where they belong.
In doing so, put MakePrivateCopy() calls at each callsite
for those methods that made a copy.
Review-Url: https://codereview.chromium.org/2286983002
Diffstat (limited to 'core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp b/core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp index 1b37862e99..e19c9a4a61 100644 --- a/core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp +++ b/core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp @@ -689,8 +689,8 @@ void CPDF_ContentParser::Start(CPDF_Form* pForm, if (pBBox) { form_bbox = pBBox->GetRect(); ClipPath.New(); - ClipPath.AppendRect(form_bbox.left, form_bbox.bottom, form_bbox.right, - form_bbox.top); + ClipPath->AppendRect(form_bbox.left, form_bbox.bottom, form_bbox.right, + form_bbox.top); ClipPath.Transform(&form_matrix); if (pParentMatrix) { ClipPath.Transform(pParentMatrix); @@ -808,10 +808,10 @@ void CPDF_ContentParser::Continue(IFX_Pause* pPause) { if (pObj->m_ClipPath.GetTextCount()) continue; CPDF_Path ClipPath = pObj->m_ClipPath.GetPath(0); - if (!ClipPath.IsRect() || pObj->IsShading()) + if (!ClipPath->IsRect() || pObj->IsShading()) continue; - CFX_FloatRect old_rect(ClipPath.GetPointX(0), ClipPath.GetPointY(0), - ClipPath.GetPointX(2), ClipPath.GetPointY(2)); + CFX_FloatRect old_rect(ClipPath->GetPointX(0), ClipPath->GetPointY(0), + ClipPath->GetPointX(2), ClipPath->GetPointY(2)); CFX_FloatRect obj_rect(pObj->m_Left, pObj->m_Bottom, pObj->m_Right, pObj->m_Top); if (old_rect.Contains(obj_rect)) |