| OLD | NEW |
| 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 Loading... |
| 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 static bool isNodeVisiblyContainedWithin(Node&, const Range&); | 224 static bool isNodeVisiblyContainedWithin(Node&, const EphemeralRange&); |
| 225 | 225 |
| 226 HeapVector<Member<EditCommand>> m_commands; | 226 HeapVector<Member<EditCommand>> m_commands; |
| 227 | 227 |
| 228 private: | 228 private: |
| 229 bool isCompositeEditCommand() const final { return true; } | 229 bool isCompositeEditCommand() const final { return true; } |
| 230 | 230 |
| 231 VisibleSelection m_startingSelection; | 231 VisibleSelection m_startingSelection; |
| 232 VisibleSelection m_endingSelection; | 232 VisibleSelection m_endingSelection; |
| 233 Member<UndoStep> m_undoStep; | 233 Member<UndoStep> m_undoStep; |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 DEFINE_TYPE_CASTS(CompositeEditCommand, | 236 DEFINE_TYPE_CASTS(CompositeEditCommand, |
| 237 EditCommand, | 237 EditCommand, |
| 238 command, | 238 command, |
| 239 command->isCompositeEditCommand(), | 239 command->isCompositeEditCommand(), |
| 240 command.isCompositeEditCommand()); | 240 command.isCompositeEditCommand()); |
| 241 | 241 |
| 242 } // namespace blink | 242 } // namespace blink |
| 243 | 243 |
| 244 #endif // CompositeEditCommand_h | 244 #endif // CompositeEditCommand_h |
| OLD | NEW |