OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:visiblePosition
(Results
1 - 7
of
7
) sorted by null
/external/chromium_org/third_party/WebKit/Source/core/editing/
SurroundingText.cpp
37
#include "core/editing/
VisiblePosition
.h"
42
SurroundingText::SurroundingText(const
VisiblePosition
&
visiblePosition
, unsigned maxLength)
45
if (
visiblePosition
.isNull())
49
CharacterIterator forwardIterator(makeRange(
visiblePosition
, endOfDocument(
visiblePosition
)).get(), TextIteratorStopsOnFormControls);
53
Position position =
visiblePosition
.deepEquivalent().parentAnchoredEquivalent();
62
BackwardsCharacterIterator backwardsIterator(makeRange(startOfDocument(
visiblePosition
),
visiblePosition
).get(), TextIteratorStopsOnFormControls);
VisibleUnits.cpp
40
#include "core/editing/
VisiblePosition
.h"
80
static Position previousRootInlineBoxCandidatePosition(Node* node, const
VisiblePosition
&
visiblePosition
, EditableType editableType)
82
Node* highestRoot = highestEditableRoot(
visiblePosition
.deepEquivalent(), editableType);
85
while (previousNode && (!previousNode->renderer() || inSameLine(firstPositionInOrBeforeNode(previousNode),
visiblePosition
)))
103
static Position nextRootInlineBoxCandidatePosition(Node* node, const
VisiblePosition
&
visiblePosition
, EditableType editableType)
105
Node* highestRoot = highestEditableRoot(
visiblePosition
.deepEquivalent(), editableType);
107
while (nextNode && (!nextNode->renderer() || inSameLine(firstPositionInOrBeforeNode(nextNode),
visiblePosition
)))
205
static const InlineTextBox* logicallyPreviousBox(const
VisiblePosition
& visiblePosition, const InlineTextBox* textBox
[
all
...]
VisiblePosition.cpp
28
#include "core/editing/
VisiblePosition
.h"
52
VisiblePosition
::
VisiblePosition
(const Position &pos, EAffinity affinity)
57
VisiblePosition
::
VisiblePosition
(const PositionWithAffinity& positionWithAffinity)
62
void
VisiblePosition
::init(const Position& position, EAffinity affinity)
69
if (m_affinity == UPSTREAM && (isNull() || inSameLine(
VisiblePosition
(position, DOWNSTREAM), *this)))
73
VisiblePosition
VisiblePosition
::next(EditingBoundaryCrossingRule rule) const
75
VisiblePosition
next(nextVisuallyDistinctCandidate(m_deepPosition), m_affinity)
[
all
...]
htmlediting.cpp
43
#include "core/editing/
VisiblePosition
.h"
109
int comparePositions(const
VisiblePosition
& a, const
VisiblePosition
& b)
259
VisiblePosition
firstEditablePositionAfterPositionInRoot(const Position& position, Node* highestRoot)
270
return
VisiblePosition
();
279
return
VisiblePosition
();
281
return
VisiblePosition
(p);
284
VisiblePosition
lastEditablePositionBeforePositionInRoot(const Position& position, Node* highestRoot)
295
return
VisiblePosition
();
304
return
VisiblePosition
();
[
all
...]
VisibleSelection.cpp
75
VisibleSelection::VisibleSelection(const
VisiblePosition
& pos, bool isDirectional)
84
VisibleSelection::VisibleSelection(const
VisiblePosition
& base, const
VisiblePosition
& extent, bool isDirectional)
114
void VisibleSelection::setBase(const
VisiblePosition
&
visiblePosition
)
116
m_base =
visiblePosition
.deepEquivalent();
126
void VisibleSelection::setExtent(const
VisiblePosition
&
visiblePosition
)
128
m_extent =
visiblePosition
.deepEquivalent();
259
m_base =
VisiblePosition
(m_base, m_affinity).deepEquivalent()
[
all
...]
CompositeEditCommand.cpp
684
VisiblePosition
visibleUpstreamPos(Position(textNode, upstream));
685
VisiblePosition
visibleDownstreamPos(Position(textNode, downstream));
716
VisiblePosition
visiblePos(position);
717
VisiblePosition
previousVisiblePos(visiblePos.previous());
722
void CompositeEditCommand::replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const
VisiblePosition
&
visiblePosition
)
724
if (!isCollapsibleWhitespace(
visiblePosition
.characterAfter()))
726
Position pos =
visiblePosition
.deepEquivalent().downstream();
850
Position end =
VisiblePosition
(pos, VP_DEFAULT_AFFINITY).next().deepEquivalent().downstream();
[
all
...]
FrameSelection.cpp
121
void FrameSelection::moveTo(const
VisiblePosition
&pos, EUserTriggered userTriggered, CursorAlignOnScroll align)
127
void FrameSelection::moveTo(const
VisiblePosition
&base, const
VisiblePosition
&extent, EUserTriggered userTriggered)
154
static void adjustEndpointsAtBidiBoundary(
VisiblePosition
& visibleBase,
VisiblePosition
& visibleExtent)
197
VisiblePosition
base = m_originalBase.isNotNull() ? m_originalBase : newSelection.visibleBase();
198
VisiblePosition
newBase = base;
199
VisiblePosition
extent = newSelection.visibleExtent();
200
VisiblePosition
newExtent = extent;
489
VisiblePosition
startPosition = m_selection.visibleStart()
[
all
...]
Completed in 73 milliseconds