Reviewed by kocienda.
* khtml/editing/htmlediting.cpp:
(khtml::ReplaceSelectionCommand::completeHTMLReplacement): Call updateLayout so caretMinOffset and caretMaxOffset return correct values.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8722
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-28 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/4024786> REGRESSION (Mail): "Smart paste" plain-text word into Blot leaves insertion point misplaced
+
+ Reviewed by kocienda.
+
+ * khtml/editing/htmlediting.cpp:
+ (khtml::ReplaceSelectionCommand::completeHTMLReplacement): Call updateLayout so caretMinOffset and caretMaxOffset return correct values.
+
2005-02-28 John Sullivan <sullivan@apple.com>
Reviewed by Ken.
firstLeaf = nextChild;
}
+ // Call updateLayout so caretMinOffset and caretMaxOffset return correct values.
+ document()->updateLayout();
Position start(firstLeaf, firstLeaf->caretMinOffset());
Position end(lastLeaf, lastLeaf->caretMaxOffset());
completeHTMLReplacement(start, end);