RESOLVED FIXED 74080
Upsteam the Qt changes to the EditorState
https://bugs.webkit.org/show_bug.cgi?id=74080
Summary Upsteam the Qt changes to the EditorState
Kenneth Rohde Christiansen
Reported 2011-12-08 05:28:50 PST
SSIA
Attachments
Patch (13.06 KB, patch)
2011-12-08 05:29 PST, Kenneth Rohde Christiansen
gustavo.noronha: commit-queue-
Patch (16.82 KB, patch)
2011-12-08 05:42 PST, Kenneth Rohde Christiansen
hausmann: review+
hausmann: commit-queue-
Kenneth Rohde Christiansen
Comment 1 2011-12-08 05:29:43 PST
Collabora GTK+ EWS bot
Comment 2 2011-12-08 05:38:42 PST
Kenneth Rohde Christiansen
Comment 3 2011-12-08 05:40:34 PST
kling help me you xcode expert you...
Kenneth Rohde Christiansen
Comment 4 2011-12-08 05:42:25 PST
Created attachment 118373 [details] Patch Forgot to add the file :-)
Simon Hausmann
Comment 5 2011-12-08 06:24:51 PST
Comment on attachment 118373 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118373&action=review r=me with one change > Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp:193 > + EditorState state = m_page->editorState(); > > - ExceptionCode ec = 0; > - RefPtr<Range> tempRange = range->cloneRange(ec); > - tempRange->setStart(tempRange->startContainer(ec), tempRange->startOffset(ec) + location, ec); > - IntRect caretRect = frame->view()->contentsToWindow(frame->editor()->firstRectForRange(tempRange.get())); > - IntRect nodeRect = frame->view()->contentsToWindow(scope->getRect()); > - > - m_page->send(Messages::WebPageProxy::FocusEditableArea(caretRect, nodeRect)); > - } > +#if PLATFORM(QT) > + if (Element* scope = frame->selection()->rootEditableElement()) > + m_page->send(Messages::WebPageProxy::FocusEditableArea(state.microFocus, scope->getRect())); > #endif > > m_page->send(Messages::WebPageProxy::EditorStateChanged(m_page->editorState())); The last call there should use the newly introduced state variable instead of requesting editorState() again.
Kenneth Rohde Christiansen
Comment 6 2011-12-08 06:27:36 PST
Comment on attachment 118373 [details] Patch Landed in r102334
Simon Hausmann
Comment 8 2011-12-08 08:08:00 PST
I think I fixed that in http://trac.webkit.org/changeset/102341 Gotta run. Can somebody close this bug report after checking the bot results? thanks :)
Csaba Osztrogonác
Comment 9 2011-12-08 08:18:41 PST
(In reply to comment #8) > I think I fixed that in http://trac.webkit.org/changeset/102341 > > Gotta run. Can somebody close this bug report after checking the bot results? thanks :) Yes, it fixed the bug.
Kenneth Rohde Christiansen
Comment 10 2011-12-08 14:02:11 PST
(In reply to comment #7) > It made 9 editing tests crash: http://build.webkit.sed.hu/results/x86-32%20Linux%20Qt%20Release%20WebKit2/r102334%20%2816707%29/results.html I wonder if those are due to full document editing... need to have a look at that some time.
Note You need to log in before you can comment on or make changes to this bug.