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

Side by Side Diff: core/fxcrt/fx_basic_coords.cpp

Issue 2226003003: Fix typos of the word outer. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/cpdf_annotlist.cpp ('k') | core/fxcrt/include/fx_coordinates.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include "core/fxcrt/include/fx_coordinates.h" 9 #include "core/fxcrt/include/fx_coordinates.h"
10 #include "core/fxcrt/include/fx_ext.h" 10 #include "core/fxcrt/include/fx_ext.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 if (nRects == 0) { 144 if (nRects == 0) {
145 return 0; 145 return 0;
146 } 146 }
147 for (int i = 0; i < nRects; i++) { 147 for (int i = 0; i < nRects; i++) {
148 pRects[i] = rects[i]; 148 pRects[i] = rects[i];
149 pRects[i].Intersect(*this); 149 pRects[i].Intersect(*this);
150 } 150 }
151 return nRects; 151 return nRects;
152 } 152 }
153 FX_RECT CFX_FloatRect::GetOutterRect() const { 153 FX_RECT CFX_FloatRect::GetOuterRect() const {
154 CFX_FloatRect rect1 = *this; 154 CFX_FloatRect rect1 = *this;
155 FX_RECT rect; 155 FX_RECT rect;
156 rect.left = (int)FXSYS_floor(rect1.left); 156 rect.left = (int)FXSYS_floor(rect1.left);
157 rect.right = (int)FXSYS_ceil(rect1.right); 157 rect.right = (int)FXSYS_ceil(rect1.right);
158 rect.top = (int)FXSYS_floor(rect1.bottom); 158 rect.top = (int)FXSYS_floor(rect1.bottom);
159 rect.bottom = (int)FXSYS_ceil(rect1.top); 159 rect.bottom = (int)FXSYS_ceil(rect1.top);
160 rect.Normalize(); 160 rect.Normalize();
161 return rect; 161 return rect;
162 } 162 }
163 FX_RECT CFX_FloatRect::GetInnerRect() const { 163 FX_RECT CFX_FloatRect::GetInnerRect() const {
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 left = x[i]; 508 left = x[i];
509 } 509 }
510 if (top < y[i]) { 510 if (top < y[i]) {
511 top = y[i]; 511 top = y[i];
512 } 512 }
513 if (bottom > y[i]) { 513 if (bottom > y[i]) {
514 bottom = y[i]; 514 bottom = y[i];
515 } 515 }
516 } 516 }
517 } 517 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_annotlist.cpp ('k') | core/fxcrt/include/fx_coordinates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698