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

Side by Side Diff: Source/core/editing/VisibleSelection.cpp

Issue 1310323004: Introduce positionForPoint() in LocalFrame class as replacement of visiblePositionForPoint() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T15:15:43 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/VisibleSelection.h ('k') | Source/core/frame/LocalFrame.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleSelection.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698