| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 58d99bf08470f84e08f6c4da5db64371f285f00c..7daeb7254191ee6634df57f4c01271910e256a6d 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -1151,11 +1151,11 @@ WebInputEventResult WebViewImpl::handleKeyEvent(const WebKeyboardEvent& event) {
|
| if (event.windowsKeyCode == VKEY_TAB) {
|
| // If the plugin supports keyboard focus then we should not send a tab
|
| // keypress event.
|
| - FrameViewBase* frameViewBase =
|
| - toLayoutPart(element->layoutObject())->frameViewBase();
|
| - if (frameViewBase && frameViewBase->isPluginContainer()) {
|
| + PluginView* pluginView =
|
| + toLayoutPart(element->layoutObject())->plugin();
|
| + if (pluginView && pluginView->isPluginContainer()) {
|
| WebPluginContainerImpl* plugin =
|
| - toWebPluginContainerImpl(frameViewBase);
|
| + toWebPluginContainerImpl(pluginView);
|
| if (plugin && plugin->supportsKeyboardFocus())
|
| m_suppressNextKeypressEvent = true;
|
| }
|
| @@ -3339,10 +3339,9 @@ void WebViewImpl::performPluginAction(const WebPluginAction& action,
|
|
|
| LayoutObject* object = node->layoutObject();
|
| if (object && object->isLayoutPart()) {
|
| - FrameViewBase* frameViewWidget = toLayoutPart(object)->frameViewBase();
|
| - if (frameViewWidget && frameViewWidget->isPluginContainer()) {
|
| - WebPluginContainerImpl* plugin =
|
| - toWebPluginContainerImpl(frameViewWidget);
|
| + PluginView* pluginView = toLayoutPart(object)->plugin();
|
| + if (pluginView && pluginView->isPluginContainer()) {
|
| + WebPluginContainerImpl* plugin = toWebPluginContainerImpl(pluginView);
|
| switch (action.type) {
|
| case WebPluginAction::Rotate90Clockwise:
|
| plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise);
|
|
|