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

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 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Node* past_last_node_to_move, 150 Node* past_last_node_to_move,
151 Element* new_parent, 151 Element* new_parent,
152 EditingState*); 152 EditingState*);
153 void UpdatePositionForNodeRemovalPreservingChildren(Position&, Node&); 153 void UpdatePositionForNodeRemovalPreservingChildren(Position&, Node&);
154 void Prune(Node*, EditingState*, Node* exclude_node = nullptr); 154 void Prune(Node*, EditingState*, Node* exclude_node = nullptr);
155 void ReplaceTextInNode(Text*, 155 void ReplaceTextInNode(Text*,
156 unsigned offset, 156 unsigned offset,
157 unsigned count, 157 unsigned count,
158 const String& replacement_text); 158 const String& replacement_text);
159 Position ReplaceSelectedTextInNode(const String&); 159 Position ReplaceSelectedTextInNode(const String&);
160 void ReplaceTextInNodePreservingMarkers(Text*,
161 unsigned offset,
162 unsigned count,
163 const String& replacement_text);
164 Position PositionOutsideTabSpan(const Position&); 160 Position PositionOutsideTabSpan(const Position&);
165 void SetNodeAttribute(Element*, 161 void SetNodeAttribute(Element*,
166 const QualifiedName& attribute, 162 const QualifiedName& attribute,
167 const AtomicString& value); 163 const AtomicString& value);
168 void SplitElement(Element*, Node* at_child); 164 void SplitElement(Element*, Node* at_child);
169 void SplitTextNode(Text*, unsigned offset); 165 void SplitTextNode(Text*, unsigned offset);
170 void SplitTextNodeContainingElement(Text*, unsigned offset); 166 void SplitTextNodeContainingElement(Text*, unsigned offset);
171 void WrapContentsInDummySpan(Element*); 167 void WrapContentsInDummySpan(Element*);
172 168
173 void DeleteInsignificantText(Text*, unsigned start, unsigned end); 169 void DeleteInsignificantText(Text*, unsigned start, unsigned end);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 233
238 DEFINE_TYPE_CASTS(CompositeEditCommand, 234 DEFINE_TYPE_CASTS(CompositeEditCommand,
239 EditCommand, 235 EditCommand,
240 command, 236 command,
241 command->IsCompositeEditCommand(), 237 command->IsCompositeEditCommand(),
242 command.IsCompositeEditCommand()); 238 command.IsCompositeEditCommand());
243 239
244 } // namespace blink 240 } // namespace blink
245 241
246 #endif // CompositeEditCommand_h 242 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698