Changeset 79953 in webkit
- Timestamp:
- Feb 28, 2011 5:47:06 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r79951 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Updated expected results after the change that syncs the WebKit isEditable 9 and WebCore isContentEditable. 10 11 * platform/mac/editing/selection/designmode-no-caret-expected.txt: 12 1 13 2011-02-28 Kent Tamura <tkent@chromium.org> 2 14 -
trunk/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt
r69509 r79953 10 10 RenderText {#text} at (0,0) size 784x54 11 11 text run at (0,0) width 759: "This tests to see that a caret is placed inside an editable document that is entirely editable even when no caret is requested" 12 text run at (759,0) width 4: " " 12 13 text run at (0,18) width 118: "programmatically. " 13 14 text run at (118,18) width 187: "We do this as a convenience. " 14 15 text run at (305,18) width 479: "Right now, we only do this convenience when a document's frame becomes" 16 text run at (784,18) width 0: " " 15 17 text run at (0,36) width 378: "first responder or when a document's window becomes key." 16 18 RenderBlock {PRE} at (0,67) size 784x15 -
trunk/Source/WebCore/ChangeLog
r79951 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Frame::isContentEditable is currently based on two things: Editor::clientIsEditable and 9 Document::inDesignMode. In fact, it should only rely on Document::inDesignMode. As a result, 10 Editor::clientIsEditable and its client-side implementation can be removed. 11 12 * WebCore.exp.in: 13 * accessibility/AccessibilityRenderObject.cpp: 14 (WebCore::AccessibilityRenderObject::isReadOnly): 15 * editing/Editor.cpp: 16 * editing/Editor.h: 17 * editing/SelectionController.cpp: 18 (WebCore::SelectionController::setSelectionFromNone): 19 * html/HTMLElement.cpp: 20 (WebCore::HTMLElement::isContentEditable): 21 (WebCore::HTMLElement::isContentRichlyEditable): 22 * page/DragController.cpp: 23 (WebCore::DragController::operationForLoad): 24 * page/EditorClient.h: 25 * page/Frame.cpp: 26 * page/Frame.h: 27 1 28 2011-02-28 Kent Tamura <tkent@chromium.org> 2 29 -
trunk/Source/WebCore/WebCore.exp.in
r79793 r79953 783 783 __ZN7WebCore8Document11createRangeEv 784 784 __ZN7WebCore8Document12updateLayoutEv 785 __ZN7WebCore8Document13setDesignModeENS0_13InheritedBoolE 785 786 __ZN7WebCore8Document13svgExtensionsEv 786 787 __ZN7WebCore8Document14setFocusedNodeEN3WTF10PassRefPtrINS_4NodeEEE … … 1226 1227 __ZNK7WebCore8Document10renderViewEv 1227 1228 __ZNK7WebCore8Document11completeURLERKN3WTF6StringE 1229 __ZNK7WebCore8Document12inDesignModeEv 1228 1230 __ZNK7WebCore8Document13axObjectCacheEv 1229 1231 __ZNK7WebCore8Document13nodesFromRectEiijjjjb -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r79920 r79953 664 664 if (body && body->isContentEditable()) 665 665 return false; 666 667 Frame* frame = document->frame(); 668 if (!frame) 669 return true; 670 671 return !frame->isContentEditable(); 666 667 return !document->inDesignMode(); 672 668 } 673 669 -
trunk/Source/WebCore/editing/Editor.cpp
r79936 r79953 956 956 } 957 957 958 bool Editor::clientIsEditable() const959 {960 return client() && client()->isEditable();961 }962 963 958 // CSS properties that only has a visual difference when applied to text. 964 959 static const int textOnlyProperties[] = { -
trunk/Source/WebCore/editing/Editor.h
r79494 r79953 173 173 bool selectionStartHasStyle(CSSStyleDeclaration*) const; 174 174 175 bool clientIsEditable() const;176 177 175 void setShouldStyleWithCSS(bool flag) { m_shouldStyleWithCSS = flag; } 178 176 bool shouldStyleWithCSS() const { return m_shouldStyleWithCSS; } -
trunk/Source/WebCore/editing/SelectionController.cpp
r79875 r79953 1814 1814 Document* document = m_frame->document(); 1815 1815 bool caretBrowsing = m_frame->settings() && m_frame->settings()->caretBrowsingEnabled(); 1816 if (!isNone() || !( m_frame->isContentEditable() || caretBrowsing))1816 if (!isNone() || !(document->inDesignMode() || caretBrowsing)) 1817 1817 return; 1818 1818 -
trunk/Source/WebCore/html/HTMLElement.cpp
r79269 r79953 660 660 bool HTMLElement::isContentEditable() const 661 661 { 662 if (document()-> frame() && document()->frame()->isContentEditable())662 if (document()->inDesignMode()) 663 663 return true; 664 664 … … 679 679 bool HTMLElement::isContentRichlyEditable() const 680 680 { 681 if (document()-> frame() && document()->frame()->isContentEditable())681 if (document()->inDesignMode()) 682 682 return true; 683 683 -
trunk/Source/WebCore/page/DragController.cpp
r79196 r79953 354 354 ASSERT(dragData); 355 355 Document* doc = m_page->mainFrame()->documentAtPoint(dragData->clientPosition()); 356 if (doc && (m_didInitiateDrag || doc->isPluginDocument() || (doc->frame() && doc->frame()->editor()->clientIsEditable())))356 if (doc && (m_didInitiateDrag || doc->isPluginDocument() || doc->inDesignMode())) 357 357 return DragOperationNone; 358 358 return dragOperation(dragData); -
trunk/Source/WebCore/page/EditorClient.h
r78632 r79953 88 88 virtual void toggleGrammarChecking() = 0; 89 89 virtual int spellCheckerDocumentTag() = 0; 90 91 virtual bool isEditable() = 0;92 90 93 91 virtual bool shouldBeginEditing(Range*) = 0; -
trunk/Source/WebCore/page/Frame.cpp
r76438 r79953 552 552 } 553 553 554 bool Frame::isContentEditable() const555 {556 if (m_editor.clientIsEditable())557 return true;558 return m_doc->inDesignMode();559 }560 561 554 #ifndef NDEBUG 562 555 static HashSet<Frame*>& keepAliveSet() -
trunk/Source/WebCore/page/Frame.h
r75652 r79953 183 183 DragImageRef dragImageForSelection(); 184 184 185 bool isContentEditable() const; // if true, everything in frame is editable186 187 185 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); 188 186 Document* documentAtPoint(const IntPoint& windowPoint); -
trunk/Source/WebKit/chromium/ChangeLog
r79942 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. 9 10 * src/EditorClientImpl.cpp: 11 * src/EditorClientImpl.h: 12 1 13 2011-02-28 Avi Drissman <avi@google.com> 2 14 -
trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp
r78532 r79953 186 186 ASSERT_NOT_REACHED(); 187 187 return 0; 188 }189 190 bool EditorClientImpl::isEditable()191 {192 return false;193 188 } 194 189 -
trunk/Source/WebKit/chromium/src/EditorClientImpl.h
r78533 r79953 60 60 virtual void toggleGrammarChecking(); 61 61 virtual int spellCheckerDocumentTag(); 62 virtual bool isEditable();63 62 virtual bool shouldBeginEditing(WebCore::Range*); 64 63 virtual bool shouldEndEditing(WebCore::Range*); -
trunk/Source/WebKit/efl/ChangeLog
r79838 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. 9 10 * WebCoreSupport/EditorClientEfl.cpp: 11 * WebCoreSupport/EditorClientEfl.h: 12 1 13 2011-02-27 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 14 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r78532 r79953 144 144 { 145 145 notImplemented(); 146 }147 148 bool EditorClientEfl::isEditable()149 {150 notImplemented();151 return false;152 146 } 153 147 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r78533 r79953 62 62 virtual int spellCheckerDocumentTag(); 63 63 64 virtual bool isEditable();65 66 64 virtual bool shouldBeginEditing(Range*); 67 65 virtual bool shouldEndEditing(Range*); -
trunk/Source/WebKit/gtk/ChangeLog
r79802 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode. 9 10 * WebCoreSupport/EditorClientGtk.cpp: 11 * WebCoreSupport/EditorClientGtk.h: 12 * webkit/webkitwebview.cpp: 13 (webkit_web_view_init): 14 (webkit_web_view_get_editable): 15 (webkit_web_view_set_editable): 16 * webkit/webkitwebviewprivate.h: 17 1 18 2011-02-26 Lukasz Slachciak <l.slachciak@samsung.com> 2 19 -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
r79329 r79953 482 482 } 483 483 484 bool EditorClient::isEditable()485 {486 return webkit_web_view_get_editable(m_webView);487 }488 489 484 void EditorClient::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand> command) 490 485 { -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.h
r79130 r79953 88 88 virtual int spellCheckerDocumentTag(); 89 89 90 virtual bool isEditable();91 92 90 virtual bool shouldBeginEditing(WebCore::Range*); 93 91 virtual bool shouldEndEditing(WebCore::Range*); -
trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp
r79215 r79953 3546 3546 priv->mainFrame = WEBKIT_WEB_FRAME(webkit_web_frame_new(webView)); 3547 3547 priv->lastPopupXPosition = priv->lastPopupYPosition = -1; 3548 priv->editable = false;3549 3548 3550 3549 priv->backForwardList = adoptGRef(webkit_web_back_forward_list_new_with_web_view(webView)); … … 4340 4339 g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), FALSE); 4341 4340 4342 WebKitWebViewPrivate* priv = webView->priv; 4343 4344 return priv->editable; 4341 Frame* frame = core(webView)->mainFrame(); 4342 return frame && frame->document()->inDesignMode(); 4345 4343 } 4346 4344 … … 4367 4365 g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView)); 4368 4366 4369 WebKitWebViewPrivate* priv = webView->priv;4370 4371 4367 Frame* frame = core(webView)->mainFrame(); 4372 4368 g_return_if_fail(frame); … … 4374 4370 // TODO: What happens when the frame is replaced? 4375 4371 flag = flag != FALSE; 4376 if (flag == priv->editable)4372 if (flag == webkit_web_view_get_editable(webView)) 4377 4373 return; 4378 4374 4379 priv->editable = flag;4375 frame->document()->setDesignMode(flag ? WebCore::Document::on : WebCore::Document::off); 4380 4376 4381 4377 if (flag) { -
trunk/Source/WebKit/gtk/webkit/webkitwebviewprivate.h
r75481 r79953 66 66 67 67 HashSet<GtkWidget*> children; 68 bool editable;69 68 GRefPtr<GtkIMContext> imContext; 70 69 -
trunk/Source/WebKit/haiku/ChangeLog
r79196 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. 9 10 * WebCoreSupport/EditorClientHaiku.cpp: 11 * WebCoreSupport/EditorClientHaiku.h: 12 1 13 2011-02-17 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
r79196 r79953 114 114 } 115 115 116 bool EditorClientHaiku::isEditable()117 {118 // FIXME: should be controllable119 return false;120 }121 122 116 bool EditorClientHaiku::shouldBeginEditing(WebCore::Range*) 123 117 { -
trunk/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.h
r78533 r79953 58 58 virtual void toggleGrammarChecking(); 59 59 virtual int spellCheckerDocumentTag(); 60 61 virtual bool isEditable();62 60 63 61 virtual bool shouldBeginEditing(Range*); -
trunk/Source/WebKit/mac/ChangeLog
r79904 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode. 9 10 * WebCoreSupport/WebEditorClient.h: 11 * WebCoreSupport/WebEditorClient.mm: 12 * WebView/WebView.mm: 13 (-[WebView setEditable:]): 14 (-[WebView isEditable]): 15 * WebView/WebViewData.h: 16 1 17 2011-02-28 Oliver Hunt <oliver@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.h
r78632 r79953 52 52 virtual bool smartInsertDeleteEnabled(); 53 53 virtual bool isSelectTrailingWhitespaceEnabled(); 54 virtual bool isEditable();55 54 56 55 virtual bool shouldDeleteRange(WebCore::Range*); -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
r78632 r79953 245 245 { 246 246 return [m_webView spellCheckerDocumentTag]; 247 }248 249 bool WebEditorClient::isEditable()250 {251 return [m_webView isEditable];252 247 } 253 248 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r79771 r79953 4989 4989 - (void)setEditable:(BOOL)flag 4990 4990 { 4991 if (_private->editable != flag) { 4992 _private->editable = flag; 4991 if ([self isEditable] != flag) { 4993 4992 if (!_private->tabKeyCyclesThroughElementsChanged && _private->page) 4994 4993 _private->page->setTabKeyCyclesThroughElements(!flag); 4995 4994 Frame* mainFrame = [self _mainCoreFrame]; 4996 4995 if (mainFrame) { 4996 mainFrame->document()->setDesignMode(flag ? WebCore::Document::on : WebCore::Document::off); 4997 4997 if (flag) { 4998 4998 mainFrame->editor()->applyEditingStyleToBodyElement(); … … 5007 5007 - (BOOL)isEditable 5008 5008 { 5009 return _private->editable; 5009 Frame* mainFrame = [self _mainCoreFrame]; 5010 if (mainFrame) 5011 return mainFrame->document()->inDesignMode(); 5012 return false; 5010 5013 } 5011 5014 -
trunk/Source/WebKit/mac/WebView/WebViewData.h
r75277 r79953 106 106 BOOL mainFrameDocumentReady; 107 107 BOOL drawsBackground; 108 BOOL editable;109 108 BOOL tabKeyCyclesThroughElementsChanged; 110 109 BOOL becomingFirstResponder; -
trunk/Source/WebKit/qt/Api/qwebpage.cpp
r79589 r79953 302 302 #endif 303 303 , settings(0) 304 , editable(false)305 304 , useFixedLayout(false) 306 305 , pluginFactory(0) … … 3161 3160 void QWebPage::setContentEditable(bool editable) 3162 3161 { 3163 if (d->editable != editable) { 3164 d->editable = editable; 3162 if (isContentEditable() != editable) { 3165 3163 d->page->setTabKeyCyclesThroughElements(!editable); 3166 3164 if (d->mainFrame) { 3167 3165 WebCore::Frame* frame = d->mainFrame->d->frame; 3166 frame->document()->setDesignMode(editable ? WebCore::Document::on : WebCore::Document::off); 3168 3167 if (editable) { 3169 3168 frame->editor()->applyEditingStyleToBodyElement(); … … 3179 3178 bool QWebPage::isContentEditable() const 3180 3179 { 3181 return d-> editable;3180 return d->mainFrame && d->mainFrame->d->frame->document()->inDesignMode(); 3182 3181 } 3183 3182 -
trunk/Source/WebKit/qt/Api/qwebpage_p.h
r75870 r79953 201 201 QWebSettings *settings; 202 202 QPalette palette; 203 bool editable;204 203 bool useFixedLayout; 205 204 -
trunk/Source/WebKit/qt/ChangeLog
r79916 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode. 9 10 * Api/qwebpage.cpp: 11 (QWebPagePrivate::QWebPagePrivate): 12 (QWebPage::setContentEditable): 13 (QWebPage::isContentEditable): 14 * Api/qwebpage_p.h: 15 * WebCoreSupport/EditorClientQt.cpp: 16 * WebCoreSupport/EditorClientQt.h: 17 1 18 2011-02-28 Alexis Menard <alexis.menard@openbossa.org> 2 19 -
trunk/Source/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r79196 r79953 239 239 } 240 240 241 bool EditorClientQt::isEditable()242 {243 return m_page->isContentEditable();244 }245 246 241 void EditorClientQt::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand> cmd) 247 242 { -
trunk/Source/WebKit/qt/WebCoreSupport/EditorClientQt.h
r78533 r79953 58 58 virtual int spellCheckerDocumentTag(); 59 59 virtual bool selectWordBeforeMenuEvent(); 60 virtual bool isEditable();61 60 62 61 virtual bool shouldBeginEditing(Range*); -
trunk/Source/WebKit/win/ChangeLog
r79938 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. 9 10 * WebCoreSupport/WebEditorClient.cpp: 11 * WebCoreSupport/WebEditorClient.h: 12 1 13 2011-02-28 Adam Roben <aroben@apple.com> 2 14 -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.cpp
r78532 r79953 630 630 } 631 631 632 bool WebEditorClient::isEditable()633 {634 return false;635 }636 637 632 void WebEditorClient::ignoreWordInSpellDocument(const String& word) 638 633 { -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.h
r78533 r79953 50 50 virtual void toggleContinuousSpellChecking(); 51 51 virtual int spellCheckerDocumentTag(); 52 53 virtual bool isEditable();54 52 55 53 virtual bool shouldBeginEditing(WebCore::Range*); -
trunk/Source/WebKit/wince/ChangeLog
r79107 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. 9 10 * WebCoreSupport/EditorClientWinCE.cpp: 11 * WebCoreSupport/EditorClientWinCE.h: 12 1 13 2011-02-19 Charlie Reis <creis@chromium.org> 2 14 -
trunk/Source/WebKit/wince/WebCoreSupport/EditorClientWinCE.cpp
r78532 r79953 143 143 { 144 144 notImplemented(); 145 }146 147 bool EditorClientWinCE::isEditable()148 {149 notImplemented();150 return false;151 145 } 152 146 -
trunk/Source/WebKit/wince/WebCoreSupport/EditorClientWinCE.h
r78533 r79953 49 49 virtual void toggleGrammarChecking(); 50 50 virtual int spellCheckerDocumentTag(); 51 52 virtual bool isEditable();53 51 54 52 virtual bool shouldBeginEditing(WebCore::Range*); -
trunk/Source/WebKit/wx/ChangeLog
r79589 r79953 1 2011-02-28 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 Remove the support of Frame::isContentEditable and its dependencies. 6 https://bugs.webkit.org/show_bug.cgi?id=54292 7 8 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode. 9 10 * WebFrame.cpp: 11 (wxWebFrame::wxWebFrame): 12 (wxWebFrame::MakeEditable): 13 (wxWebFrame::IsEditable): 14 * WebFrame.h: 15 * WebKitSupport/EditorClientWx.cpp: 16 * WebKitSupport/EditorClientWx.h: 17 * WebView.cpp: 18 (wxWebView::wxWebView): 19 * WebView.h: 20 1 21 2011-02-24 Peter Kasting <pkasting@google.com> 2 22 -
trunk/Source/WebKit/wx/WebFrame.cpp
r70931 r79953 78 78 wxWebFrame::wxWebFrame(wxWebView* container, wxWebFrame* parent, WebViewFrameData* data) : 79 79 m_textMagnifier(1.0), 80 m_isEditable(false),81 80 m_isInitialized(false), 82 81 m_beingDestroyed(false) … … 404 403 void wxWebFrame::MakeEditable(bool enable) 405 404 { 406 m_isEditable = enable; 407 } 408 409 405 if (enable != IsEditable() && m_impl->frame && m_impl->frame->document()) 406 m_impl->frame->document()->setDesignMode(enable ? WebCore::Document::on : WebCore::Document::off); 407 } 408 409 bool wxWebFrame::IsEditable() 410 { 411 if (m_impl->frame && m_impl->frame->document()) 412 return m_impl->frame->document()->inDesignMode(); 413 return false; 414 } 410 415 411 416 bool wxWebFrame::CanCopy() -
trunk/Source/WebKit/wx/WebFrame.h
r66314 r79953 160 160 void ResetTextSize(); 161 161 void MakeEditable(bool enable); 162 bool IsEditable() const { return m_isEditable; }162 bool IsEditable() const; 163 163 164 164 WebCore::Frame* GetFrame(); … … 174 174 private: 175 175 float m_textMagnifier; 176 bool m_isEditable;177 176 bool m_isInitialized; 178 177 bool m_beingDestroyed; -
trunk/Source/WebKit/wx/WebKitSupport/EditorClientWx.cpp
r78532 r79953 198 198 } 199 199 200 bool EditorClientWx::isEditable()201 {202 Frame* frame = m_page->focusController()->focusedOrMainFrame();203 204 if (frame) {205 wxWebView* webKitWin = dynamic_cast<wxWebView*>(frame->view()->hostWindow()->platformPageClient());206 if (webKitWin)207 return webKitWin->IsEditable();208 }209 return false;210 }211 212 200 bool EditorClientWx::shouldBeginEditing(Range*) 213 201 { -
trunk/Source/WebKit/wx/WebKitSupport/EditorClientWx.h
r78533 r79953 58 58 59 59 virtual bool selectWordBeforeMenuEvent(); 60 virtual bool isEditable();61 60 62 61 virtual bool shouldBeginEditing(Range*); -
trunk/Source/WebKit/wx/WebView.cpp
r75857 r79953 328 328 wxWebView::wxWebView() : 329 329 m_textMagnifier(1.0), 330 m_isEditable(false),331 330 m_isInitialized(false), 332 331 m_beingDestroyed(false), … … 339 338 const wxSize& size, long style, const wxString& name) : 340 339 m_textMagnifier(1.0), 341 m_isEditable(false),342 340 m_isInitialized(false), 343 341 m_beingDestroyed(false), -
trunk/Source/WebKit/wx/WebView.h
r71499 r79953 250 250 #endif 251 251 float m_textMagnifier; 252 bool m_isEditable;253 252 bool m_isInitialized; 254 253 bool m_beingDestroyed;
Note: See TracChangeset
for help on using the changeset viewer.