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

Side by Side Diff: core/fpdfapi/fpdf_render/fpdf_render_text.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/fpdfapi/fpdf_render/fpdf_render_pattern.cpp ('k') | core/fpdfdoc/cpdf_annotlist.cpp » ('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 "core/fpdfapi/fpdf_render/render_int.h" 7 #include "core/fpdfapi/fpdf_render/render_int.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 pType3Char->m_pForm->m_Transparency, m_bDropObjects, 439 pType3Char->m_pForm->m_Transparency, m_bDropObjects,
440 pFormResource, FALSE, pType3Char, fill_argb); 440 pFormResource, FALSE, pType3Char, fill_argb);
441 status.m_Type3FontCache.Append(m_Type3FontCache); 441 status.m_Type3FontCache.Append(m_Type3FontCache);
442 status.m_Type3FontCache.Add(pType3Font); 442 status.m_Type3FontCache.Add(pType3Font);
443 m_pDevice->SaveState(); 443 m_pDevice->SaveState();
444 status.RenderObjectList(pType3Char->m_pForm.get(), &matrix); 444 status.RenderObjectList(pType3Char->m_pForm.get(), &matrix);
445 m_pDevice->RestoreState(false); 445 m_pDevice->RestoreState(false);
446 } else { 446 } else {
447 CFX_FloatRect rect_f = pType3Char->m_pForm->CalcBoundingBox(); 447 CFX_FloatRect rect_f = pType3Char->m_pForm->CalcBoundingBox();
448 rect_f.Transform(&matrix); 448 rect_f.Transform(&matrix);
449 FX_RECT rect = rect_f.GetOutterRect(); 449 FX_RECT rect = rect_f.GetOuterRect();
450 CFX_FxgeDevice bitmap_device; 450 CFX_FxgeDevice bitmap_device;
451 if (!bitmap_device.Create((int)(rect.Width() * sa), 451 if (!bitmap_device.Create((int)(rect.Width() * sa),
452 (int)(rect.Height() * sd), FXDIB_Argb, 452 (int)(rect.Height() * sd), FXDIB_Argb,
453 nullptr)) { 453 nullptr)) {
454 return TRUE; 454 return TRUE;
455 } 455 }
456 bitmap_device.GetBitmap()->Clear(0); 456 bitmap_device.GetBitmap()->Clear(0);
457 CPDF_RenderStatus status; 457 CPDF_RenderStatus status;
458 status.Initialize(m_pContext, &bitmap_device, nullptr, nullptr, this, 458 status.Initialize(m_pContext, &bitmap_device, nullptr, nullptr, this,
459 pStates, &Options, 459 pStates, &Options,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX, 787 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX,
788 charpos.m_OriginY); 788 charpos.m_OriginY);
789 path.m_Path.New()->Append(pPath, &matrix); 789 path.m_Path.New()->Append(pPath, &matrix);
790 path.m_Matrix = *pTextMatrix; 790 path.m_Matrix = *pTextMatrix;
791 path.m_bStroke = bStroke; 791 path.m_bStroke = bStroke;
792 path.m_FillType = bFill ? FXFILL_WINDING : 0; 792 path.m_FillType = bFill ? FXFILL_WINDING : 0;
793 path.CalcBoundingBox(); 793 path.CalcBoundingBox();
794 ProcessPath(&path, pObj2Device); 794 ProcessPath(&path, pObj2Device);
795 } 795 }
796 } 796 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp ('k') | core/fpdfdoc/cpdf_annotlist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698