| 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 0211454c96ab62375d370672eccb16224c51b2fa..8a516877f6d7f2e5f4440fa70d9bd3d67dcd4df3 100644
|
| --- a/content/renderer/text_input_client_observer.cc
|
| +++ b/content/renderer/text_input_client_observer.cc
|
| @@ -11,9 +11,9 @@
|
| #include "third_party/WebKit/public/platform/WebPoint.h"
|
| #include "third_party/WebKit/public/platform/WebRect.h"
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| -#include "third_party/WebKit/public/web/mac/WebSubstringUtil.h"
|
| -#include "third_party/WebKit/public/web/WebFrame.h"
|
| +#include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| #include "third_party/WebKit/public/web/WebView.h"
|
| +#include "third_party/WebKit/public/web/mac/WebSubstringUtil.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| namespace content {
|
| @@ -89,7 +89,7 @@ void TextInputClientObserver::OnFirstRectForCharacterRange(gfx::Range range) {
|
| void TextInputClientObserver::OnStringForRange(gfx::Range range) {
|
| #if defined(OS_MACOSX)
|
| NSAttributedString* string = nil;
|
| - blink::WebFrame* frame = webview()->focusedFrame();
|
| + blink::WebLocalFrame* frame = webview()->focusedFrame()->toWebLocalFrame();
|
| if (frame) {
|
| string = blink::WebSubstringUtil::attributedSubstringInRange(
|
| frame, range.start(), range.length());
|
|
|