|
|
Make AccessibilityNodeData more compact.
The only goal of this tedious changelist is
less memory usage when storing the accessible tree.
The major changes are:
* Make almost everything a "sparse" attribute.
For example, not every element has a name or
value, so make them optional attributes rather
than string fields that always take up memory.
* Use UTF-8 std::strings instead of string16s.
* Use vectors of pairs rather than maps.
If there is any slowdown after this change, we
can speed up lookup in vectors by sorting the
attributes and doing a binary search. There are
also opportunities to do more referencing and
less string copying.
When reviewing, look at the changes to the header
files first and make sure you understand them.
Everything else is just a consequence of those
changes.
BUG= 96700
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218572
Total comments: 19
Total comments: 16
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+923 lines, -627 lines) |
Patch |
 |
M |
content/browser/accessibility/browser_accessibility.h
|
View
|
1
2
3
|
6 chunks |
+67 lines, -64 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility.cc
|
View
|
1
2
3
|
5 chunks |
+176 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_android.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_cocoa.mm
|
View
|
1
2
3
4
5
6
7
|
25 chunks |
+103 lines, -127 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_gtk.h
|
View
|
1
2
3
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_gtk.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_mac_unittest.mm
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_manager.cc
|
View
|
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_manager_unittest.cc
|
View
|
|
6 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_win.h
|
View
|
1
2
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_win.cc
|
View
|
1
2
3
4
5
|
37 chunks |
+140 lines, -98 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/browser_accessibility_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
13 chunks |
+44 lines, -22 lines |
0 comments
|
Download
|
 |
M |
content/browser/accessibility/cross_platform_accessibility_browsertest.cc
|
View
|
1
2
3
4
|
12 chunks |
+65 lines, -45 lines |
0 comments
|
Download
|
 |
M |
content/common/accessibility_messages.h
|
View
|
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/common/accessibility_node_data.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+41 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/common/accessibility_node_data.cc
|
View
|
1
|
6 chunks |
+65 lines, -43 lines |
0 comments
|
Download
|
 |
M |
content/renderer/accessibility/accessibility_node_serializer.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+161 lines, -116 lines |
0 comments
|
Download
|
 |
M |
content/renderer/accessibility/renderer_accessibility_complete.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/accessibility_browser_test_utils.cc
|
View
|
|
1 chunk |
+5 lines, -7 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|