|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2011-06-16 Julien Chaffraix <jchaffraix@webkit.org> |
| 2 |
|
| 3 |
Reviewed by NOBODY (OOPS!). |
| 4 |
|
| 5 |
HTMLTable should cache its 'rows' collection results |
| 6 |
https://bugs.webkit.org/show_bug.cgi?id=62800 |
| 7 |
|
| 8 |
Test: perf/table-rows-length-caching.html |
| 9 |
|
| 10 |
Currently all our HTMLCollection's are recreated on call. This means that |
| 11 |
we don't cache the information about the collection between calls to, for |
| 12 |
example, table.rows. |
| 13 |
|
| 14 |
This change adds a CollectionCache to HTMLTableElement. It is similar to what |
| 15 |
is done for HTMLFormElement. |
| 16 |
|
| 17 |
* html/HTMLTableElement.cpp: |
| 18 |
(WebCore::HTMLTableElement::collectionCache): This method does |
| 19 |
lazy initialization of the table's collectionCache. |
| 20 |
* html/HTMLTableElement.h: Added a new member and the previous |
| 21 |
method. |
| 22 |
|
| 23 |
* html/HTMLTableRowsCollection.cpp: |
| 24 |
(WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection): Pass |
| 25 |
the HTMLTableElement's CollectionCache so that we reuse the cached |
| 26 |
results. |
| 27 |
|
| 1 |
2011-06-15 Eric Carlson <eric.carlson@apple.com> |
28 |
2011-06-15 Eric Carlson <eric.carlson@apple.com> |
| 2 |
|
29 |
|
| 3 |
Reviewed by Alexey Proskuryakov. |
30 |
Reviewed by Alexey Proskuryakov. |