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

Side by Side Diff: third_party/WebKit/Source/core/editing/LayoutSelection.h

Issue 2962143002: [WIP] Find LayoutSelection start/end w/o VisibleSelection. (Closed)
Patch Set: update Created 3 years, 5 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 | « no previous file | third_party/WebKit/Source/core/editing/LayoutSelection.cpp » ('j') | 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) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
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 21
22 #ifndef LayoutSelection_h 22 #ifndef LayoutSelection_h
23 #define LayoutSelection_h 23 #define LayoutSelection_h
24 24
25 #include "core/editing/Position.h"
26 #include "core/editing/VisibleSelection.h"
27 #include "platform/heap/Handle.h" 25 #include "platform/heap/Handle.h"
28 26
29 namespace blink { 27 namespace blink {
30 28
29 class IntRect;
31 class FrameSelection; 30 class FrameSelection;
31 class LayoutObject;
32 32
33 // This class represents a selection range in layout tree for painting and 33 // This class represents a selection range in layout tree for painting and
34 // paint invalidation. 34 // paint invalidation.
35 // The current selection to be painted is represented as 2 pairs of 35 // The current selection to be painted is represented as 2 pairs of
36 // (LayoutObject, offset). 36 // (LayoutObject, offset).
37 // 2 LayoutObjects are only valid for |Text| node without 'transform' or 37 // 2 LayoutObjects are only valid for |Text| node without 'transform' or
38 // 'first-letter'. 38 // 'first-letter'.
39 // TODO(editing-dev): Clarify the meaning of "offset". 39 // TODO(editing-dev): Clarify the meaning of "offset".
40 // editing/ passes them as offsets in the DOM tree but layout uses them as 40 // editing/ passes them as offsets in the DOM tree but layout uses them as
41 // offset in the layout tree. This doesn't work in the cases of 41 // offset in the layout tree. This doesn't work in the cases of
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 Member<FrameSelection> frame_selection_; 111 Member<FrameSelection> frame_selection_;
112 bool has_pending_selection_ : 1; 112 bool has_pending_selection_ : 1;
113 113
114 SelectionPaintRange paint_range_; 114 SelectionPaintRange paint_range_;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif 119 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/LayoutSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698