| 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 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 if (end.isNull()) | 1005 if (end.isNull()) |
| 1006 return false; | 1006 return false; |
| 1007 | 1007 |
| 1008 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); | 1008 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); |
| 1009 | 1009 |
| 1010 setEndingSelection(selectionAfterReplace); | 1010 setEndingSelection(selectionAfterReplace); |
| 1011 | 1011 |
| 1012 return true; | 1012 return true; |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 void ReplaceSelectionCommand::trace(Visitor* visitor) | |
| 1016 { | |
| 1017 visitor->trace(m_startOfInsertedContent); | |
| 1018 visitor->trace(m_endOfInsertedContent); | |
| 1019 visitor->trace(m_insertionStyle); | |
| 1020 visitor->trace(m_documentFragment); | |
| 1021 CompositeEditCommand::trace(visitor); | |
| 1022 } | |
| 1023 | |
| 1024 } // namespace blink | 1015 } // namespace blink |
| OLD | NEW |