| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "sky/engine/core/editing/RemoveNodeCommand.h" | 46 #include "sky/engine/core/editing/RemoveNodeCommand.h" |
| 47 #include "sky/engine/core/editing/RemoveNodePreservingChildrenCommand.h" | 47 #include "sky/engine/core/editing/RemoveNodePreservingChildrenCommand.h" |
| 48 #include "sky/engine/core/editing/ReplaceSelectionCommand.h" | 48 #include "sky/engine/core/editing/ReplaceSelectionCommand.h" |
| 49 #include "sky/engine/core/editing/SpellChecker.h" | 49 #include "sky/engine/core/editing/SpellChecker.h" |
| 50 #include "sky/engine/core/editing/SplitElementCommand.h" | 50 #include "sky/engine/core/editing/SplitElementCommand.h" |
| 51 #include "sky/engine/core/editing/SplitTextNodeCommand.h" | 51 #include "sky/engine/core/editing/SplitTextNodeCommand.h" |
| 52 #include "sky/engine/core/editing/SplitTextNodeContainingElementCommand.h" | 52 #include "sky/engine/core/editing/SplitTextNodeContainingElementCommand.h" |
| 53 #include "sky/engine/core/editing/TextIterator.h" | 53 #include "sky/engine/core/editing/TextIterator.h" |
| 54 #include "sky/engine/core/editing/VisibleUnits.h" | 54 #include "sky/engine/core/editing/VisibleUnits.h" |
| 55 #include "sky/engine/core/editing/htmlediting.h" | 55 #include "sky/engine/core/editing/htmlediting.h" |
| 56 #include "sky/engine/core/editing/markup.h" | |
| 57 #include "sky/engine/core/events/ScopedEventQueue.h" | 56 #include "sky/engine/core/events/ScopedEventQueue.h" |
| 58 #include "sky/engine/core/frame/LocalFrame.h" | 57 #include "sky/engine/core/frame/LocalFrame.h" |
| 59 #include "sky/engine/core/html/HTMLElement.h" | 58 #include "sky/engine/core/html/HTMLElement.h" |
| 60 #include "sky/engine/core/rendering/InlineTextBox.h" | 59 #include "sky/engine/core/rendering/InlineTextBox.h" |
| 61 #include "sky/engine/core/rendering/RenderBlock.h" | 60 #include "sky/engine/core/rendering/RenderBlock.h" |
| 62 #include "sky/engine/core/rendering/RenderText.h" | 61 #include "sky/engine/core/rendering/RenderText.h" |
| 63 | 62 |
| 64 namespace blink { | 63 namespace blink { |
| 65 | 64 |
| 66 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu
ment, | 65 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu
ment, |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 VisiblePosition positionInParent(firstPositionInNode(parentElement)); | 1060 VisiblePosition positionInParent(firstPositionInNode(parentElement)); |
| 1062 VisiblePosition positionInNode(firstPositionInOrBeforeNode(node.get())); | 1061 VisiblePosition positionInNode(firstPositionInOrBeforeNode(node.get())); |
| 1063 if (positionInParent != positionInNode) | 1062 if (positionInParent != positionInNode) |
| 1064 splitElement(parentElement, node); | 1063 splitElement(parentElement, node); |
| 1065 } | 1064 } |
| 1066 | 1065 |
| 1067 return node.release(); | 1066 return node.release(); |
| 1068 } | 1067 } |
| 1069 | 1068 |
| 1070 } // namespace blink | 1069 } // namespace blink |
| OLD | NEW |