Index: Source/core/editing/Caret.cpp |
diff --git a/Source/core/editing/Caret.cpp b/Source/core/editing/Caret.cpp |
index ffe2ab6ace122ff37559f1e42bc525ca0400f5bf..2b3c1d6ccf2ebb25d5d785e3293dcadc09b02066 100644 |
--- a/Source/core/editing/Caret.cpp |
+++ b/Source/core/editing/Caret.cpp |
@@ -126,7 +126,7 @@ RenderObject* CaretBase::caretRenderer(Node* node) |
bool CaretBase::updateCaretRect(Document* document, const VisiblePosition& caretPosition) |
{ |
- document->updateStyleIfNeeded(); |
+ document->updateRenderTreeIfNeeded(); |
m_caretLocalRect = LayoutRect(); |
m_caretRectNeedsUpdate = false; |