summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_clippath.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-08-29 14:26:57 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-29 14:26:57 -0700
commit596014357f7cd9ee3245ba8ed52cbc5761151727 (patch)
treedc03386fe63a4d9d7484418c10c18f20fb1708f0 /core/fpdfapi/fpdf_page/cpdf_clippath.cpp
parentadbd32950006075fc04ff2cbb01bf3a099f0e010 (diff)
downloadpdfium-596014357f7cd9ee3245ba8ed52cbc5761151727.tar.xz
Revert "Replace wrapper methods in CPDF_Path with -> operator."
This reverts commit d09a09751f724ecdb1a0bc307447a3d0c212ebff. TBR=dsinclair@chromium.org Review-Url: https://codereview.chromium.org/2291833002
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_clippath.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_clippath.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_clippath.cpp b/core/fpdfapi/fpdf_page/cpdf_clippath.cpp
index 51f3086c12..2c05df0d19 100644
--- a/core/fpdfapi/fpdf_page/cpdf_clippath.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_clippath.cpp
@@ -38,9 +38,9 @@ CFX_FloatRect CPDF_ClipPath::GetClipBox() const {
FX_BOOL bStarted = FALSE;
int count = GetPathCount();
if (count) {
- rect = GetPath(0)->GetBoundingBox();
+ rect = GetPath(0).GetBoundingBox();
for (int i = 1; i < count; i++) {
- CFX_FloatRect path_rect = GetPath(i)->GetBoundingBox();
+ CFX_FloatRect path_rect = GetPath(i).GetBoundingBox();
rect.Intersect(path_rect);
}
bStarted = TRUE;
@@ -77,10 +77,10 @@ void CPDF_ClipPath::AppendPath(CPDF_Path path, uint8_t type, bool bAutoMerge) {
CPDF_ClipPathData* pData = GetObject();
if (!pData->m_PathAndTypeList.empty() && bAutoMerge) {
const CPDF_Path& old_path = pData->m_PathAndTypeList.back().first;
- if (old_path->IsRect()) {
- CFX_FloatRect old_rect(old_path->GetPointX(0), old_path->GetPointY(0),
- old_path->GetPointX(2), old_path->GetPointY(2));
- CFX_FloatRect new_rect = path->GetBoundingBox();
+ if (old_path.IsRect()) {
+ CFX_FloatRect old_rect(old_path.GetPointX(0), old_path.GetPointY(0),
+ old_path.GetPointX(2), old_path.GetPointY(2));
+ CFX_FloatRect new_rect = path.GetBoundingBox();
if (old_rect.Contains(new_rect))
pData->m_PathAndTypeList.pop_back();
}