Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1033 // matches IE but not FF). | 1033 // matches IE but not FF). |
| 1034 should_style_with_css_(false), | 1034 should_style_with_css_(false), |
| 1035 kill_ring_(WTF::WrapUnique(new KillRing)), | 1035 kill_ring_(WTF::WrapUnique(new KillRing)), |
| 1036 are_marked_text_matches_highlighted_(false), | 1036 are_marked_text_matches_highlighted_(false), |
| 1037 default_paragraph_separator_(kEditorParagraphSeparatorIsDiv), | 1037 default_paragraph_separator_(kEditorParagraphSeparatorIsDiv), |
| 1038 overwrite_mode_enabled_(false) {} | 1038 overwrite_mode_enabled_(false) {} |
| 1039 | 1039 |
| 1040 Editor::~Editor() {} | 1040 Editor::~Editor() {} |
| 1041 | 1041 |
| 1042 void Editor::Clear() { | 1042 void Editor::Clear() { |
| 1043 GetFrame().GetInputMethodController().Clear(); | |
|
Nate Chapin
2017/05/17 18:18:59
This is also called during Document::Shutdown(), s
dcheng
2017/05/22 21:23:26
Due to InputMethodController::ContextDestroyed()?
| |
| 1044 should_style_with_css_ = false; | 1043 should_style_with_css_ = false; |
| 1045 default_paragraph_separator_ = kEditorParagraphSeparatorIsDiv; | 1044 default_paragraph_separator_ = kEditorParagraphSeparatorIsDiv; |
| 1046 last_edit_command_ = nullptr; | 1045 last_edit_command_ = nullptr; |
| 1047 undo_stack_->Clear(); | 1046 undo_stack_->Clear(); |
| 1048 } | 1047 } |
| 1049 | 1048 |
| 1050 bool Editor::InsertText(const String& text, KeyboardEvent* triggering_event) { | 1049 bool Editor::InsertText(const String& text, KeyboardEvent* triggering_event) { |
| 1051 return GetFrame().GetEventHandler().HandleTextInputEvent(text, | 1050 return GetFrame().GetEventHandler().HandleTextInputEvent(text, |
| 1052 triggering_event); | 1051 triggering_event); |
| 1053 } | 1052 } |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1818 | 1817 |
| 1819 DEFINE_TRACE(Editor) { | 1818 DEFINE_TRACE(Editor) { |
| 1820 visitor->Trace(frame_); | 1819 visitor->Trace(frame_); |
| 1821 visitor->Trace(last_edit_command_); | 1820 visitor->Trace(last_edit_command_); |
| 1822 visitor->Trace(undo_stack_); | 1821 visitor->Trace(undo_stack_); |
| 1823 visitor->Trace(mark_); | 1822 visitor->Trace(mark_); |
| 1824 visitor->Trace(typing_style_); | 1823 visitor->Trace(typing_style_); |
| 1825 } | 1824 } |
| 1826 | 1825 |
| 1827 } // namespace blink | 1826 } // namespace blink |
| OLD | NEW |