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

Unified Diff: sky/engine/core/html/HTMLElement.h

Issue 772133003: Mostly merge HTMLElement into Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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.idl ('k') | sky/engine/core/html/HTMLElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLElement.h
diff --git a/sky/engine/core/html/HTMLElement.h b/sky/engine/core/html/HTMLElement.h
index d860bca1529b684226ce9b136a4a88ea83eaf209..b1382fe03597e2e5dc43e2923bfcf65b48d9cfa2 100644
--- a/sky/engine/core/html/HTMLElement.h
+++ b/sky/engine/core/html/HTMLElement.h
@@ -27,29 +27,11 @@
namespace blink {
-class ExceptionState;
-
class HTMLElement : public Element {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement);
- bool hasTagName(const HTMLQualifiedName& name) const { return hasLocalName(name.localName()); }
-
- virtual String title() const override final;
- virtual short tabIndex() const override;
-
- String contentEditable() const;
- void setContentEditable(const String&, ExceptionState&);
-
- bool spellcheck() const;
- void setSpellcheck(bool);
-
- const AtomicString& dir();
- void setDir(const AtomicString&);
-
- void click();
-
virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
protected:
@@ -71,20 +53,6 @@ inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
ASSERT(!tagName.localName().isNull());
}
-inline bool Node::hasTagName(const HTMLQualifiedName& name) const
-{
- return isHTMLElement() && toHTMLElement(*this).hasTagName(name);
-}
-
-// Functor used to match HTMLElements with a specific HTML tag when using the ElementTraversal API.
-class HasHTMLTagName {
-public:
- explicit HasHTMLTagName(const HTMLQualifiedName& tagName): m_tagName(tagName) { }
- bool operator() (const HTMLElement& element) const { return element.hasTagName(m_tagName); }
-private:
- const HTMLQualifiedName& m_tagName;
-};
-
// This requires isHTML*Element(const Element&) and isHTML*Element(const HTMLElement&).
// When the input element is an HTMLElement, we don't need to check the namespace URI, just the local name.
#define DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
« no previous file with comments | « sky/engine/core/dom/Element.idl ('k') | sky/engine/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698