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

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

Issue 2753193002: Editing: Indent command: Do not insert BLOCKQUOTE under the root HTML element. (Closed)
Patch Set: . 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 VisiblePosition destination = VisiblePosition()); 214 VisiblePosition destination = VisiblePosition());
215 215
216 bool breakOutOfEmptyListItem(EditingState*); 216 bool breakOutOfEmptyListItem(EditingState*);
217 bool breakOutOfEmptyMailBlockquotedParagraph(EditingState*); 217 bool breakOutOfEmptyMailBlockquotedParagraph(EditingState*);
218 218
219 Position positionAvoidingSpecialElementBoundary(const Position&, 219 Position positionAvoidingSpecialElementBoundary(const Position&,
220 EditingState*); 220 EditingState*);
221 221
222 Node* splitTreeToNode(Node*, Node*, bool splitAncestor = false); 222 Node* splitTreeToNode(Node*, Node*, bool splitAncestor = false);
223 223
224 void shrinkEndingSelectionToFitBody();
225
224 HeapVector<Member<EditCommand>> m_commands; 226 HeapVector<Member<EditCommand>> m_commands;
225 227
226 private: 228 private:
227 bool isCompositeEditCommand() const final { return true; } 229 bool isCompositeEditCommand() const final { return true; }
228 230
229 VisibleSelection m_startingSelection; 231 VisibleSelection m_startingSelection;
230 VisibleSelection m_endingSelection; 232 VisibleSelection m_endingSelection;
231 Member<UndoStep> m_undoStep; 233 Member<UndoStep> m_undoStep;
232 }; 234 };
233 235
234 DEFINE_TYPE_CASTS(CompositeEditCommand, 236 DEFINE_TYPE_CASTS(CompositeEditCommand,
235 EditCommand, 237 EditCommand,
236 command, 238 command,
237 command->isCompositeEditCommand(), 239 command->isCompositeEditCommand(),
238 command.isCompositeEditCommand()); 240 command.isCompositeEditCommand());
239 241
240 } // namespace blink 242 } // namespace blink
241 243
242 #endif // CompositeEditCommand_h 244 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698