mirror of https://github.com/qt/qtbase.git
wasm: Fix source code comment typos
Change-Id: I9b2b76c01880c7bb515fdc1a6c4ef1f0bcf6be95 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
0e58b3db34
commit
2675c288e8
|
@ -68,7 +68,7 @@
|
||||||
//
|
//
|
||||||
// containerElements : [container-element, ...]
|
// containerElements : [container-element, ...]
|
||||||
// One or more HTML elements. QtLoader will display loader elements
|
// 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.
|
// canvas on load complete.
|
||||||
// canvasElements : [canvas-element, ...]
|
// canvasElements : [canvas-element, ...]
|
||||||
// One or more canvas elements.
|
// One or more canvas elements.
|
||||||
|
@ -280,7 +280,7 @@ function QtLoader(config)
|
||||||
function fetchThenCompileWasm(response) {
|
function fetchThenCompileWasm(response) {
|
||||||
return response.arrayBuffer().then(function(data) {
|
return response.arrayBuffer().then(function(data) {
|
||||||
self.loaderSubState = "Compiling";
|
self.loaderSubState = "Compiling";
|
||||||
setStatus("Loading") // trigger loaderSubState udpate
|
setStatus("Loading") // trigger loaderSubState update
|
||||||
return WebAssembly.compile(data);
|
return WebAssembly.compile(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ void QWasmCompositor::setVisible(QWasmWindow *window, bool visible)
|
||||||
if (visible)
|
if (visible)
|
||||||
compositedWindow.damage = compositedWindow.window->geometry();
|
compositedWindow.damage = compositedWindow.window->geometry();
|
||||||
else
|
else
|
||||||
m_globalDamage = compositedWindow.window->geometry(); // repaint previosly covered area.
|
m_globalDamage = compositedWindow.window->geometry(); // repaint previously covered area.
|
||||||
|
|
||||||
requestRedraw();
|
requestRedraw();
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ void QWasmCompositor::lower(QWasmWindow *window)
|
||||||
m_windowStack.removeAll(window);
|
m_windowStack.removeAll(window);
|
||||||
m_windowStack.prepend(window);
|
m_windowStack.prepend(window);
|
||||||
QWasmCompositedWindow &compositedWindow = m_compositedWindows[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);
|
notifyTopWindowChanged(window);
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@ void QWasmEventDispatcher::doMaintainTimers()
|
||||||
{
|
{
|
||||||
Q_D(QWasmEventDispatcher);
|
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
|
// process events and activate Qt timers. This is done using the
|
||||||
// emscripten_async_call() API which schedules a new timer.
|
// emscripten_async_call() API which schedules a new timer.
|
||||||
// There is unfortunately no way to cancel or update a current
|
// There is unfortunately no way to cancel or update a current
|
||||||
|
|
|
@ -146,7 +146,7 @@ QWasmIntegration::QWasmIntegration()
|
||||||
|
|
||||||
QWasmIntegration::~QWasmIntegration()
|
QWasmIntegration::~QWasmIntegration()
|
||||||
{
|
{
|
||||||
// Remove event listenes
|
// Remove event listener
|
||||||
emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, nullptr);
|
emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, nullptr);
|
||||||
emscripten::val visualViewport = emscripten::val::global("window")["visualViewport"];
|
emscripten::val visualViewport = emscripten::val::global("window")["visualViewport"];
|
||||||
if (!visualViewport.isUndefined()) {
|
if (!visualViewport.isUndefined()) {
|
||||||
|
|
Loading…
Reference in New Issue