diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-13 15:03:13 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-13 15:03:13 +0000 |
commit | 14768f3264a4cff8ca0096a27e41f1861b2c422b (patch) | |
tree | a5cbe644752c817a037a0470880d1e1cea161000 /core/fxcrt/xml/cxml_element.h | |
parent | ad38ca5a030e17e48495e52457192914a749912b (diff) | |
download | pdfium-14768f3264a4cff8ca0096a27e41f1861b2c422b.tar.xz |
Get rid of CXML_AttrMap.
BUG=pdfium:541
Change-Id: Id401af00e4cffebb49e187bf3a445439ce8c1082
Reviewed-on: https://pdfium-review.googlesource.com/21074
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cxml_element.h')
-rw-r--r-- | core/fxcrt/xml/cxml_element.h | 13 |
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; }; |