Commit 5aa74382 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Add operator<< for blink::QualifiedName.

It's helpful for logging.
This CL won't affect production.

Change-Id: I9f35d75799ce060ceef34e173967c0881930504d
Reviewed-on: https://chromium-review.googlesource.com/892579Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532793}
parent 9851f2e5
......@@ -149,4 +149,11 @@ void QualifiedName::CreateStatic(void* target_address, StringImpl* name) {
QualifiedName(g_null_atom, AtomicString(name), g_null_atom, true);
}
std::ostream& operator<<(std::ostream& ostream, const QualifiedName& qname) {
ostream << "QualifiedName(local=" << qname.LocalName()
<< " ns=" << qname.NamespaceURI() << " prefix=" << qname.Prefix()
<< ")";
return ostream;
}
} // namespace blink
......@@ -219,6 +219,8 @@ struct CORE_EXPORT QualifiedNameHash {
static const bool safe_to_compare_to_empty_or_deleted = false;
};
CORE_EXPORT std::ostream& operator<<(std::ostream&, const QualifiedName&);
} // namespace blink
namespace WTF {
......
......@@ -119,7 +119,8 @@ HTMLElement* CustomElement::CreateCustomElementSync(
const QualifiedName& tag_name,
CustomElementDefinition* definition) {
DCHECK(ShouldCreateCustomElement(tag_name) ||
ShouldCreateCustomizedBuiltinElement(tag_name));
ShouldCreateCustomizedBuiltinElement(tag_name))
<< tag_name;
HTMLElement* element;
if (definition && definition->Descriptor().IsAutonomous()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment