WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42117
AX: Data table heuristics: consider assuming data table for 'zebra-striped' rows
https://bugs.webkit.org/show_bug.cgi?id=42117
Summary
AX: Data table heuristics: consider assuming data table for 'zebra-striped' rows
chris fleizach
Reported
Tuesday, July 13, 2010 12:16:33 AM UTC
Data table heuristics: consider assuming data table for 'zebra-striped' rows * NOTES We should consider adding a data table heuristic if every other row is an alternating color. 'zebra-striped' rows are a common design pattern. See screen shot that was not triggered as a data table before the ARIA roles were added.
Attachments
Patch
(7.04 KB, patch)
2010-07-12 16:18 PDT
,
chris fleizach
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
chris fleizach
Comment 1
Tuesday, July 13, 2010 12:18:56 AM UTC
Created
attachment 61281
[details]
Patch
Darin Adler
Comment 2
Wednesday, July 14, 2010 6:26:02 PM UTC
Comment on
attachment 61281
[details]
Patch
> + Vector<Color> alternatingColorCache;
Why a variable-size vector here instead of a fixed array?
Darin Adler
Comment 3
Wednesday, July 14, 2010 6:34:23 PM UTC
Comment on
attachment 61281
[details]
Patch
> + // For the first 5 rows, cache the background color so we can check if this table has zebra-striped rows. > + if (row < 5 && row == (int)alternatingColorCache.size()) {
If you have to do type casting, you should do a C++ cast, not C.
> + alternatingColorCache.append(rowColor);
I'm not sure "cache" is the right name for this data structure. I'd just call it rowColors. Code seems OK, I’ll say r=me
chris fleizach
Comment 4
Wednesday, July 14, 2010 10:11:32 PM UTC
http://trac.webkit.org/changeset/63353
chris fleizach
Comment 5
Wednesday, July 14, 2010 10:11:53 PM UTC
looks like the commit-log-editor chose the wrong change log
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug