Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 2806223002: Use FrameView rather than FrameViewBase for WebInputEventConversion (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
index 4c0a6e9e061dc452ca7eaa548090c21cc3ebd070..7802cd487bbc30deeef86de85c1bef7fb4cb9b58 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -711,7 +711,7 @@ void WebPluginContainerImpl::HandleMouseEvent(MouseEvent* event) {
FrameView* parent_view = ToFrameView(Parent());
WebMouseEventBuilder transformed_event(
- this, LayoutItem(element_->GetLayoutObject()), *event);
+ ToFrameView(Parent()), LayoutItem(element_->GetLayoutObject()), *event);
if (transformed_event.GetType() == WebInputEvent::kUndefined)
return;
@@ -882,8 +882,8 @@ void WebPluginContainerImpl::HandleGestureEvent(GestureEvent* event) {
}
void WebPluginContainerImpl::SynthesizeMouseEventIfPossible(TouchEvent* event) {
- WebMouseEventBuilder web_event(this, LayoutItem(element_->GetLayoutObject()),
- *event);
+ WebMouseEventBuilder web_event(
+ ToFrameView(Parent()), LayoutItem(element_->GetLayoutObject()), *event);
if (web_event.GetType() == WebInputEvent::kUndefined)
return;

Powered by Google App Engine
This is Rietveld 408576698