Bug 1494333 - index crons just like artifacts r=Callek
[gecko.git] / dom / html / HTMLDataListElement.cpp
blob904d8d90b743a9eb358d67f506f911cb5a797da1
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "HTMLDataListElement.h"
8 #include "mozilla/dom/HTMLDataListElementBinding.h"
10 NS_IMPL_NS_NEW_HTML_ELEMENT(DataList)
12 namespace mozilla {
13 namespace dom {
15 HTMLDataListElement::~HTMLDataListElement()
19 JSObject*
20 HTMLDataListElement::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
22 return HTMLDataListElement_Binding::Wrap(aCx, this, aGivenProto);
25 NS_IMPL_CYCLE_COLLECTION_INHERITED(HTMLDataListElement,
26 nsGenericHTMLElement,
27 mOptions)
29 NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED_0(HTMLDataListElement,
30 nsGenericHTMLElement)
32 NS_IMPL_ELEMENT_CLONE(HTMLDataListElement)
34 bool
35 HTMLDataListElement::MatchOptions(Element* aElement, int32_t aNamespaceID,
36 nsAtom* aAtom, void* aData)
38 return aElement->NodeInfo()->Equals(nsGkAtoms::option, kNameSpaceID_XHTML) &&
39 !aElement->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled);
42 } // namespace dom
43 } // namespace mozilla