| 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 24 matching lines...) Expand all Loading... |
| 35 #include "sky/engine/core/dom/Document.h" | 35 #include "sky/engine/core/dom/Document.h" |
| 36 #include "sky/engine/core/dom/DocumentFragment.h" | 36 #include "sky/engine/core/dom/DocumentFragment.h" |
| 37 #include "sky/engine/core/dom/Element.h" | 37 #include "sky/engine/core/dom/Element.h" |
| 38 #include "sky/engine/core/dom/Text.h" | 38 #include "sky/engine/core/dom/Text.h" |
| 39 #include "sky/engine/core/editing/FrameSelection.h" | 39 #include "sky/engine/core/editing/FrameSelection.h" |
| 40 #include "sky/engine/core/editing/HTMLInterchange.h" | 40 #include "sky/engine/core/editing/HTMLInterchange.h" |
| 41 #include "sky/engine/core/editing/SmartReplace.h" | 41 #include "sky/engine/core/editing/SmartReplace.h" |
| 42 #include "sky/engine/core/editing/TextIterator.h" | 42 #include "sky/engine/core/editing/TextIterator.h" |
| 43 #include "sky/engine/core/editing/VisibleUnits.h" | 43 #include "sky/engine/core/editing/VisibleUnits.h" |
| 44 #include "sky/engine/core/editing/htmlediting.h" | 44 #include "sky/engine/core/editing/htmlediting.h" |
| 45 #include "sky/engine/core/editing/markup.h" | |
| 46 #include "sky/engine/core/events/BeforeTextInsertedEvent.h" | 45 #include "sky/engine/core/events/BeforeTextInsertedEvent.h" |
| 47 #include "sky/engine/core/frame/LocalFrame.h" | 46 #include "sky/engine/core/frame/LocalFrame.h" |
| 48 #include "sky/engine/core/frame/UseCounter.h" | 47 #include "sky/engine/core/frame/UseCounter.h" |
| 49 #include "sky/engine/core/html/HTMLElement.h" | 48 #include "sky/engine/core/html/HTMLElement.h" |
| 50 #include "sky/engine/core/rendering/RenderObject.h" | 49 #include "sky/engine/core/rendering/RenderObject.h" |
| 51 #include "sky/engine/core/rendering/RenderText.h" | 50 #include "sky/engine/core/rendering/RenderText.h" |
| 52 #include "sky/engine/wtf/StdLibExtras.h" | 51 #include "sky/engine/wtf/StdLibExtras.h" |
| 53 #include "sky/engine/wtf/Vector.h" | 52 #include "sky/engine/wtf/Vector.h" |
| 54 | 53 |
| 55 namespace blink { | 54 namespace blink { |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 return false; | 1005 return false; |
| 1007 | 1006 |
| 1008 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); | 1007 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en
d); |
| 1009 | 1008 |
| 1010 setEndingSelection(selectionAfterReplace); | 1009 setEndingSelection(selectionAfterReplace); |
| 1011 | 1010 |
| 1012 return true; | 1011 return true; |
| 1013 } | 1012 } |
| 1014 | 1013 |
| 1015 } // namespace blink | 1014 } // namespace blink |
| OLD | NEW |