summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cxml_element.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-13 14:42:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-13 14:42:16 +0000
commitad38ca5a030e17e48495e52457192914a749912b (patch)
tree9bf4c4d59b893bd15aaee1d603b2ff73118a6cf5 /core/fxcrt/xml/cxml_element.h
parent9a3a077e4820efa035eca4aec7e93fbd1298d6cb (diff)
downloadpdfium-ad38ca5a030e17e48495e52457192914a749912b.tar.xz
Fix some nits in CXML_Element.
Move FX_XML_SplitQualifiedName() out of CXML_Parser, and add CXML_Element::MatchesElement(). Change-Id: I34adc6f3b19e745ae33db0edf65184346cc1c13f Reviewed-on: https://pdfium-review.googlesource.com/21073 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h
index db9a214c17..038fa648d2 100644
--- a/core/fxcrt/xml/cxml_element.h
+++ b/core/fxcrt/xml/cxml_element.h
@@ -56,6 +56,10 @@ class CXML_Element : public CXML_Object {
const WideString& value);
private:
+ static bool MatchesElement(const CXML_Element* pKid,
+ const ByteStringView& space,
+ const ByteStringView& tag);
+
UnownedPtr<const CXML_Element> const m_pParent;
ByteString m_QSpaceName;
ByteString m_TagName;