Index: Source/core/editing/EditorCommand.cpp |
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp |
index ca89aae1ddfaf592cd3748badadf9b3f14f1fbc3..775073e76855828145f5f0f1ef9ad6e88c7953a9 100644 |
--- a/Source/core/editing/EditorCommand.cpp |
+++ b/Source/core/editing/EditorCommand.cpp |
@@ -271,7 +271,7 @@ static unsigned verticalScrollDistance(LocalFrame& frame) |
if (!renderer || !renderer->isBox()) |
return 0; |
RenderBox& renderBox = toRenderBox(*renderer); |
- LayoutStyle* style = renderBox.style(); |
+ const LayoutStyle* style = renderBox.style(); |
if (!style) |
return 0; |
if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || focusedElement->hasEditableStyle())) |