Commit 4686aff
Mozilla bug 1995614: Atomize ATTR_TYPE strings and any single digit strings during tokenization. r=hsivonen
Add static atoms for "2" -> "9", and do a fast path check for any single digit strings during tokenization and return the static atom directly. Also atomize type attributes during tokenization. This patch also cleans up some code in Element::SetAttr and nsHtml5TreeOperation so that it's easier to pass through an atom.
Differential Revision: https://phabricator.services.mozilla.com/D2698591 parent a96e7d8 commit 4686aff
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1001 | 1014 | | |
1002 | | - | |
| 1015 | + | |
1003 | 1016 | | |
1004 | 1017 | | |
1005 | 1018 | | |
| |||
0 commit comments