diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-10 19:43:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-10 19:43:36 +0000 |
commit | e844cccc8419dae40720aad57c3bcd7ced14a925 (patch) | |
tree | d4d8e172e82c1fbf32ccd5431886cfb186cbfb18 /xfa | |
parent | 4712af9e8bad3ab7da7e8372806f5360131baf89 (diff) | |
download | pdfium-e844cccc8419dae40720aad57c3bcd7ced14a925.tar.xz |
Rename GetOrCreateBorder to GetOrCreateBorderIfPossible
This CL makes it explicit that GetOrCreateBorderIfPossible can return a
nullptr.
Change-Id: I41d5e7ee506e95d95349e1e06198e40e8afa073c
Reviewed-on: https://pdfium-review.googlesource.com/22672
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index b04e427a10..a8de4907e0 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1534,7 +1534,7 @@ CXFA_Border* CXFA_Node::GetBorderIfExists() const { return JSObject()->GetProperty<CXFA_Border>(0, XFA_Element::Border); } -CXFA_Border* CXFA_Node::GetOrCreateBorder() { +CXFA_Border* CXFA_Node::GetOrCreateBorderIfPossible() { return JSObject()->GetOrCreateProperty<CXFA_Border>(0, XFA_Element::Border); } diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 2ada0083a0..57ab3cae8c 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -237,7 +237,7 @@ class CXFA_Node : public CXFA_Object { bool IsOpenAccess(); CXFA_Border* GetBorderIfExists() const; - CXFA_Border* GetOrCreateBorder(); + CXFA_Border* GetOrCreateBorderIfPossible(); CXFA_Caption* GetCaptionIfExists() const; CXFA_Font* GetFont() const; |