| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 ASSERT(!parent || !isCompositeEditCommand() || !toCompositeEditCommand(this)
->composition()); | 110 ASSERT(!parent || !isCompositeEditCommand() || !toCompositeEditCommand(this)
->composition()); |
| 111 m_parent = parent; | 111 m_parent = parent; |
| 112 if (parent) { | 112 if (parent) { |
| 113 m_startingSelection = parent->m_endingSelection; | 113 m_startingSelection = parent->m_endingSelection; |
| 114 m_endingSelection = parent->m_endingSelection; | 114 m_endingSelection = parent->m_endingSelection; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 void SimpleEditCommand::doReapply() | 118 void SimpleEditCommand::doReapply() |
| 119 { | 119 { |
| 120 doApply(); | 120 EditingState editingState; |
| 121 doApply(&editingState); |
| 121 } | 122 } |
| 122 | 123 |
| 123 DEFINE_TRACE(EditCommand) | 124 DEFINE_TRACE(EditCommand) |
| 124 { | 125 { |
| 125 visitor->trace(m_document); | 126 visitor->trace(m_document); |
| 126 visitor->trace(m_startingSelection); | 127 visitor->trace(m_startingSelection); |
| 127 visitor->trace(m_endingSelection); | 128 visitor->trace(m_endingSelection); |
| 128 visitor->trace(m_parent); | 129 visitor->trace(m_parent); |
| 129 } | 130 } |
| 130 | 131 |
| 131 } // namespace blink | 132 } // namespace blink |
| OLD | NEW |