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 17 matching lines...) Expand all Loading... |
28 #include "core/editing/ReplaceSelectionCommand.h" | 28 #include "core/editing/ReplaceSelectionCommand.h" |
29 | 29 |
30 #include "CSSPropertyNames.h" | 30 #include "CSSPropertyNames.h" |
31 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
32 #include "bindings/v8/ExceptionStatePlaceholder.h" | 32 #include "bindings/v8/ExceptionStatePlaceholder.h" |
33 #include "core/css/CSSStyleDeclaration.h" | 33 #include "core/css/CSSStyleDeclaration.h" |
34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/DocumentFragment.h" | 36 #include "core/dom/DocumentFragment.h" |
37 #include "core/dom/Element.h" | 37 #include "core/dom/Element.h" |
38 #include "core/dom/NodeTraversal.h" | |
39 #include "core/dom/Text.h" | 38 #include "core/dom/Text.h" |
40 #include "core/editing/ApplyStyleCommand.h" | 39 #include "core/editing/ApplyStyleCommand.h" |
41 #include "core/editing/BreakBlockquoteCommand.h" | 40 #include "core/editing/BreakBlockquoteCommand.h" |
42 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
43 #include "core/editing/HTMLInterchange.h" | 42 #include "core/editing/HTMLInterchange.h" |
44 #include "core/editing/SimplifyMarkupCommand.h" | 43 #include "core/editing/SimplifyMarkupCommand.h" |
45 #include "core/editing/SmartReplace.h" | 44 #include "core/editing/SmartReplace.h" |
46 #include "core/editing/TextIterator.h" | 45 #include "core/editing/TextIterator.h" |
47 #include "core/editing/VisibleUnits.h" | 46 #include "core/editing/VisibleUnits.h" |
48 #include "core/editing/htmlediting.h" | 47 #include "core/editing/htmlediting.h" |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 removeNodeAndPruneAncestors(nodeAfterInsertionPos.get()); | 1492 removeNodeAndPruneAncestors(nodeAfterInsertionPos.get()); |
1494 | 1493 |
1495 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); | 1494 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); |
1496 | 1495 |
1497 setEndingSelection(selectionAfterReplace); | 1496 setEndingSelection(selectionAfterReplace); |
1498 | 1497 |
1499 return true; | 1498 return true; |
1500 } | 1499 } |
1501 | 1500 |
1502 } // namespace WebCore | 1501 } // namespace WebCore |
OLD | NEW |