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

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

Issue 771933002: Remove dead markup serialization code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/dom/shadow/ShadowRoot.cpp ('k') | sky/engine/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/dom/shadow/ShadowRoot.cpp ('k') | sky/engine/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698