Bug 609821 - Don't attempt to update the position of caret when we may have pending reflow operations; r=roc a=bsmedberg

This commit is contained in:
Ehsan Akhgari 2010-11-08 19:16:53 -05:00
Родитель e7bc30c680
Коммит bc3d07f965
3 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,17 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
<![CDATA[
function boom()
{
var td = document.getElementById("td");
td.contentEditable = "true";
td.focus();
}
]]>
</script></head>
<body onload="boom();"><td id="td"/></body>
</html>

Просмотреть файл

@ -313,3 +313,4 @@ load 572582-1.xhtml
load 579655.html
load 580494-1.html
load 580834-1.xhtml
load 609821-1.xhtml

Просмотреть файл

@ -7615,7 +7615,6 @@ PresShell::WillDoReflow()
// XXXbz that comment makes no sense
if (mCaret) {
mCaret->InvalidateOutsideCaret();
mCaret->UpdateCaretPosition();
}
mPresContext->FlushUserFontSet();