summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cxml_element.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/xml/cxml_element.h')
-rw-r--r--core/fxcrt/xml/cxml_element.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h
index 038fa648d2..d3049d77a4 100644
--- a/core/fxcrt/xml/cxml_element.h
+++ b/core/fxcrt/xml/cxml_element.h
@@ -11,7 +11,7 @@
#include <utility>
#include <vector>
-#include "core/fxcrt/xml/cxml_attrmap.h"
+#include "core/fxcrt/xml/cxml_attritem.h"
#include "core/fxcrt/xml/cxml_object.h"
class CXML_Element : public CXML_Object {
@@ -30,7 +30,7 @@ class CXML_Element : public CXML_Object {
ByteString GetTagName() const;
ByteString GetNamespaceURI(const ByteString& qName) const;
const CXML_Element* GetParent() const { return m_pParent.Get(); }
- size_t CountAttrs() const { return m_AttrMap.GetSize(); }
+ size_t CountAttrs() const { return m_AttrMap.size(); }
void GetAttrByIndex(size_t index,
ByteString* space,
ByteString* name,
@@ -60,10 +60,13 @@ class CXML_Element : public CXML_Object {
const ByteStringView& space,
const ByteStringView& tag);
+ const WideString* Lookup(const ByteString& space,
+ const ByteString& name) const;
+
UnownedPtr<const CXML_Element> const m_pParent;
- ByteString m_QSpaceName;
- ByteString m_TagName;
- CXML_AttrMap m_AttrMap;
+ const ByteString m_QSpaceName;
+ const ByteString m_TagName;
+ std::vector<CXML_AttrItem> m_AttrMap;
std::vector<std::unique_ptr<CXML_Object>> m_Children;
};