| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2008, 2009, 2010 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 11 matching lines...) Expand all Loading... |
| 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 "core/editing/SelectionEditor.h" | 26 #include "core/editing/SelectionEditor.h" |
| 27 | 27 |
| 28 #include "core/dom/NodeWithIndex.h" | 28 #include "core/dom/NodeWithIndex.h" |
| 29 #include "core/dom/Text.h" | 29 #include "core/dom/Text.h" |
| 30 #include "core/editing/EditingUtilities.h" | 30 #include "core/editing/EditingUtilities.h" |
| 31 #include "core/editing/Editor.h" | 31 #include "core/editing/Editor.h" |
| 32 #include "core/editing/SelectionAdjuster.h" | |
| 33 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
| 34 | 33 |
| 35 namespace blink { | 34 namespace blink { |
| 36 | 35 |
| 37 SelectionEditor::SelectionEditor(LocalFrame& frame) : m_frame(frame) { | 36 SelectionEditor::SelectionEditor(LocalFrame& frame) : m_frame(frame) { |
| 38 clearVisibleSelection(); | 37 clearVisibleSelection(); |
| 39 } | 38 } |
| 40 | 39 |
| 41 SelectionEditor::~SelectionEditor() {} | 40 SelectionEditor::~SelectionEditor() {} |
| 42 | 41 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 DEFINE_TRACE(SelectionEditor) { | 402 DEFINE_TRACE(SelectionEditor) { |
| 404 visitor->trace(m_frame); | 403 visitor->trace(m_frame); |
| 405 visitor->trace(m_selection); | 404 visitor->trace(m_selection); |
| 406 visitor->trace(m_cachedVisibleSelectionInDOMTree); | 405 visitor->trace(m_cachedVisibleSelectionInDOMTree); |
| 407 visitor->trace(m_cachedVisibleSelectionInFlatTree); | 406 visitor->trace(m_cachedVisibleSelectionInFlatTree); |
| 408 visitor->trace(m_cachedRange); | 407 visitor->trace(m_cachedRange); |
| 409 SynchronousMutationObserver::trace(visitor); | 408 SynchronousMutationObserver::trace(visitor); |
| 410 } | 409 } |
| 411 | 410 |
| 412 } // namespace blink | 411 } // namespace blink |
| OLD | NEW |