diff options
author | Luca Ottaviano <lottaviano@develer.com> | 2014-01-09 10:15:14 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-15 13:40:09 +0100 |
commit | 4c10389c55ef4d78076478bfda72060bf7de8e69 (patch) | |
tree | 6f3aff65c0d73ec417e6bfcb8a819e33fbcd10a7 /Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp | |
parent | 9b0de4a45f7172710d5722ff302d43efde2c5365 (diff) | |
download | qtwebkit-4c10389c55ef4d78076478bfda72060bf7de8e69.tar.gz |
Ensure that cursor rectangle is always valid.
The cursor rectangle is given an invalid size when the user clicks on
an input field; the reported size is 0 pixel wide.
The cursor is then converted to a QRect, which is invalid if rectangle
width is 0.
This can interefere with input methods that check for cursorRect
validity before reporting a cursorRect change.
Make sure that a cursor rectangle with at least one valid dimension
becomes a valid QRect.
Task-number: QTBUG-35996
Change-Id: I4026f1136cfb006efc5d7915f0f10c1b5187c730
Signed-off-by: Luca Ottaviano <lottaviano@develer.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp')
0 files changed, 0 insertions, 0 deletions