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

Unified Diff: content/renderer/text_input_client_observer.cc

Issue 2012823003: Move IME related functions from WebFrame to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 6 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: content/renderer/text_input_client_observer.cc
diff --git a/content/renderer/text_input_client_observer.cc b/content/renderer/text_input_client_observer.cc
index 3c953eebaad238155ab72433c28dbed90b5422e2..fa8aba51cca07a7373add15e3b6262ae725891cd 100644
--- a/content/renderer/text_input_client_observer.cc
+++ b/content/renderer/text_input_client_observer.cc
@@ -87,7 +87,7 @@ void TextInputClientObserver::OnFirstRectForCharacterRange(gfx::Range range) {
} else
#endif
{
- blink::WebFrame* frame = webview()->focusedFrame();
+ blink::WebLocalFrame* frame = webview()->focusedFrame();
dcheng 2016/06/13 17:29:45 Same questions in this file about null |frame|.
if (frame) {
blink::WebRect web_rect;
frame->firstRectForCharacterRange(range.start(), range.length(),
@@ -102,7 +102,7 @@ void TextInputClientObserver::OnStringForRange(gfx::Range range) {
#if defined(OS_MACOSX)
blink::WebPoint baselinePoint;
NSAttributedString* string = nil;
- blink::WebLocalFrame* frame = webview()->focusedFrame()->toWebLocalFrame();
+ blink::WebLocalFrame* frame = webview()->focusedFrame();
if (frame) {
string = blink::WebSubstringUtil::attributedSubstringInRange(
frame, range.start(), range.length(), &baselinePoint);

Powered by Google App Engine
This is Rietveld 408576698