diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-10 19:44:16 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-10 19:44:16 +0000 |
commit | ccd7899b2d662c0a1be6cd52c6b6068472c27375 (patch) | |
tree | 13baee4d5893332917cae9f9e49d35473f086176 /fxjs/xfa/cjx_object.cpp | |
parent | 948879d23226aea31aa9ae5f6eb1fb8572f0fc05 (diff) | |
download | pdfium-ccd7899b2d662c0a1be6cd52c6b6068472c27375.tar.xz |
Rename GetOrCreateFont to GetOrCreateFontIfPossible
This CL makes it explicit that GetOrCreateFontIfPossible can return
nullptr.
Change-Id: Ib5be6995e4225ad596dfb78a94f0bc56802716cc
Reviewed-on: https://pdfium-review.googlesource.com/22674
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/xfa/cjx_object.cpp')
-rw-r--r-- | fxjs/xfa/cjx_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp index 8f528c8544..a1d9dafd7b 100644 --- a/fxjs/xfa/cjx_object.cpp +++ b/fxjs/xfa/cjx_object.cpp @@ -1297,7 +1297,7 @@ void CJX_Object::Script_Attribute_Integer(CFXJSE_Value* pValue, void CJX_Object::Script_Som_FontColor(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute) { - CXFA_Font* font = ToNode(object_.Get())->GetOrCreateFont(); + CXFA_Font* font = ToNode(object_.Get())->GetOrCreateFontIfPossible(); if (!font) return; |