Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 0308c86a5a355803496dc8aa5c298f7c7fcef8b5..b3ef8ae0974db3d8ba400a052d991388702a487d 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2186,7 +2186,7 @@ void Element::updateFocusAppearance(bool /*restorePreviousSelection*/) |
// and we don't want to change the focus to a new Element. |
frame->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotSetFocus); |
frame->selection().revealSelection(); |
- } else if (renderer() && !renderer()->isRenderPart()) |
+ } else if (renderer() && !renderer()->isLayoutPart()) |
renderer()->scrollRectToVisible(boundingBox()); |
} |