[Webkit-unassigned] [Bug 62800] New: HTMLTableRowsCollection should cache its results

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 16 09:24:25 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62800

           Summary: HTMLTableRowsCollection should cache its results
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://code.google.com/p/chromium/issues/attachmentTex
                    t?id=73106&aid=541403547953126335&name=chromium-bugrep
                    ort.txt
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jchaffraix at webkit.org


This stems from http://code.google.com/p/chromium/issues/detail?id=73120

The test page is a 22k table. Some JS code is calling table.rows for each element at least twice. Currently, we create a new HTMLTableRowsCollection every time table.rows is called. This means that the length is potentially recalculated every time table.rows is used.

In the example, the DOM is not mutated so we could potentially reuse the CollectionCache to avoid the bad behavior.

Patch forthcoming.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list