Index: Source/core/editing/EditorCommand.cpp |
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp |
index 619fcfcaa9eae3dbf5485d5215f4e65156080372..143fa7cf98f40564926e797b5d73c4eb04a2e495 100644 |
--- a/Source/core/editing/EditorCommand.cpp |
+++ b/Source/core/editing/EditorCommand.cpp |
@@ -267,7 +267,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame) |
Element* focusedElement = frame.document()->focusedElement(); |
if (!focusedElement) |
return 0; |
- LayoutObject* renderer = focusedElement->renderer(); |
+ LayoutObject* renderer = focusedElement->layoutObject(); |
if (!renderer || !renderer->isBox()) |
return 0; |
LayoutBox& layoutBox = toLayoutBox(*renderer); |