OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 , m_isDirectional(isDirectional) | 63 , m_isDirectional(isDirectional) |
64 { | 64 { |
65 validate(); | 65 validate(); |
66 } | 66 } |
67 | 67 |
68 VisibleSelection::VisibleSelection(const PositionInComposedTree& base, const Pos
itionInComposedTree& extent, TextAffinity affinity, bool isDirectional) | 68 VisibleSelection::VisibleSelection(const PositionInComposedTree& base, const Pos
itionInComposedTree& extent, TextAffinity affinity, bool isDirectional) |
69 : VisibleSelection(toPositionInDOMTree(base), toPositionInDOMTree(extent), a
ffinity, isDirectional) | 69 : VisibleSelection(toPositionInDOMTree(base), toPositionInDOMTree(extent), a
ffinity, isDirectional) |
70 { | 70 { |
71 } | 71 } |
72 | 72 |
| 73 VisibleSelection::VisibleSelection(const PositionWithAffinity& pos, bool isDirec
tional) |
| 74 : VisibleSelection(pos.position(), pos.affinity(), isDirectional) |
| 75 { |
| 76 } |
| 77 |
73 VisibleSelection::VisibleSelection(const VisiblePosition& pos, bool isDirectiona
l) | 78 VisibleSelection::VisibleSelection(const VisiblePosition& pos, bool isDirectiona
l) |
74 : VisibleSelection(pos, pos, isDirectional) | 79 : VisibleSelection(pos, pos, isDirectional) |
75 { | 80 { |
76 } | 81 } |
77 | 82 |
78 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePos
ition& extent, bool isDirectional) | 83 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePos
ition& extent, bool isDirectional) |
79 : VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affi
nity(), isDirectional) | 84 : VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affi
nity(), isDirectional) |
80 { | 85 { |
81 } | 86 } |
82 | 87 |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 sel.showTreeForThis(); | 1249 sel.showTreeForThis(); |
1245 } | 1250 } |
1246 | 1251 |
1247 void showTree(const blink::VisibleSelection* sel) | 1252 void showTree(const blink::VisibleSelection* sel) |
1248 { | 1253 { |
1249 if (sel) | 1254 if (sel) |
1250 sel->showTreeForThis(); | 1255 sel->showTreeForThis(); |
1251 } | 1256 } |
1252 | 1257 |
1253 #endif | 1258 #endif |
OLD | NEW |