| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011, 2012, 2014 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2011, 2012, 2014 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Must call get() on the table in case that argument is compiled before derefer
encing the | 124 // Must call get() on the table in case that argument is compiled before derefer
encing the |
| 125 // table to get at the collection cache. Order of argument evaluation is undefin
ed and can | 125 // table to get at the collection cache. Order of argument evaluation is undefin
ed and can |
| 126 // differ between compilers. | 126 // differ between compilers. |
| 127 HTMLTableRowsCollection::HTMLTableRowsCollection(ContainerNode& table) | 127 HTMLTableRowsCollection::HTMLTableRowsCollection(ContainerNode& table) |
| 128 : HTMLCollection(table, TableRows, OverridesItemAfter) | 128 : HTMLCollection(table, TableRows, OverridesItemAfter) |
| 129 { | 129 { |
| 130 ASSERT(isHTMLTableElement(table)); | 130 ASSERT(isHTMLTableElement(table)); |
| 131 } | 131 } |
| 132 | 132 |
| 133 PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> HTMLTableRowsCollection::create(
ContainerNode& table, CollectionType type) | 133 RawPtr<HTMLTableRowsCollection> HTMLTableRowsCollection::create(ContainerNode& t
able, CollectionType type) |
| 134 { | 134 { |
| 135 ASSERT_UNUSED(type, type == TableRows); | 135 ASSERT_UNUSED(type, type == TableRows); |
| 136 return adoptRefWillBeNoop(new HTMLTableRowsCollection(table)); | 136 return new HTMLTableRowsCollection(table); |
| 137 } | 137 } |
| 138 | 138 |
| 139 Element* HTMLTableRowsCollection::virtualItemAfter(Element* previous) const | 139 Element* HTMLTableRowsCollection::virtualItemAfter(Element* previous) const |
| 140 { | 140 { |
| 141 return rowAfter(toHTMLTableElement(ownerNode()), toHTMLTableRowElement(previ
ous)); | 141 return rowAfter(toHTMLTableElement(ownerNode()), toHTMLTableRowElement(previ
ous)); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| OLD | NEW |