Index: Source/web/WebFrameWidgetImpl.cpp |
diff --git a/Source/web/WebFrameWidgetImpl.cpp b/Source/web/WebFrameWidgetImpl.cpp |
index 9d524dd5aee20154200f6ed06270a4cb1e3f80a1..cac9449ff407e792b9c4da16d17e0efd88f44d25 100644 |
--- a/Source/web/WebFrameWidgetImpl.cpp |
+++ b/Source/web/WebFrameWidgetImpl.cpp |
@@ -683,7 +683,7 @@ void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEv |
result.setToShadowHostIfInClosedShadowRoot(); |
Node* hitNode = result.innerNonSharedNode(); |
- if (!result.scrollbar() && hitNode && hitNode->renderer() && hitNode->renderer()->isEmbeddedObject()) { |
+ if (!result.scrollbar() && hitNode && hitNode->layoutObject() && hitNode->layoutObject()->isEmbeddedObject()) { |
m_mouseCaptureNode = hitNode; |
TRACE_EVENT_ASYNC_BEGIN0("input", "capturing mouse", this); |
} |
@@ -748,7 +748,7 @@ bool WebFrameWidgetImpl::handleKeyEvent(const WebKeyboardEvent& event) |
// Suppress the next keypress event unless the focused node is a plug-in node. |
// (Flash needs these keypress events to handle non-US keyboards.) |
Element* element = focusedElement(); |
- if (!element || !element->renderer() || !element->renderer()->isEmbeddedObject()) |
+ if (!element || !element->layoutObject() || !element->layoutObject()->isEmbeddedObject()) |
m_suppressNextKeypressEvent = true; |
} |
return true; |