diff options
author | jocelyn.turcotte <jocelyn.turcotte@digia.com> | 2013-01-03 18:17:21 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-16 18:00:05 +0100 |
commit | 0ab6ee16c3bb723fe6827864b5b645d5a6f1babe (patch) | |
tree | 34fb4e92ce60100cc1b866dc6557dbf8d59e1a77 /Source/JavaScriptCore/disassembler/Disassembler.h | |
parent | c2c595293e376b2609d8176e86b6f2ad86b45223 (diff) | |
download | qtwebkit-0ab6ee16c3bb723fe6827864b5b645d5a6f1babe.tar.gz |
[Qt] Fix a crash when the QQuickWebPage is destroyed between the scene graph sync and render.
https://bugs.webkit.org/show_bug.cgi?id=106018
Reviewed by Simon Hausmann.
The main and rendering threads are only guaranteed to be synchronised in
the updatePaintNode call. In every other cases, QQuickItems cannot be
safely accessed from the rendering thread.
Do as the first patch version in
https://bugs.webkit.org/show_bug.cgi?id=104574 was doing and copy the
ratio value directly to fix the issue.
Also add a note about the threading issue in QQuickWebPage::updatePaintNode.
* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPage::updatePaintNode):
* UIProcess/qt/QtWebPageSGNode.cpp:
(WebKit::QtWebPageSGNode::QtWebPageSGNode):
* UIProcess/qt/QtWebPageSGNode.h:
(QtWebPageSGNode):
(WebKit::QtWebPageSGNode::devicePixelRatio):
(WebKit::QtWebPageSGNode::setDevicePixelRatio):
Change-Id: Ie849f0f23ae9e017fcdce6326fb2126f3ad66248
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/disassembler/Disassembler.h')
0 files changed, 0 insertions, 0 deletions