summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTableRowsCollection.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLTableRowsCollection.h')
-rw-r--r--Source/WebCore/html/HTMLTableRowsCollection.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/WebCore/html/HTMLTableRowsCollection.h b/Source/WebCore/html/HTMLTableRowsCollection.h
index 5f4fdf100..70134b05d 100644
--- a/Source/WebCore/html/HTMLTableRowsCollection.h
+++ b/Source/WebCore/html/HTMLTableRowsCollection.h
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -26,32 +26,32 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef HTMLTableRowsCollection_h
-#define HTMLTableRowsCollection_h
+#pragma once
-#include "HTMLCollection.h"
+#include "CachedHTMLCollection.h"
#include "HTMLTableElement.h"
namespace WebCore {
class HTMLTableRowElement;
-class HTMLTableRowsCollection final : public HTMLCollection {
+class HTMLTableRowsCollection final : public CachedHTMLCollection<HTMLTableRowsCollection, CollectionTypeTraits<TableRows>::traversalType> {
public:
- static PassRef<HTMLTableRowsCollection> create(HTMLTableElement&, CollectionType);
+ static Ref<HTMLTableRowsCollection> create(HTMLTableElement&, CollectionType);
- HTMLTableElement& tableElement() { return toHTMLTableElement(ownerNode()); }
- const HTMLTableElement& tableElement() const { return toHTMLTableElement(ownerNode()); }
+ HTMLTableElement& tableElement() { return downcast<HTMLTableElement>(ownerNode()); }
+ const HTMLTableElement& tableElement() const { return downcast<HTMLTableElement>(ownerNode()); }
- static HTMLTableRowElement* rowAfter(HTMLTableElement*, HTMLTableRowElement*);
- static HTMLTableRowElement* lastRow(HTMLTableElement*);
+ static HTMLTableRowElement* rowAfter(HTMLTableElement&, HTMLTableRowElement*);
+ static HTMLTableRowElement* lastRow(HTMLTableElement&);
+
+ // For CachedHTMLCollection.
+ Element* customElementAfter(Element*) const;
private:
explicit HTMLTableRowsCollection(HTMLTableElement&);
-
- virtual Element* customElementAfter(Element*) const override;
};
-} // namespace
+} // namespace WebCore
-#endif
+SPECIALIZE_TYPE_TRAITS_HTMLCOLLECTION(HTMLTableRowsCollection, TableRows)