| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/cpdf_type3glyphs.h" | 7 #include "core/fpdfapi/render/cpdf_type3glyphs.h" |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "core/fxge/fx_font.h" | 11 #include "core/fxge/fx_font.h" |
| 12 | 12 |
| 13 CPDF_Type3Glyphs::CPDF_Type3Glyphs() | 13 CPDF_Type3Glyphs::CPDF_Type3Glyphs() |
| 14 : m_TopBlueCount(0), m_BottomBlueCount(0) {} | 14 : m_TopBlueCount(0), m_BottomBlueCount(0) {} |
| 15 | 15 |
| 16 CPDF_Type3Glyphs::~CPDF_Type3Glyphs() { | 16 CPDF_Type3Glyphs::~CPDF_Type3Glyphs() { |
| 17 for (const auto& pair : m_GlyphMap) | 17 for (const auto& pair : m_GlyphMap) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 return new_pos; | 37 return new_pos; |
| 38 } | 38 } |
| 39 | 39 |
| 40 void CPDF_Type3Glyphs::AdjustBlue(FX_FLOAT top, | 40 void CPDF_Type3Glyphs::AdjustBlue(FX_FLOAT top, |
| 41 FX_FLOAT bottom, | 41 FX_FLOAT bottom, |
| 42 int& top_line, | 42 int& top_line, |
| 43 int& bottom_line) { | 43 int& bottom_line) { |
| 44 top_line = _AdjustBlue(top, m_TopBlueCount, m_TopBlue); | 44 top_line = _AdjustBlue(top, m_TopBlueCount, m_TopBlue); |
| 45 bottom_line = _AdjustBlue(bottom, m_BottomBlueCount, m_BottomBlue); | 45 bottom_line = _AdjustBlue(bottom, m_BottomBlueCount, m_BottomBlue); |
| 46 } | 46 } |
| OLD | NEW |