summaryrefslogtreecommitdiff
path: root/core/src/fxge/android
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-02 10:28:27 -0700
committerLei Zhang <thestig@chromium.org>2015-10-02 10:28:27 -0700
commitdb12c167d3613c9a73b28cac75e37779dbc680e0 (patch)
treedbf281ba95a08a30fe21703ee6af3a309787c74f /core/src/fxge/android
parent421b4612439ee3a81d675b542038c6c3ff25e977 (diff)
downloadpdfium-db12c167d3613c9a73b28cac75e37779dbc680e0.tar.xz
XFA: Remove tests for new in fxge and fpdfsdk.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1378303002 .
Diffstat (limited to 'core/src/fxge/android')
-rw-r--r--core/src/fxge/android/fpf_skiafontmgr.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/core/src/fxge/android/fpf_skiafontmgr.cpp b/core/src/fxge/android/fpf_skiafontmgr.cpp
index a7b38b2033..521460bea3 100644
--- a/core/src/fxge/android/fpf_skiafontmgr.cpp
+++ b/core/src/fxge/android/fpf_skiafontmgr.cpp
@@ -332,23 +332,12 @@ IFPF_Font* CFPF_SkiaFontMgr::CreateFont(const CFX_ByteStringC& bsFamilyname,
if (nItem > -1) {
CFPF_SkiaFontDescriptor* pFontDes =
(CFPF_SkiaFontDescriptor*)m_FontFaces.ElementAt(nItem);
-<<<<<<< HEAD
- CFPF_SkiaFont* pFont = new CFPF_SkiaFont;
- if (pFont) {
- if (pFont->InitFont(this, pFontDes, bsFamilyname, dwStyle, uCharset)) {
- m_FamilyFonts.SetAt((void*)(uintptr_t)dwHash, (void*)pFont);
- return pFont->Retain();
- }
- pFont->Release();
- pFont = NULL;
-=======
CFPF_SkiaFont* pFont = new CFPF_SkiaFont;
if (pFont->InitFont(this, pFontDes, bsFamilyname, dwStyle, uCharset)) {
m_FamilyFonts.SetAt((void*)(uintptr_t)dwHash, (void*)pFont);
return pFont->Retain();
->>>>>>> bb17868... Use stdint.h types throughout PDFium.
}
- return pFont;
+ pFont->Release()
}
return NULL;
}
@@ -451,9 +440,6 @@ void CFPF_SkiaFontMgr::ScanFile(const CFX_ByteStringC& file) {
FXFT_Face face = GetFontFace(file);
if (face) {
CFPF_SkiaPathFont* pFontDesc = new CFPF_SkiaPathFont;
- if (!pFontDesc) {
- return;
- }
pFontDesc->SetPath(file.GetCStr());
ReportFace(face, pFontDesc);
m_FontFaces.Add(pFontDesc);