OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserv
ed. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 16 matching lines...) Expand all Loading... |
27 #define HTMLTableRowElement_h | 27 #define HTMLTableRowElement_h |
28 | 28 |
29 #include "core/html/HTMLTablePartElement.h" | 29 #include "core/html/HTMLTablePartElement.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class ExceptionState; | 33 class ExceptionState; |
34 | 34 |
35 class HTMLTableRowElement FINAL : public HTMLTablePartElement { | 35 class HTMLTableRowElement FINAL : public HTMLTablePartElement { |
36 public: | 36 public: |
37 static PassRefPtr<HTMLTableRowElement> create(Document*); | 37 static PassRefPtr<HTMLTableRowElement> create(Document&); |
38 static PassRefPtr<HTMLTableRowElement> create(const QualifiedName&, Document
*); | 38 static PassRefPtr<HTMLTableRowElement> create(const QualifiedName&, Document
&); |
39 | 39 |
40 int rowIndex() const; | 40 int rowIndex() const; |
41 void setRowIndex(int); | 41 void setRowIndex(int); |
42 | 42 |
43 int sectionRowIndex() const; | 43 int sectionRowIndex() const; |
44 void setSectionRowIndex(int); | 44 void setSectionRowIndex(int); |
45 | 45 |
46 PassRefPtr<HTMLElement> insertCell(int index, ExceptionState&); | 46 PassRefPtr<HTMLElement> insertCell(int index, ExceptionState&); |
47 void deleteCell(int index, ExceptionState&); | 47 void deleteCell(int index, ExceptionState&); |
48 | 48 |
49 PassRefPtr<HTMLCollection> cells(); | 49 PassRefPtr<HTMLCollection> cells(); |
50 void setCells(HTMLCollection *, ExceptionState&); | 50 void setCells(HTMLCollection *, ExceptionState&); |
51 | 51 |
52 private: | 52 private: |
53 HTMLTableRowElement(const QualifiedName&, Document*); | 53 HTMLTableRowElement(const QualifiedName&, Document&); |
54 }; | 54 }; |
55 | 55 |
56 inline bool isHTMLTableRowElement(const Node* node) | 56 inline bool isHTMLTableRowElement(const Node* node) |
57 { | 57 { |
58 return node->hasTagName(HTMLNames::trTag); | 58 return node->hasTagName(HTMLNames::trTag); |
59 } | 59 } |
60 | 60 |
61 inline HTMLTableRowElement* toHTMLTableRowElement(Node* node) | 61 inline HTMLTableRowElement* toHTMLTableRowElement(Node* node) |
62 { | 62 { |
63 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableRowElement(node)); | 63 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableRowElement(node)); |
64 return static_cast<HTMLTableRowElement*>(node); | 64 return static_cast<HTMLTableRowElement*>(node); |
65 } | 65 } |
66 | 66 |
67 } // namespace | 67 } // namespace |
68 | 68 |
69 #endif | 69 #endif |
OLD | NEW |