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

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

Issue 2755013004: Improve how DocumentMarkerController updates markers in response to text edits (Closed)
Patch Set: Rebase (Vector::remove() => Vector::erase()) Created 3 years, 8 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
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Node* pastLastNodeToMove, 149 Node* pastLastNodeToMove,
150 Element* newParent, 150 Element* newParent,
151 EditingState*); 151 EditingState*);
152 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); 152 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&);
153 void prune(Node*, EditingState*, Node* excludeNode = nullptr); 153 void prune(Node*, EditingState*, Node* excludeNode = nullptr);
154 void replaceTextInNode(Text*, 154 void replaceTextInNode(Text*,
155 unsigned offset, 155 unsigned offset,
156 unsigned count, 156 unsigned count,
157 const String& replacementText); 157 const String& replacementText);
158 Position replaceSelectedTextInNode(const String&); 158 Position replaceSelectedTextInNode(const String&);
159 void replaceTextInNodePreservingMarkers(Text*,
160 unsigned offset,
161 unsigned count,
162 const String& replacementText);
163 Position positionOutsideTabSpan(const Position&); 159 Position positionOutsideTabSpan(const Position&);
164 void setNodeAttribute(Element*, 160 void setNodeAttribute(Element*,
165 const QualifiedName& attribute, 161 const QualifiedName& attribute,
166 const AtomicString& value); 162 const AtomicString& value);
167 void splitElement(Element*, Node* atChild); 163 void splitElement(Element*, Node* atChild);
168 void splitTextNode(Text*, unsigned offset); 164 void splitTextNode(Text*, unsigned offset);
169 void splitTextNodeContainingElement(Text*, unsigned offset); 165 void splitTextNodeContainingElement(Text*, unsigned offset);
170 void wrapContentsInDummySpan(Element*); 166 void wrapContentsInDummySpan(Element*);
171 167
172 void deleteInsignificantText(Text*, unsigned start, unsigned end); 168 void deleteInsignificantText(Text*, unsigned start, unsigned end);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 231
236 DEFINE_TYPE_CASTS(CompositeEditCommand, 232 DEFINE_TYPE_CASTS(CompositeEditCommand,
237 EditCommand, 233 EditCommand,
238 command, 234 command,
239 command->isCompositeEditCommand(), 235 command->isCompositeEditCommand(),
240 command.isCompositeEditCommand()); 236 command.isCompositeEditCommand());
241 237
242 } // namespace blink 238 } // namespace blink
243 239
244 #endif // CompositeEditCommand_h 240 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698