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

Side by Side Diff: Source/core/editing/DeleteSelectionCommand.cpp

Issue 17388003: Remove unused includes from core/{editing,fileapi,history,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 6 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 | « Source/core/editing/CompositeEditCommand.cpp ('k') | Source/core/editing/EditCommand.cpp » ('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) 2005 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/editing/DeleteSelectionCommand.h" 27 #include "core/editing/DeleteSelectionCommand.h"
28 28
29 #include "HTMLNames.h" 29 #include "HTMLNames.h"
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/dom/DocumentFragment.h"
32 #include "core/dom/DocumentMarkerController.h"
33 #include "core/dom/Element.h" 31 #include "core/dom/Element.h"
34 #include "core/dom/NodeTraversal.h" 32 #include "core/dom/NodeTraversal.h"
35 #include "core/dom/Text.h" 33 #include "core/dom/Text.h"
36 #include "core/editing/EditingBoundary.h" 34 #include "core/editing/EditingBoundary.h"
37 #include "core/editing/Editor.h" 35 #include "core/editing/Editor.h"
38 #include "core/editing/VisibleUnits.h" 36 #include "core/editing/VisibleUnits.h"
39 #include "core/editing/htmlediting.h" 37 #include "core/editing/htmlediting.h"
40 #include "core/html/HTMLInputElement.h" 38 #include "core/html/HTMLInputElement.h"
41 #include "core/html/HTMLTextAreaElement.h"
42 #include "core/page/EditorClient.h"
43 #include "core/page/Frame.h" 39 #include "core/page/Frame.h"
44 #include "core/rendering/RenderTableCell.h" 40 #include "core/rendering/RenderTableCell.h"
45 41
46 namespace WebCore { 42 namespace WebCore {
47 43
48 using namespace HTMLNames; 44 using namespace HTMLNames;
49 45
50 static bool isTableRow(const Node* node) 46 static bool isTableRow(const Node* node)
51 { 47 {
52 return node && node->hasTagName(trTag); 48 return node && node->hasTagName(trTag);
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 827
832 // Normally deletion doesn't preserve the typing style that was present before i t. For example, 828 // Normally deletion doesn't preserve the typing style that was present before i t. For example,
833 // type a character, Bold, then delete the character and start typing. The Bold typing style shouldn't 829 // type a character, Bold, then delete the character and start typing. The Bold typing style shouldn't
834 // stick around. Deletion should preserve a typing style that *it* sets, howeve r. 830 // stick around. Deletion should preserve a typing style that *it* sets, howeve r.
835 bool DeleteSelectionCommand::preservesTypingStyle() const 831 bool DeleteSelectionCommand::preservesTypingStyle() const
836 { 832 {
837 return m_typingStyle; 833 return m_typingStyle;
838 } 834 }
839 835
840 } // namespace WebCore 836 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/CompositeEditCommand.cpp ('k') | Source/core/editing/EditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698