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

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

Issue 1846083002: Remove CFX_{Byte,Wide}String::Equal in favor of "==". (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 8 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/fxfa/app/xfa_fontmgr.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.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
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 return pXMLContainer; 722 return pXMLContainer;
723 } 723 }
724 for (CFDE_XMLNode* pXMLChild = 724 for (CFDE_XMLNode* pXMLChild =
725 pXMLRoot->GetNodeItem(CFDE_XMLNode::FirstChild); 725 pXMLRoot->GetNodeItem(CFDE_XMLNode::FirstChild);
726 pXMLChild; 726 pXMLChild;
727 pXMLChild = pXMLChild->GetNodeItem(CFDE_XMLNode::NextSibling)) { 727 pXMLChild = pXMLChild->GetNodeItem(CFDE_XMLNode::NextSibling)) {
728 if (pXMLChild->GetType() == FDE_XMLNODE_Element) { 728 if (pXMLChild->GetType() == FDE_XMLNODE_Element) {
729 CFDE_XMLElement* pXMLElement = static_cast<CFDE_XMLElement*>(pXMLChild); 729 CFDE_XMLElement* pXMLElement = static_cast<CFDE_XMLElement*>(pXMLChild);
730 CFX_WideString wsTag; 730 CFX_WideString wsTag;
731 pXMLElement->GetLocalTagName(wsTag); 731 pXMLElement->GetLocalTagName(wsTag);
732 if (wsTag.Equal(FX_WSTRC(L"body")) || wsTag.Equal(FX_WSTRC(L"html"))) { 732 if (wsTag == FX_WSTRC(L"body") || wsTag == FX_WSTRC(L"html")) {
733 pXMLContainer = pXMLChild; 733 pXMLContainer = pXMLChild;
734 break; 734 break;
735 } 735 }
736 } 736 }
737 } 737 }
738 } 738 }
739 return pXMLContainer; 739 return pXMLContainer;
740 } 740 }
741 IFX_RTFBreak* CXFA_TextLayout::CreateBreak(FX_BOOL bDefault) { 741 IFX_RTFBreak* CXFA_TextLayout::CreateBreak(FX_BOOL bDefault) {
742 uint32_t dwStyle = FX_RTFLAYOUTSTYLE_ExpandTab; 742 uint32_t dwStyle = FX_RTFLAYOUTSTYLE_ExpandTab;
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 tr.iLength = iLength; 1994 tr.iLength = iLength;
1995 tr.fFontSize = pPiece->fFontSize; 1995 tr.fFontSize = pPiece->fFontSize;
1996 tr.iBidiLevel = pPiece->iBidiLevel; 1996 tr.iBidiLevel = pPiece->iBidiLevel;
1997 tr.iCharRotation = 0; 1997 tr.iCharRotation = 0;
1998 tr.wLineBreakChar = L'\n'; 1998 tr.wLineBreakChar = L'\n';
1999 tr.iVerticalScale = pPiece->iVerScale; 1999 tr.iVerticalScale = pPiece->iVerScale;
2000 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; 2000 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab;
2001 tr.iHorizontalScale = pPiece->iHorScale; 2001 tr.iHorizontalScale = pPiece->iHorScale;
2002 return TRUE; 2002 return TRUE;
2003 } 2003 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_fontmgr.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698