Changeset 205092 in webkit
- Timestamp:
- Aug 27, 2016, 5:36:05 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r205088 r205092 1 2016-08-27 Simon Fraser <simon.fraser@apple.com> 2 3 Add more Editing logging 4 https://bugs.webkit.org/show_bug.cgi?id=161287 5 6 Reviewed by Darin Adler. 7 8 Add logging which tracks how key events get from the UI process to the 9 web process, and down to form fields. 10 11 * editing/Editor.cpp: 12 (WebCore::Editor::handleTextEvent): 13 (WebCore::Editor::appliedEditing): 14 * editing/TypingCommand.cpp: 15 (WebCore::TypingCommand::insertText): 16 (WebCore::TypingCommand::insertTextAndNotifyAccessibility): 17 * html/HTMLTextFormControlElement.cpp: 18 (WebCore::HTMLTextFormControlElement::didEditInnerTextValue): 19 * page/EventHandler.cpp: 20 (WebCore::EventHandler::keyEvent): 21 (WebCore::EventHandler::handleTextInputEvent): 22 1 23 2016-08-27 Sam Weinig <sam@webkit.org> 2 24 -
trunk/Source/WebCore/editing/Editor.cpp
r204508 r205092 63 63 #include "KeyboardEvent.h" 64 64 #include "KillRing.h" 65 #include "Logging.h" 65 66 #include "MainFrame.h" 66 67 #include "ModifySelectionListLevel.h" … … 198 199 bool Editor::handleTextEvent(TextEvent* event) 199 200 { 201 LOG(Editing, "Editor %p handleTextEvent (data %s)", this, event->data().utf8().data()); 202 200 203 // Default event handling for Drag and Drop will be handled by DragController 201 204 // so we leave the event for it. … … 1034 1037 void Editor::appliedEditing(PassRefPtr<CompositeEditCommand> cmd) 1035 1038 { 1039 LOG(Editing, "Editor %p appliedEditing", this); 1040 1036 1041 document().updateLayout(); 1037 1042 -
trunk/Source/WebCore/editing/TypingCommand.cpp
r203322 r205092 39 39 #include "InsertParagraphSeparatorCommand.h" 40 40 #include "InsertTextCommand.h" 41 #include "Logging.h" 41 42 #include "MathMLElement.h" 42 43 #include "RenderElement.h" … … 167 168 RefPtr<Frame> frame = document.frame(); 168 169 ASSERT(frame); 170 171 LOG(Editing, "TypingCommand::insertText (text %s)", text.utf8().data()); 169 172 170 173 VisibleSelection currentSelection = frame->selection().selection(); … … 381 384 void TypingCommand::insertTextAndNotifyAccessibility(const String &text, bool selectInsertedText) 382 385 { 386 LOG(Editing, "TypingCommand %p insertTextAndNotifyAccessibility (text %s, selectInsertedText %d)", this, text.utf8().data(), selectInsertedText); 387 383 388 AccessibilityReplacedText replacedText(frame().selection().selection()); 384 389 insertText(text, selectInsertedText); -
trunk/Source/WebCore/html/HTMLTextFormControlElement.cpp
r203324 r205092 39 39 #include "HTMLNames.h" 40 40 #include "HTMLParserIdioms.h" 41 #include "Logging.h" 41 42 #include "NodeTraversal.h" 42 43 #include "Page.h" … … 109 110 if (!isTextFormControl()) 110 111 return; 112 113 LOG(Editing, "HTMLTextFormControlElement %p didEditInnerTextValue", this); 111 114 112 115 m_lastChangeWasUserEdit = true; -
trunk/Source/WebCore/page/EventHandler.cpp
r204560 r205092 64 64 #include "InspectorInstrumentation.h" 65 65 #include "KeyboardEvent.h" 66 #include "Logging.h" 66 67 #include "MainFrame.h" 67 68 #include "MouseEvent.h" … … 3014 3015 RefPtr<FrameView> protector(m_frame.view()); 3015 3016 3017 LOG(Editing, "EventHandler %p keyEvent (text %s keyIdentifier %s)", this, initialKeyEvent.text().utf8().data(), initialKeyEvent.keyIdentifier().utf8().data()); 3018 3016 3019 #if ENABLE(FULLSCREEN_API) 3017 3020 if (m_frame.document()->webkitIsFullScreen() && !isKeyEventAllowedInFullScreen(initialKeyEvent)) … … 3537 3540 bool EventHandler::handleTextInputEvent(const String& text, Event* underlyingEvent, TextEventInputType inputType) 3538 3541 { 3542 LOG(Editing, "EventHandler %p handleTextInputEvent (text %s)", this, text.utf8().data()); 3543 3539 3544 // Platforms should differentiate real commands like selectAll from text input in disguise (like insertNewline), 3540 3545 // and avoid dispatching text input events from keydown default handlers. -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r205004 r205092 1959 1959 1960 1960 m_process->responsivenessTimer().start(); 1961 if (m_keyEventQueue.size() == 1) // Otherwise, sent from DidReceiveEvent message handler. 1961 if (m_keyEventQueue.size() == 1) { // Otherwise, sent from DidReceiveEvent message handler. 1962 LOG(KeyHandling, " UI process: sent keyEvent from handleKeyboardEvent"); 1962 1963 m_process->send(Messages::WebPage::KeyEvent(event), m_pageID); 1964 } 1963 1965 } 1964 1966 … … 4858 4860 case WebEvent::RawKeyDown: 4859 4861 case WebEvent::Char: { 4860 LOG(KeyHandling, "WebPageProxy::didReceiveEvent: %s ", webKeyboardEventTypeString(type));4862 LOG(KeyHandling, "WebPageProxy::didReceiveEvent: %s (queue empty %d)", webKeyboardEventTypeString(type), m_keyEventQueue.isEmpty()); 4861 4863 4862 4864 MESSAGE_CHECK(!m_keyEventQueue.isEmpty()); … … 4865 4867 MESSAGE_CHECK(type == event.type()); 4866 4868 4867 if (!m_keyEventQueue.isEmpty()) 4869 if (!m_keyEventQueue.isEmpty()) { 4870 LOG(KeyHandling, " UI process: sent keyEvent from didReceiveEvent"); 4868 4871 m_process->send(Messages::WebPage::KeyEvent(m_keyEventQueue.first()), m_pageID); 4869 else {4872 } else { 4870 4873 if (auto* automationSession = process().processPool().automationSession()) 4871 4874 automationSession->keyboardEventsFlushedForPage(*this);
Note:
See TracChangeset
for help on using the changeset viewer.