Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: sky/engine/core/editing/CompositeEditCommand.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "sky/engine/config.h"
27 #include "core/editing/CompositeEditCommand.h" 27 #include "sky/engine/core/editing/CompositeEditCommand.h"
28 28
29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 29 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h"
30 #include "core/dom/Document.h" 30 #include "sky/engine/core/dom/Document.h"
31 #include "core/dom/DocumentFragment.h" 31 #include "sky/engine/core/dom/DocumentFragment.h"
32 #include "core/dom/DocumentMarkerController.h" 32 #include "sky/engine/core/dom/DocumentMarkerController.h"
33 #include "core/dom/ElementTraversal.h" 33 #include "sky/engine/core/dom/ElementTraversal.h"
34 #include "core/dom/NodeTraversal.h" 34 #include "sky/engine/core/dom/NodeTraversal.h"
35 #include "core/dom/Range.h" 35 #include "sky/engine/core/dom/Range.h"
36 #include "core/dom/Text.h" 36 #include "sky/engine/core/dom/Text.h"
37 #include "core/editing/AppendNodeCommand.h" 37 #include "sky/engine/core/editing/AppendNodeCommand.h"
38 #include "core/editing/DeleteFromTextNodeCommand.h" 38 #include "sky/engine/core/editing/DeleteFromTextNodeCommand.h"
39 #include "core/editing/DeleteSelectionCommand.h" 39 #include "sky/engine/core/editing/DeleteSelectionCommand.h"
40 #include "core/editing/Editor.h" 40 #include "sky/engine/core/editing/Editor.h"
41 #include "core/editing/InsertIntoTextNodeCommand.h" 41 #include "sky/engine/core/editing/InsertIntoTextNodeCommand.h"
42 #include "core/editing/InsertLineBreakCommand.h" 42 #include "sky/engine/core/editing/InsertLineBreakCommand.h"
43 #include "core/editing/InsertNodeBeforeCommand.h" 43 #include "sky/engine/core/editing/InsertNodeBeforeCommand.h"
44 #include "core/editing/InsertParagraphSeparatorCommand.h" 44 #include "sky/engine/core/editing/InsertParagraphSeparatorCommand.h"
45 #include "core/editing/PlainTextRange.h" 45 #include "sky/engine/core/editing/PlainTextRange.h"
46 #include "core/editing/RemoveNodeCommand.h" 46 #include "sky/engine/core/editing/RemoveNodeCommand.h"
47 #include "core/editing/RemoveNodePreservingChildrenCommand.h" 47 #include "sky/engine/core/editing/RemoveNodePreservingChildrenCommand.h"
48 #include "core/editing/ReplaceSelectionCommand.h" 48 #include "sky/engine/core/editing/ReplaceSelectionCommand.h"
49 #include "core/editing/SpellChecker.h" 49 #include "sky/engine/core/editing/SpellChecker.h"
50 #include "core/editing/SplitElementCommand.h" 50 #include "sky/engine/core/editing/SplitElementCommand.h"
51 #include "core/editing/SplitTextNodeCommand.h" 51 #include "sky/engine/core/editing/SplitTextNodeCommand.h"
52 #include "core/editing/SplitTextNodeContainingElementCommand.h" 52 #include "sky/engine/core/editing/SplitTextNodeContainingElementCommand.h"
53 #include "core/editing/TextIterator.h" 53 #include "sky/engine/core/editing/TextIterator.h"
54 #include "core/editing/VisibleUnits.h" 54 #include "sky/engine/core/editing/VisibleUnits.h"
55 #include "core/editing/htmlediting.h" 55 #include "sky/engine/core/editing/htmlediting.h"
56 #include "core/editing/markup.h" 56 #include "sky/engine/core/editing/markup.h"
57 #include "core/events/ScopedEventQueue.h" 57 #include "sky/engine/core/events/ScopedEventQueue.h"
58 #include "core/frame/LocalFrame.h" 58 #include "sky/engine/core/frame/LocalFrame.h"
59 #include "core/html/HTMLElement.h" 59 #include "sky/engine/core/html/HTMLElement.h"
60 #include "core/rendering/InlineTextBox.h" 60 #include "sky/engine/core/rendering/InlineTextBox.h"
61 #include "core/rendering/RenderBlock.h" 61 #include "sky/engine/core/rendering/RenderBlock.h"
62 #include "core/rendering/RenderText.h" 62 #include "sky/engine/core/rendering/RenderText.h"
63 63
64 namespace blink { 64 namespace blink {
65 65
66 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu ment, 66 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu ment,
67 const VisibleSelection& startingSelection, const VisibleSelection& endingSel ection, EditAction editAction) 67 const VisibleSelection& startingSelection, const VisibleSelection& endingSel ection, EditAction editAction)
68 { 68 {
69 return adoptRef(new EditCommandComposition(document, startingSelection, endi ngSelection, editAction)); 69 return adoptRef(new EditCommandComposition(document, startingSelection, endi ngSelection, editAction));
70 } 70 }
71 71
72 EditCommandComposition::EditCommandComposition(Document* document, const Visible Selection& startingSelection, const VisibleSelection& endingSelection, EditActio n editAction) 72 EditCommandComposition::EditCommandComposition(Document* document, const Visible Selection& startingSelection, const VisibleSelection& endingSelection, EditActio n editAction)
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 VisiblePosition positionInParent(firstPositionInNode(parentElement)); 1061 VisiblePosition positionInParent(firstPositionInNode(parentElement));
1062 VisiblePosition positionInNode(firstPositionInOrBeforeNode(node.get())); 1062 VisiblePosition positionInNode(firstPositionInOrBeforeNode(node.get()));
1063 if (positionInParent != positionInNode) 1063 if (positionInParent != positionInNode)
1064 splitElement(parentElement, node); 1064 splitElement(parentElement, node);
1065 } 1065 }
1066 1066
1067 return node.release(); 1067 return node.release();
1068 } 1068 }
1069 1069
1070 } // namespace blink 1070 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/editing/CompositeEditCommand.h ('k') | sky/engine/core/editing/CompositionUnderline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698