mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
7cc4b6c4c7
Instead of calling nsAString::Assign several hundred times along with a switch statement that may or may not get translated into a jump table, let's implement our own lookup table that we can guarantee will be constant time. The KeyNameTable struct is used instead of the more obvious |const char* const table[]| idiom to avoid runtime relocations. |
||
---|---|---|
.. | ||
x11 | ||
Makefile.in | ||
moz.build | ||
NativeKeyToDOMKeyName.h | ||
nsShmImage.cpp | ||
nsShmImage.h | ||
SharedWidgetUtils.cpp | ||
WidgetEventImpl.cpp | ||
WidgetUtils.h |