Lines Matching full:base
61 VisibleSelection::VisibleSelection(const Position& base, const Position& extent, EAffinity affinity)
62 : m_base(base)
79 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePosition& extent)
80 : m_base(base.deepEquivalent())
82 , m_affinity(base.affinity())
258 // Make sure we do not have a dangling base or extent.
438 base, const Position& extent)
440 ASSERT(!base.isNull());
442 ASSERT(base != extent);
445 m_base = base;
447 m_baseIsFirst = comparePositions(base, extent) <= 0;
449 m_start = base;
453 m_end = base;
469 // The base, start and end are all in the same region. No adjustment necessary.
475 // If the start is outside the base's editable root, cap it at the start of that root.
476 // If the start is in non-editable content that is inside the base's editable root, put it
477 // at the first editable position after start inside the base's editable root.
486 // If the end is outside the base's editable root, cap it at the end of that root.
487 // If the end is in non-editable content that is inside the base's root, put it
488 // at the last editable position before the end inside the base's root.