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

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

Issue 2692093003: Rewrite DocumentMarkerController to use SynchronousMutationObserver (Closed)
Patch Set: Fx tests to match current behavior of master Created 3 years, 9 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Node* pastLastNodeToMove, 156 Node* pastLastNodeToMove,
157 Element* newParent, 157 Element* newParent,
158 EditingState*); 158 EditingState*);
159 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); 159 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&);
160 void prune(Node*, EditingState*, Node* excludeNode = nullptr); 160 void prune(Node*, EditingState*, Node* excludeNode = nullptr);
161 void replaceTextInNode(Text*, 161 void replaceTextInNode(Text*,
162 unsigned offset, 162 unsigned offset,
163 unsigned count, 163 unsigned count,
164 const String& replacementText); 164 const String& replacementText);
165 Position replaceSelectedTextInNode(const String&); 165 Position replaceSelectedTextInNode(const String&);
166 void replaceTextInNodePreservingMarkers(Text*,
167 unsigned offset,
168 unsigned count,
169 const String& replacementText);
170 Position positionOutsideTabSpan(const Position&); 166 Position positionOutsideTabSpan(const Position&);
171 void setNodeAttribute(Element*, 167 void setNodeAttribute(Element*,
172 const QualifiedName& attribute, 168 const QualifiedName& attribute,
173 const AtomicString& value); 169 const AtomicString& value);
174 void splitElement(Element*, Node* atChild); 170 void splitElement(Element*, Node* atChild);
175 void splitTextNode(Text*, unsigned offset); 171 void splitTextNode(Text*, unsigned offset);
176 void splitTextNodeContainingElement(Text*, unsigned offset); 172 void splitTextNodeContainingElement(Text*, unsigned offset);
177 void wrapContentsInDummySpan(Element*); 173 void wrapContentsInDummySpan(Element*);
178 174
179 void deleteInsignificantText(Text*, unsigned start, unsigned end); 175 void deleteInsignificantText(Text*, unsigned start, unsigned end);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 236
241 DEFINE_TYPE_CASTS(CompositeEditCommand, 237 DEFINE_TYPE_CASTS(CompositeEditCommand,
242 EditCommand, 238 EditCommand,
243 command, 239 command,
244 command->isCompositeEditCommand(), 240 command->isCompositeEditCommand(),
245 command.isCompositeEditCommand()); 241 command.isCompositeEditCommand());
246 242
247 } // namespace blink 243 } // namespace blink
248 244
249 #endif // CompositeEditCommand_h 245 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698