Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_xmlnode.cpp
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "core/fxcrt/xml/cfx_xmlnode.h"
8
9CFX_XMLNode::CFX_XMLNode() = default;
10
11CFX_XMLNode::~CFX_XMLNode() = default;
12
13void CFX_XMLNode::InsertChildNode(CFX_XMLNode* pNode, int32_t index) {
14 InsertBefore(pNode, GetNthChild(index));
15}
16
18 CFX_XMLNode* pParent = this;
19 while (pParent->GetParent())
20 pParent = pParent->GetParent();
21
22 return pParent;
23}
void InsertChildNode(CFX_XMLNode *pNode, int32_t index)
~CFX_XMLNode() override
CFX_XMLNode * GetRoot()