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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2810873007: Replace LayoutPart::GetFrameViewBase with GetNodeFrameView (Closed)
Patch Set: No need for child_frame_view var 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/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 2ef84cb309cc03a7c26080a7b971a37d66624772..d00fd7ecb5d230945487771ea2d8e54a45adc395 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -321,12 +321,11 @@ static LocalFrame* SubframeForTargetNode(Node* node) {
if (!layout_object || !layout_object->IsLayoutPart())
return nullptr;
- FrameViewBase* frame_view_base =
- ToLayoutPart(layout_object)->GetFrameViewBase();
- if (!frame_view_base || !frame_view_base->IsFrameView())
+ FrameView* frame_view = ToLayoutPart(layout_object)->ChildFrameView();
+ if (!frame_view)
return nullptr;
- return &ToFrameView(frame_view_base)->GetFrame();
+ return &frame_view->GetFrame();
}
static LocalFrame* SubframeForHitTestResult(
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698