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

Side by Side Diff: Source/core/layout/PendingSelection.cpp

Issue 1310533002: Move {next,previous}PositionOf() to EditingUtilities.{cpp,h} from Position.{cpp,h} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-22T09:42:03 Rebase Created 5 years, 4 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
« no previous file with comments | « Source/core/editing/Position.cpp ('k') | no next file » | 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) 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
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
OLDNEW
« no previous file with comments | « Source/core/editing/Position.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698