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

Side by Side Diff: Source/core/editing/ReplaceSelectionCommand.cpp

Issue 26558004: Revert 158219 "Move dom/*Event* to events to match the DOM vs. E..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1651/
Patch Set: Created 7 years, 2 months 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 | Annotate | Revision Log
OLDNEW
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 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
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/events/BeforeTextInsertedEvent.h" 35 #include "core/dom/BeforeTextInsertedEvent.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/DocumentFragment.h" 37 #include "core/dom/DocumentFragment.h"
38 #include "core/dom/Element.h" 38 #include "core/dom/Element.h"
39 #include "core/events/EventNames.h" 39 #include "core/dom/EventNames.h"
40 #include "core/dom/NodeTraversal.h" 40 #include "core/dom/NodeTraversal.h"
41 #include "core/dom/Text.h" 41 #include "core/dom/Text.h"
42 #include "core/editing/ApplyStyleCommand.h" 42 #include "core/editing/ApplyStyleCommand.h"
43 #include "core/editing/BreakBlockquoteCommand.h" 43 #include "core/editing/BreakBlockquoteCommand.h"
44 #include "core/editing/FrameSelection.h" 44 #include "core/editing/FrameSelection.h"
45 #include "core/editing/HTMLInterchange.h" 45 #include "core/editing/HTMLInterchange.h"
46 #include "core/editing/SimplifyMarkupCommand.h" 46 #include "core/editing/SimplifyMarkupCommand.h"
47 #include "core/editing/SmartReplace.h" 47 #include "core/editing/SmartReplace.h"
48 #include "core/editing/TextIterator.h" 48 #include "core/editing/TextIterator.h"
49 #include "core/editing/VisibleUnits.h" 49 #include "core/editing/VisibleUnits.h"
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 removeNodeAndPruneAncestors(nodeAfterInsertionPos.get()); 1487 removeNodeAndPruneAncestors(nodeAfterInsertionPos.get());
1488 1488
1489 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en d); 1489 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en d);
1490 1490
1491 setEndingSelection(selectionAfterReplace); 1491 setEndingSelection(selectionAfterReplace);
1492 1492
1493 return true; 1493 return true;
1494 } 1494 }
1495 1495
1496 } // namespace WebCore 1496 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/InputMethodController.cpp ('k') | Source/core/editing/TextInsertionBaseCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698