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

Unified Diff: third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp

Issue 2910233002: Do not fallback to FocusedOrMainFrame() in FocusedLocalFrameInWidget() (Closed)
Patch Set: Fixed a crashing test Created 3 years, 7 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/frame/WebFrameWidgetBase.cpp
diff --git a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp
index ee49720c5701c7fda347cc86a82bc34600f39e00..a44b6351430103f756cabfa87b143f647d79f69d 100644
--- a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp
+++ b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.cpp
@@ -324,4 +324,8 @@ LocalFrame* WebFrameWidgetBase::FocusedLocalFrameInWidget() const {
: nullptr;
}
+LocalFrame* WebFrameWidgetBase::FocusedLocalFrameAvailableForIme() const {
+ return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698