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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h

Issue 1690513002: Editing: Pass failure information of RemoveNodeCommand to ReplaceSelectionCommand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment Created 4 years, 10 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/editing/commands/CompositeEditCommand.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, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008 Apple 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void rebalanceWhitespace(); 117 void rebalanceWhitespace();
118 void rebalanceWhitespaceAt(const Position&); 118 void rebalanceWhitespaceAt(const Position&);
119 void rebalanceWhitespaceOnTextSubstring(PassRefPtrWillBeRawPtr<Text>, int st artOffset, int endOffset); 119 void rebalanceWhitespaceOnTextSubstring(PassRefPtrWillBeRawPtr<Text>, int st artOffset, int endOffset);
120 void prepareWhitespaceAtPositionForSplit(Position&); 120 void prepareWhitespaceAtPositionForSplit(Position&);
121 void replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisibleP osition&); 121 void replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisibleP osition&);
122 bool canRebalance(const Position&) const; 122 bool canRebalance(const Position&) const;
123 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; 123 bool shouldRebalanceLeadingWhitespaceFor(const String&) const;
124 void removeCSSProperty(PassRefPtrWillBeRawPtr<Element>, CSSPropertyID); 124 void removeCSSProperty(PassRefPtrWillBeRawPtr<Element>, CSSPropertyID);
125 void removeElementAttribute(PassRefPtrWillBeRawPtr<Element>, const Qualified Name& attribute); 125 void removeElementAttribute(PassRefPtrWillBeRawPtr<Element>, const Qualified Name& attribute);
126 void removeChildrenInRange(PassRefPtrWillBeRawPtr<Node>, unsigned from, unsi gned to); 126 void removeChildrenInRange(PassRefPtrWillBeRawPtr<Node>, unsigned from, unsi gned to);
127 virtual void removeNode(PassRefPtrWillBeRawPtr<Node>, ShouldAssumeContentIsA lwaysEditable = DoNotAssumeContentIsAlwaysEditable); 127 virtual void removeNode(PassRefPtrWillBeRawPtr<Node>, EditingState* = ASSERT _NO_EDITING_ABORT, ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlw aysEditable);
128 HTMLSpanElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassR efPtrWillBeRawPtr<HTMLElement>); 128 HTMLSpanElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassR efPtrWillBeRawPtr<HTMLElement>);
129 void removeNodePreservingChildren(PassRefPtrWillBeRawPtr<Node>, EditingState * = ASSERT_NO_EDITING_ABORT, ShouldAssumeContentIsAlwaysEditable = DoNotAssumeCo ntentIsAlwaysEditable); 129 void removeNodePreservingChildren(PassRefPtrWillBeRawPtr<Node>, EditingState * = ASSERT_NO_EDITING_ABORT, ShouldAssumeContentIsAlwaysEditable = DoNotAssumeCo ntentIsAlwaysEditable);
130 void removeNodeAndPruneAncestors(PassRefPtrWillBeRawPtr<Node>, Node* exclude Node = nullptr); 130 void removeNodeAndPruneAncestors(PassRefPtrWillBeRawPtr<Node>, Node* exclude Node = nullptr);
131 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR efPtrWillBeRawPtr<Element> prpNewParent); 131 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR efPtrWillBeRawPtr<Element> prpNewParent);
132 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); 132 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&);
133 void prune(PassRefPtrWillBeRawPtr<Node>, Node* excludeNode = nullptr); 133 void prune(PassRefPtrWillBeRawPtr<Node>, Node* excludeNode = nullptr);
134 void replaceTextInNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, unsign ed count, const String& replacementText); 134 void replaceTextInNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, unsign ed count, const String& replacementText);
135 Position replaceSelectedTextInNode(const String&); 135 Position replaceSelectedTextInNode(const String&);
136 void replaceTextInNodePreservingMarkers(PassRefPtrWillBeRawPtr<Text>, unsign ed offset, unsigned count, const String& replacementText); 136 void replaceTextInNodePreservingMarkers(PassRefPtrWillBeRawPtr<Text>, unsign ed offset, unsigned count, const String& replacementText);
137 Position positionOutsideTabSpan(const Position&); 137 Position positionOutsideTabSpan(const Position&);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 bool isCompositeEditCommand() const final { return true; } 176 bool isCompositeEditCommand() const final { return true; }
177 177
178 RefPtrWillBeMember<EditCommandComposition> m_composition; 178 RefPtrWillBeMember<EditCommandComposition> m_composition;
179 }; 179 };
180 180
181 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand()); 181 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand());
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif // CompositeEditCommand_h 185 #endif // CompositeEditCommand_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698