| Index: Source/web/WebPluginContainerImpl.cpp
|
| diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
|
| index 1f77fd00662e66a03be3da8ed006a621a8fb54de..85209799e30ea93893edebf5b968d4a88738a44d 100644
|
| --- a/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/Source/web/WebPluginContainerImpl.cpp
|
| @@ -697,7 +697,7 @@ void WebPluginContainerImpl::handleMouseEvent(MouseEvent* event)
|
| // A windowless plugin can change the cursor in response to a mouse move
|
| // event. We need to reflect the changed cursor in the frame view as the
|
| // mouse is moved in the boundaries of the windowless plugin.
|
| - Page* page = parentView->frame()->page();
|
| + Page* page = parentView->frame().page();
|
| if (!page)
|
| return;
|
| ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(&page->chrome().client());
|
| @@ -852,11 +852,11 @@ void WebPluginContainerImpl::synthesizeMouseEventIfPossible(TouchEvent* event)
|
|
|
| void WebPluginContainerImpl::focusPlugin()
|
| {
|
| - Frame* containingFrame = static_cast<FrameView*>(parent())->frame();
|
| - if (Page* currentPage = containingFrame->page())
|
| - currentPage->focusController().setFocusedElement(m_element, containingFrame);
|
| + Frame& containingFrame = static_cast<FrameView*>(parent())->frame();
|
| + if (Page* currentPage = containingFrame.page())
|
| + currentPage->focusController().setFocusedElement(m_element, &containingFrame);
|
| else
|
| - containingFrame->document()->setFocusedElement(m_element);
|
| + containingFrame.document()->setFocusedElement(m_element);
|
| }
|
|
|
| void WebPluginContainerImpl::calculateGeometry(const IntRect& frameRect,
|
|
|