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

Side by Side Diff: Source/core/html/HTMLTableRowsCollection.h

Issue 404403002: Have HTMLTableRowsCollection::item() return an HTMLTableRowElement* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AXTable.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef HTMLTableRowsCollection_h 29 #ifndef HTMLTableRowsCollection_h
30 #define HTMLTableRowsCollection_h 30 #define HTMLTableRowsCollection_h
31 31
32 #include "core/html/HTMLCollection.h" 32 #include "core/html/HTMLCollection.h"
33 #include "core/html/HTMLTableRowElement.h"
33 34
34 namespace blink { 35 namespace blink {
35 36
36 class HTMLTableElement; 37 class HTMLTableElement;
37 class HTMLTableRowElement; 38 class HTMLTableRowElement;
38 39
39 class HTMLTableRowsCollection FINAL : public HTMLCollection { 40 class HTMLTableRowsCollection FINAL : public HTMLCollection {
40 public: 41 public:
41 static PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> create(ContainerNode& , CollectionType); 42 static PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> create(ContainerNode& , CollectionType);
42 43
44 HTMLTableRowElement* item(unsigned offset) const { return toHTMLTableRowElem ent(HTMLCollection::item(offset)); }
45
43 static HTMLTableRowElement* rowAfter(HTMLTableElement&, HTMLTableRowElement* ); 46 static HTMLTableRowElement* rowAfter(HTMLTableElement&, HTMLTableRowElement* );
44 static HTMLTableRowElement* lastRow(HTMLTableElement&); 47 static HTMLTableRowElement* lastRow(HTMLTableElement&);
45 48
46 private: 49 private:
47 explicit HTMLTableRowsCollection(ContainerNode&); 50 explicit HTMLTableRowsCollection(ContainerNode&);
48 51
49 virtual Element* virtualItemAfter(Element*) const OVERRIDE; 52 virtual Element* virtualItemAfter(Element*) const OVERRIDE;
50 }; 53 };
51 54
52 DEFINE_TYPE_CASTS(HTMLTableRowsCollection, LiveNodeListBase, collection, collect ion->type() == TableRows, collection.type() == TableRows); 55 DEFINE_TYPE_CASTS(HTMLTableRowsCollection, LiveNodeListBase, collection, collect ion->type() == TableRows, collection.type() == TableRows);
53 56
54 } // namespace 57 } // namespace
55 58
56 #endif 59 #endif
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698