wasm: Fix source code comment typos

Change-Id: I9b2b76c01880c7bb515fdc1a6c4ef1f0bcf6be95
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Jonas Kvinge 2021-10-11 20:31:46 +02:00
parent 0e58b3db34
commit 2675c288e8
4 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@
//
// containerElements : [container-element, ...]
// One or more HTML elements. QtLoader will display loader elements
// on these while loading the applicaton, and replace the loader with a
// on these while loading the application, and replace the loader with a
// canvas on load complete.
// canvasElements : [canvas-element, ...]
// One or more canvas elements.
@ -280,7 +280,7 @@ function QtLoader(config)
function fetchThenCompileWasm(response) {
return response.arrayBuffer().then(function(data) {
self.loaderSubState = "Compiling";
setStatus("Loading") // trigger loaderSubState udpate
setStatus("Loading") // trigger loaderSubState update
return WebAssembly.compile(data);
});
}

View File

@ -146,7 +146,7 @@ void QWasmCompositor::setVisible(QWasmWindow *window, bool visible)
if (visible)
compositedWindow.damage = compositedWindow.window->geometry();
else
m_globalDamage = compositedWindow.window->geometry(); // repaint previosly covered area.
m_globalDamage = compositedWindow.window->geometry(); // repaint previously covered area.
requestRedraw();
}
@ -172,7 +172,7 @@ void QWasmCompositor::lower(QWasmWindow *window)
m_windowStack.removeAll(window);
m_windowStack.prepend(window);
QWasmCompositedWindow &compositedWindow = m_compositedWindows[window];
m_globalDamage = compositedWindow.window->geometry(); // repaint previosly covered area.
m_globalDamage = compositedWindow.window->geometry(); // repaint previously covered area.
notifyTopWindowChanged(window);
}

View File

@ -148,7 +148,7 @@ void QWasmEventDispatcher::doMaintainTimers()
{
Q_D(QWasmEventDispatcher);
// This functon schedules native timers in order to wake up to
// This function schedules native timers in order to wake up to
// process events and activate Qt timers. This is done using the
// emscripten_async_call() API which schedules a new timer.
// There is unfortunately no way to cancel or update a current

View File

@ -146,7 +146,7 @@ QWasmIntegration::QWasmIntegration()
QWasmIntegration::~QWasmIntegration()
{
// Remove event listenes
// Remove event listener
emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, nullptr);
emscripten::val visualViewport = emscripten::val::global("window")["visualViewport"];
if (!visualViewport.isUndefined()) {