| Index: Source/web/ContextMenuClientImpl.cpp
|
| ===================================================================
|
| --- Source/web/ContextMenuClientImpl.cpp (revision 170478)
|
| +++ Source/web/ContextMenuClientImpl.cpp (working copy)
|
| @@ -195,17 +195,17 @@
|
|
|
| // Compute edit flags.
|
| data.editFlags = WebContextMenuData::CanDoNone;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canUndo())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canUndo())
|
| data.editFlags |= WebContextMenuData::CanUndo;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canRedo())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canRedo())
|
| data.editFlags |= WebContextMenuData::CanRedo;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canCut())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canCut())
|
| data.editFlags |= WebContextMenuData::CanCut;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canCopy())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canCopy())
|
| data.editFlags |= WebContextMenuData::CanCopy;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canPaste())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canPaste())
|
| data.editFlags |= WebContextMenuData::CanPaste;
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->editor().canDelete())
|
| + if (m_webView->focusedWebCoreFrame()->editor().canDelete())
|
| data.editFlags |= WebContextMenuData::CanDelete;
|
| // We can always select all...
|
| data.editFlags |= WebContextMenuData::CanSelectAll;
|
| @@ -322,9 +322,9 @@
|
| }
|
| } else {
|
| data.isSpellCheckingEnabled =
|
| - toLocalFrame(m_webView->focusedWebCoreFrame())->spellChecker().isContinuousSpellCheckingEnabled();
|
| + m_webView->focusedWebCoreFrame()->spellChecker().isContinuousSpellCheckingEnabled();
|
| // Spellchecking might be enabled for the field, but could be disabled on the node.
|
| - if (toLocalFrame(m_webView->focusedWebCoreFrame())->spellChecker().isSpellCheckingEnabledInFocusedNode()) {
|
| + if (m_webView->focusedWebCoreFrame()->spellChecker().isSpellCheckingEnabledInFocusedNode()) {
|
| data.misspelledWord = selectMisspelledWord(selectedFrame);
|
| if (m_webView->spellCheckClient()) {
|
| int misspelledOffset, misspelledLength;
|
|
|