m_mainFrame-> editor() – > hasComposition不是问题
在我的应用程序中,我已经在android webview中加载MVC页面。 MVC页面有两个用户名和密码的文本编辑器。 虽然重点放在文本框,我得到的警告: m_mainFrame->editor()->hasComposition not
。
为什么我得到这个警告?
注意 :将android从2.1升级到2.3.6后出现此错误
日志:
08-21 12:10:21.269: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:21.669: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:21.699: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:21.709: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.169: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.199: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.209: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.239: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.259: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.739: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.769: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.939: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:22.959: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:23.429: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:23.459: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:23.479: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:23.799: V/webview(2928): singleCursorHandlerTouchEvent -getEditableSupport FASLE 08-21 12:10:23.929: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:23.949: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.149: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.239: V/webview(2928): OnSizeChanged: Enter 08-21 12:10:24.269: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.319: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.339: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.469: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:24.479: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:26.969: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:26.989: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:27.139: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:27.299: V/webview(2928): singleCursorHandlerTouchEvent -getEditableSupport FASLE 08-21 12:10:27.319: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:27.349: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:27.379: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not 08-21 12:10:27.539: D/CONTEXT(2928): m_mainFrame->editor()->hasComposition not
这不是一个警告,也不是一个错误,每调用一次drawContentComposition就会显示一条debugging消息。 我想这表明hasComposition的价值是假的。
你不能做任何事情来避免它,所以它不应该打扰你…显然,在我看来。
由于WebKit的底层逻辑,你会得到这个消息给你的日志 – 应该有一些成员函数检查主框架中是否有任何组合,并将其结果logging下来,就是这样。 你不应该担心。