Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLTableRowsCollection.h
index e7324b2..c30db78 100644 (file)
 #define HTMLTableRowsCollection_h
 
 #include "core/html/HTMLCollection.h"
+#include "core/html/HTMLTableRowElement.h"
 
-namespace WebCore {
+namespace blink {
 
 class HTMLTableElement;
 class HTMLTableRowElement;
 
-class HTMLTableRowsCollection FINAL : public HTMLCollection {
+class HTMLTableRowsCollection final : public HTMLCollection {
 public:
-    static PassRefPtr<HTMLTableRowsCollection> create(ContainerNode*, CollectionType);
+    static PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> create(ContainerNode&, CollectionType);
 
-    static HTMLTableRowElement* rowAfter(HTMLTableElement*, HTMLTableRowElement*);
-    static HTMLTableRowElement* lastRow(HTMLTableElement*);
+    HTMLTableRowElement* item(unsigned offset) const { return toHTMLTableRowElement(HTMLCollection::item(offset)); }
+
+    static HTMLTableRowElement* rowAfter(HTMLTableElement&, HTMLTableRowElement*);
+    static HTMLTableRowElement* lastRow(HTMLTableElement&);
 
 private:
-    explicit HTMLTableRowsCollection(ContainerNode*);
+    explicit HTMLTableRowsCollection(ContainerNode&);
 
-    virtual Element* virtualItemAfter(Element*) const OVERRIDE;
+    virtual Element* virtualItemAfter(Element*) const override;
 };
 
+DEFINE_TYPE_CASTS(HTMLTableRowsCollection, LiveNodeListBase, collection, collection->type() == TableRows, collection.type() == TableRows);
+
 } // namespace
 
 #endif