Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2862293002: Finish removing FrameLoader::Clear() (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 1847
1849 DEFINE_TRACE(Editor) { 1848 DEFINE_TRACE(Editor) {
1850 visitor->Trace(frame_); 1849 visitor->Trace(frame_);
1851 visitor->Trace(last_edit_command_); 1850 visitor->Trace(last_edit_command_);
1852 visitor->Trace(undo_stack_); 1851 visitor->Trace(undo_stack_);
1853 visitor->Trace(mark_); 1852 visitor->Trace(mark_);
1854 visitor->Trace(typing_style_); 1853 visitor->Trace(typing_style_);
1855 } 1854 }
1856 1855
1857 } // namespace blink 1856 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698