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

Side by Side Diff: xfa/fxfa/app/xfa_textlayout.cpp

Issue 2007443003: Replace CFX_DSPATemplate with std::binary_search. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 | « xfa/fgas/crt/fgas_algorithm.h ('k') | xfa/fxfa/parser/xfa_basic_imp.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 "xfa/fxfa/app/xfa_textlayout.h" 7 #include "xfa/fxfa/app/xfa_textlayout.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fxcrt/include/fx_ext.h" 11 #include "core/fxcrt/include/fx_ext.h"
12 #include "xfa/fde/cfde_path.h" 12 #include "xfa/fde/cfde_path.h"
13 #include "xfa/fde/css/fde_csscache.h" 13 #include "xfa/fde/css/fde_csscache.h"
14 #include "xfa/fde/css/fde_cssstyleselector.h" 14 #include "xfa/fde/css/fde_cssstyleselector.h"
15 #include "xfa/fde/fde_gedevice.h" 15 #include "xfa/fde/fde_gedevice.h"
16 #include "xfa/fde/fde_object.h" 16 #include "xfa/fde/fde_object.h"
17 #include "xfa/fde/xml/fde_xml_imp.h" 17 #include "xfa/fde/xml/fde_xml_imp.h"
18 #include "xfa/fgas/crt/fgas_algorithm.h"
19 #include "xfa/fgas/crt/fgas_codepage.h" 18 #include "xfa/fgas/crt/fgas_codepage.h"
20 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" 19 #include "xfa/fxfa/app/xfa_ffwidgetacc.h"
21 #include "xfa/fxfa/include/xfa_ffapp.h" 20 #include "xfa/fxfa/include/xfa_ffapp.h"
22 #include "xfa/fxfa/include/xfa_ffdoc.h" 21 #include "xfa/fxfa/include/xfa_ffdoc.h"
23 #include "xfa/fxfa/include/xfa_fontmgr.h" 22 #include "xfa/fxfa/include/xfa_fontmgr.h"
24 23
25 void CXFA_TextParseContext::SetDecls(const CFDE_CSSDeclaration** ppDeclArray, 24 void CXFA_TextParseContext::SetDecls(const CFDE_CSSDeclaration** ppDeclArray,
26 int32_t iDeclCount) { 25 int32_t iDeclCount) {
27 if (iDeclCount <= 0 || !ppDeclArray) 26 if (iDeclCount <= 0 || !ppDeclArray)
28 return; 27 return;
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 tr.iLength = iLength; 1957 tr.iLength = iLength;
1959 tr.fFontSize = pPiece->fFontSize; 1958 tr.fFontSize = pPiece->fFontSize;
1960 tr.iBidiLevel = pPiece->iBidiLevel; 1959 tr.iBidiLevel = pPiece->iBidiLevel;
1961 tr.iCharRotation = 0; 1960 tr.iCharRotation = 0;
1962 tr.wLineBreakChar = L'\n'; 1961 tr.wLineBreakChar = L'\n';
1963 tr.iVerticalScale = pPiece->iVerScale; 1962 tr.iVerticalScale = pPiece->iVerScale;
1964 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; 1963 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab;
1965 tr.iHorizontalScale = pPiece->iHorScale; 1964 tr.iHorizontalScale = pPiece->iHorScale;
1966 return TRUE; 1965 return TRUE;
1967 } 1966 }
OLDNEW
« no previous file with comments | « xfa/fgas/crt/fgas_algorithm.h ('k') | xfa/fxfa/parser/xfa_basic_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698