Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 7537380c7f837972e4f5a585e4e60815ba3d94a6..8a0242d7b0c2973a20659ce5e0b6568ff91193fa 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -163,6 +163,7 @@ |
#include "core/inspector/InspectorTraceEvents.h" |
#include "core/inspector/ScriptCallStack.h" |
#include "core/layout/HitTestResult.h" |
+#include "core/layout/LayoutPart.h" |
#include "core/layout/TextAutosizer.h" |
#include "core/layout/compositing/LayerCompositor.h" |
#include "core/loader/CookieJar.h" |
@@ -180,7 +181,6 @@ |
#include "core/page/Page.h" |
#include "core/page/PointerLockController.h" |
#include "core/page/scrolling/ScrollingCoordinator.h" |
-#include "core/rendering/RenderPart.h" |
#include "core/rendering/RenderView.h" |
#include "core/svg/SVGDocumentExtensions.h" |
#include "core/svg/SVGTitleElement.h" |
@@ -315,9 +315,9 @@ static bool shouldInheritSecurityOriginFromOwner(const KURL& url) |
static Widget* widgetForElement(const Element& focusedElement) |
{ |
LayoutObject* renderer = focusedElement.renderer(); |
- if (!renderer || !renderer->isRenderPart()) |
+ if (!renderer || !renderer->isLayoutPart()) |
return 0; |
- return toRenderPart(renderer)->widget(); |
+ return toLayoutPart(renderer)->widget(); |
} |
static bool acceptsEditingFocus(const Element& element) |