Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(683)

Unified Diff: sky/engine/core/dom/custom/CustomElementDescriptor.h

Issue 831993005: Remove custom element type extensions. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/dom/custom/CustomElementDescriptorHash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/custom/CustomElementDescriptor.h
diff --git a/sky/engine/core/dom/custom/CustomElementDescriptor.h b/sky/engine/core/dom/custom/CustomElementDescriptor.h
index c05e35f8aa4c426f9694a8cf8161383c879bf69b..d24b0051c3714776e756bccdd6d8f4b6501c0869 100644
--- a/sky/engine/core/dom/custom/CustomElementDescriptor.h
+++ b/sky/engine/core/dom/custom/CustomElementDescriptor.h
@@ -44,9 +44,8 @@ struct CustomElementDescriptorHash;
class CustomElementDescriptor {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
- CustomElementDescriptor(const AtomicString& type, const AtomicString& localName)
- : m_type(type)
- , m_localName(localName)
+ CustomElementDescriptor(const AtomicString& localName)
+ : m_localName(localName)
{
}
@@ -55,28 +54,19 @@ public:
// The tag name.
const AtomicString& localName() const { return m_localName; }
- // The name of the definition. For custom tags, this is the tag
- // name and the same as "localName". For type extensions, this is
- // the value of the "is" attribute.
- const AtomicString& type() const { return m_type; }
-
- bool isTypeExtension() const { return m_type != m_localName; }
-
// Stuff for hashing.
CustomElementDescriptor() { }
explicit CustomElementDescriptor(WTF::HashTableDeletedValueType value)
- : m_type(value) { }
- bool isHashTableDeletedValue() const { return m_type.isHashTableDeletedValue(); }
+ : m_localName(value) { }
+ bool isHashTableDeletedValue() const { return m_localName.isHashTableDeletedValue(); }
bool operator==(const CustomElementDescriptor& other) const
{
- return m_type == other.m_type
- && m_localName == other.m_localName;
+ return m_localName == other.m_localName;
}
private:
- AtomicString m_type;
AtomicString m_localName;
};
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/dom/custom/CustomElementDescriptorHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698