summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-22 11:07:55 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-22 13:03:43 +0100
commitcccbe43056748a9443a49abf5bdc938ba5e537d6 (patch)
tree09767cad7e20b1494f8ab23b7c8e31677cbd2970 /Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp
parent4f72f6b8866cfa353a29248a4f1ca7c242949231 (diff)
downloadserenity-cccbe43056748a9443a49abf5bdc938ba5e537d6.zip
LibJS: Use FlyString for identifiers
This makes variable and property lookups a lot faster since comparing two FlyStrings is O(1).
Diffstat (limited to 'Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp')
-rw-r--r--Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp
index 5944001880..a5c6a576e4 100644
--- a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp
+++ b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp
@@ -25,6 +25,7 @@
*/
#include <AK/Function.h>
+#include <AK/FlyString.h>
#include <LibJS/Runtime/PrimitiveString.h>
#include <LibJS/Runtime/Value.h>
#include <LibWeb/Bindings/CanvasRenderingContext2DWrapper.h>