| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "core/layout/PendingSelection.h" | 22 #include "core/layout/PendingSelection.h" |
| 23 | 23 |
| 24 #include "core/dom/Document.h" | 24 #include "core/dom/Document.h" |
| 25 #include "core/editing/EditingUtilities.h" |
| 25 #include "core/editing/FrameSelection.h" | 26 #include "core/editing/FrameSelection.h" |
| 26 #include "core/editing/VisiblePosition.h" | 27 #include "core/editing/VisiblePosition.h" |
| 27 #include "core/editing/VisibleUnits.h" | 28 #include "core/editing/VisibleUnits.h" |
| 28 #include "core/html/HTMLTextFormControlElement.h" | 29 #include "core/html/HTMLTextFormControlElement.h" |
| 29 | 30 |
| 30 namespace blink { | 31 namespace blink { |
| 31 | 32 |
| 32 PendingSelection::PendingSelection() | 33 PendingSelection::PendingSelection() |
| 33 : m_hasPendingSelection(false) | 34 : m_hasPendingSelection(false) |
| 34 , m_shouldShowBlockCursor(false) | 35 , m_shouldShowBlockCursor(false) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return calcVisibleSelectionAlgorithm<VisibleSelection::InComposedTree>()
; | 111 return calcVisibleSelectionAlgorithm<VisibleSelection::InComposedTree>()
; |
| 111 return calcVisibleSelectionAlgorithm<VisibleSelection::InDOMTree>(); | 112 return calcVisibleSelectionAlgorithm<VisibleSelection::InDOMTree>(); |
| 112 } | 113 } |
| 113 | 114 |
| 114 DEFINE_TRACE(PendingSelection) | 115 DEFINE_TRACE(PendingSelection) |
| 115 { | 116 { |
| 116 visitor->trace(m_selection); | 117 visitor->trace(m_selection); |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |