webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WebCore::CompositeEditCommand Class Reference

#include <CompositeEditCommand.h>

Inheritance diagram for WebCore::CompositeEditCommand:
WebCore::EditCommand WTF::RefCounted< EditCommand > WTF::RefCounted< EditCommand > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WebCore::ApplyBlockElementCommand WebCore::ApplyStyleCommand WebCore::BreakBlockquoteCommand WebCore::CreateLinkCommand WebCore::DeleteSelectionCommand WebCore::DictationCommandIOS WebCore::InsertLineBreakCommand WebCore::InsertListCommand WebCore::InsertParagraphSeparatorCommand WebCore::InsertTextCommand WebCore::ModifySelectionListLevelCommand WebCore::MoveSelectionCommand WebCore::RemoveFormatCommand WebCore::RemoveNodePreservingChildrenCommand WebCore::ReplaceRangeWithTextCommand WebCore::ReplaceSelectionCommand WebCore::SimplifyMarkupCommand WebCore::SpellingCorrectionCommand WebCore::SplitTextNodeContainingElementCommand WebCore::TextInsertionBaseCommand WebCore::UnlinkCommand

Public Member Functions

virtual ~CompositeEditCommand ()
 
void apply ()
 
bool isFirstCommand (EditCommand *command)
 
EditCommandComposition * composition () const
 
EditCommandComposition & ensureComposition ()
 
virtual bool isCreateLinkCommand () const
 
virtual bool isTypingCommand () const
 
virtual bool isDictationCommand () const
 
virtual bool preservesTypingStyle () const
 
virtual bool shouldRetainAutocorrectionIndicator () const
 
virtual void setShouldRetainAutocorrectionIndicator (bool)
 
virtual bool shouldStopCaretBlinking () const
 
virtual String inputEventTypeName () const
 
virtual String inputEventData () const
 
virtual bool isBeforeInputEventCancelable () const
 
virtual bool shouldDispatchInputEvents () const
 
Vector< RefPtr< StaticRange > > targetRangesForBindings () const
 
virtual RefPtr< DataTransfer > inputEventDataTransfer () const
 
- Public Member Functions inherited from WebCore::EditCommand
virtual ~EditCommand ()
 
void setParent (CompositeEditCommand *)
 
virtual EditAction editingAction () const
 
const VisibleSelection & startingSelection () const
 
const VisibleSelection & endingSelection () const
 
virtual bool isInsertTextCommand () const
 
virtual bool isSimpleEditCommand () const
 
virtual bool isEditCommandComposition () const
 
bool isTopLevelCommand () const
 
virtual void doApply ()=0
 
virtual ~EditCommand ()
 
void setParent (CompositeEditCommand *)
 
virtual EditAction editingAction () const
 
const VisibleSelection & startingSelection () const
 
const VisibleSelection & endingSelection () const
 
virtual bool isInsertTextCommand () const
 
virtual bool isSimpleEditCommand () const
 
virtual bool isEditCommandComposition () const
 
bool isTopLevelCommand () const
 
virtual void doApply ()=0
 
- Public Member Functions inherited from WTF::RefCounted< EditCommand >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Protected Member Functions

 CompositeEditCommand (Document &, EditAction=EditActionUnspecified)
 
virtual bool willApplyCommand ()
 
virtual void didApplyCommand ()
 
virtual Vector< RefPtr< StaticRange > > targetRanges () const
 
void appendNode (PassRefPtr< Node >, PassRefPtr< ContainerNode > parent)
 
void applyCommandToComposite (PassRefPtr< EditCommand >)
 
void applyCommandToComposite (PassRefPtr< CompositeEditCommand >, const VisibleSelection &)
 
void applyStyle (const EditingStyle *, EditAction=EditActionChangeAttributes)
 
void applyStyle (const EditingStyle *, const Position &start, const Position &end, EditAction=EditActionChangeAttributes)
 
void applyStyledElement (PassRefPtr< Element >)
 
void removeStyledElement (PassRefPtr< Element >)
 
void deleteSelection (bool smartDelete=false, bool mergeBlocksAfterDelete=true, bool replace=false, bool expandForSpecialElements=true, bool sanitizeMarkup=true)
 
void deleteSelection (const VisibleSelection &, bool smartDelete=false, bool mergeBlocksAfterDelete=true, bool replace=false, bool expandForSpecialElements=true, bool sanitizeMarkup=true)
 
virtual void deleteTextFromNode (PassRefPtr< Text >, unsigned offset, unsigned count)
 
void inputText (const String &, bool selectInsertedText=false)
 
bool isRemovableBlock (const Node *)
 
void insertNodeAfter (PassRefPtr< Node >, PassRefPtr< Node > refChild)
 
void insertNodeAt (PassRefPtr< Node >, const Position &)
 
void insertNodeAtTabSpanPosition (PassRefPtr< Node >, const Position &)
 
void insertNodeBefore (PassRefPtr< Node >, PassRefPtr< Node > refChild, ShouldAssumeContentIsAlwaysEditable=DoNotAssumeContentIsAlwaysEditable)
 
void insertParagraphSeparator (bool useDefaultParagraphElement=false, bool pasteBlockqutoeIntoUnquotedArea=false)
 
void insertLineBreak ()
 
void insertTextIntoNode (PassRefPtr< Text >, unsigned offset, const String &text)
 
void mergeIdenticalElements (PassRefPtr< Element >, PassRefPtr< Element >)
 
void rebalanceWhitespace ()
 
void rebalanceWhitespaceAt (const Position &)
 
void rebalanceWhitespaceOnTextSubstring (PassRefPtr< Text >, int startOffset, int endOffset)
 
void prepareWhitespaceAtPositionForSplit (Position &)
 
bool canRebalance (const Position &) const
 
bool shouldRebalanceLeadingWhitespaceFor (const String &) const
 
void removeCSSProperty (PassRefPtr< StyledElement >, CSSPropertyID)
 
void removeNodeAttribute (PassRefPtr< Element >, const QualifiedName &attribute)
 
void removeChildrenInRange (PassRefPtr< Node >, unsigned from, unsigned to)
 
virtual void removeNode (PassRefPtr< Node >, ShouldAssumeContentIsAlwaysEditable=DoNotAssumeContentIsAlwaysEditable)
 
HTMLElement * replaceElementWithSpanPreservingChildrenAndAttributes (PassRefPtr< HTMLElement >)
 
void removeNodePreservingChildren (PassRefPtr< Node >, ShouldAssumeContentIsAlwaysEditable=DoNotAssumeContentIsAlwaysEditable)
 
void removeNodeAndPruneAncestors (PassRefPtr< Node >)
 
void moveRemainingSiblingsToNewParent (Node *, Node *pastLastNodeToMove, PassRefPtr< Element > prpNewParent)
 
void updatePositionForNodeRemovalPreservingChildren (Position &, Node &)
 
void prune (PassRefPtr< Node >)
 
void replaceTextInNode (PassRefPtr< Text >, unsigned offset, unsigned count, const String &replacementText)
 
Position replaceSelectedTextInNode (const String &)
 
void replaceTextInNodePreservingMarkers (PassRefPtr< Text >, unsigned offset, unsigned count, const String &replacementText)
 
Position positionOutsideTabSpan (const Position &)
 
void setNodeAttribute (PassRefPtr< Element >, const QualifiedName &attribute, const AtomicString &value)
 
void splitElement (PassRefPtr< Element >, PassRefPtr< Node > atChild)
 
void splitTextNode (PassRefPtr< Text >, unsigned offset)
 
void splitTextNodeContainingElement (PassRefPtr< Text >, unsigned offset)
 
void wrapContentsInDummySpan (Element &)
 
void deleteInsignificantText (PassRefPtr< Text >, unsigned start, unsigned end)
 
void deleteInsignificantText (const Position &start, const Position &end)
 
void deleteInsignificantTextDownstream (const Position &)
 
RefPtr< Node > appendBlockPlaceholder (PassRefPtr< Element >)
 
RefPtr< Node > insertBlockPlaceholder (const Position &)
 
RefPtr< Node > addBlockPlaceholderIfNeeded (Element *)
 
void removePlaceholderAt (const Position &)
 
Ref< HTMLElement > insertNewDefaultParagraphElementAt (const Position &)
 
RefPtr< Node > moveParagraphContentsToNewBlockIfNecessary (const Position &)
 
void pushAnchorElementDown (Element &)
 
void moveParagraph (const VisiblePosition &, const VisiblePosition &, const VisiblePosition &, bool preserveSelection=false, bool preserveStyle=true)
 
void moveParagraphs (const VisiblePosition &, const VisiblePosition &, const VisiblePosition &, bool preserveSelection=false, bool preserveStyle=true)
 
void moveParagraphWithClones (const VisiblePosition &startOfParagraphToMove, const VisiblePosition &endOfParagraphToMove, Element *blockElement, Node *outerNode)
 
void cloneParagraphUnderNewElement (const Position &start, const Position &end, Node *outerNode, Element *blockElement)
 
void cleanupAfterDeletion (VisiblePosition destination=VisiblePosition())
 
std::optional< VisibleSelection > shouldBreakOutOfEmptyListItem () const
 
bool breakOutOfEmptyListItem ()
 
bool breakOutOfEmptyMailBlockquotedParagraph ()
 
Position positionAvoidingSpecialElementBoundary (const Position &)
 
RefPtr< Node > splitTreeToNode (Node *, Node *, bool splitAncestor=false)
 
- Protected Member Functions inherited from WebCore::EditCommand
 EditCommand (Document &, EditAction=EditActionUnspecified)
 
 EditCommand (Document &, const VisibleSelection &, const VisibleSelection &)
 
const Frame & frame () const
 
Frame & frame ()
 
const Document & document () const
 
Document & document ()
 
CompositeEditCommand * parent () const
 
void setStartingSelection (const VisibleSelection &)
 
WEBCORE_EXPORT void setEndingSelection (const VisibleSelection &)
 
bool isEditingTextAreaOrTextInput () const
 
void postTextStateChangeNotification (AXTextEditType, const String &)
 
void postTextStateChangeNotification (AXTextEditType, const String &, const VisiblePosition &)
 
 EditCommand (Document &, EditAction=EditActionUnspecified)
 
 EditCommand (Document &, const VisibleSelection &, const VisibleSelection &)
 
const Frame & frame () const
 
Frame & frame ()
 
const Document & document () const
 
Document & document ()
 
CompositeEditCommand * parent () const
 
void setStartingSelection (const VisibleSelection &)
 
WEBCORE_EXPORT void setEndingSelection (const VisibleSelection &)
 
bool isEditingTextAreaOrTextInput () const
 
void postTextStateChangeNotification (AXTextEditType, const String &)
 
void postTextStateChangeNotification (AXTextEditType, const String &, const VisiblePosition &)
 
- Protected Member Functions inherited from WTF::RefCounted< EditCommand >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Protected Attributes

Vector< RefPtr< EditCommand > > m_commands
 

Constructor & Destructor Documentation

◆ ~CompositeEditCommand()

WebCore::CompositeEditCommand::~CompositeEditCommand ( )
virtual

◆ CompositeEditCommand()

WebCore::CompositeEditCommand::CompositeEditCommand ( Document &  document,
EditAction  editingAction = EditActionUnspecified 
)
explicitprotected

Member Function Documentation

◆ addBlockPlaceholderIfNeeded()

RefPtr< Node > WebCore::CompositeEditCommand::addBlockPlaceholderIfNeeded ( Element *  container)
protected

◆ appendBlockPlaceholder()

RefPtr< Node > WebCore::CompositeEditCommand::appendBlockPlaceholder ( PassRefPtr< Element >  container)
protected

◆ appendNode()

void WebCore::CompositeEditCommand::appendNode ( PassRefPtr< Node >  node,
PassRefPtr< ContainerNode >  parent 
)
protected

◆ apply()

void WebCore::CompositeEditCommand::apply ( )

◆ applyCommandToComposite() [1/2]

void WebCore::CompositeEditCommand::applyCommandToComposite ( PassRefPtr< EditCommand >  prpCommand)
protected

◆ applyCommandToComposite() [2/2]

void WebCore::CompositeEditCommand::applyCommandToComposite ( PassRefPtr< CompositeEditCommand >  command,
const VisibleSelection &  selection 
)
protected

◆ applyStyle() [1/2]

void WebCore::CompositeEditCommand::applyStyle ( const EditingStyle *  style,
EditAction  editingAction = EditActionChangeAttributes 
)
protected

◆ applyStyle() [2/2]

void WebCore::CompositeEditCommand::applyStyle ( const EditingStyle *  style,
const Position &  start,
const Position &  end,
EditAction  editingAction = EditActionChangeAttributes 
)
protected

◆ applyStyledElement()

void WebCore::CompositeEditCommand::applyStyledElement ( PassRefPtr< Element >  element)
protected

◆ breakOutOfEmptyListItem()

bool WebCore::CompositeEditCommand::breakOutOfEmptyListItem ( )
protected

◆ breakOutOfEmptyMailBlockquotedParagraph()

bool WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph ( )
protected

◆ canRebalance()

bool WebCore::CompositeEditCommand::canRebalance ( const Position &  position) const
protected

◆ cleanupAfterDeletion()

void WebCore::CompositeEditCommand::cleanupAfterDeletion ( VisiblePosition  destination = VisiblePosition())
protected

◆ cloneParagraphUnderNewElement()

void WebCore::CompositeEditCommand::cloneParagraphUnderNewElement ( const Position &  start,
const Position &  end,
Node *  outerNode,
Element *  blockElement 
)
protected

◆ composition()

EditCommandComposition * WebCore::CompositeEditCommand::composition ( ) const

◆ deleteInsignificantText() [1/2]

void WebCore::CompositeEditCommand::deleteInsignificantText ( PassRefPtr< Text >  textNode,
unsigned  start,
unsigned  end 
)
protected

◆ deleteInsignificantText() [2/2]

void WebCore::CompositeEditCommand::deleteInsignificantText ( const Position &  start,
const Position &  end 
)
protected

◆ deleteInsignificantTextDownstream()

void WebCore::CompositeEditCommand::deleteInsignificantTextDownstream ( const Position &  pos)
protected

◆ deleteSelection() [1/2]

void WebCore::CompositeEditCommand::deleteSelection ( bool  smartDelete = false,
bool  mergeBlocksAfterDelete = true,
bool  replace = false,
bool  expandForSpecialElements = true,
bool  sanitizeMarkup = true 
)
protected

◆ deleteSelection() [2/2]

void WebCore::CompositeEditCommand::deleteSelection ( const VisibleSelection &  selection,
bool  smartDelete = false,
bool  mergeBlocksAfterDelete = true,
bool  replace = false,
bool  expandForSpecialElements = true,
bool  sanitizeMarkup = true 
)
protected

◆ deleteTextFromNode()

void WebCore::CompositeEditCommand::deleteTextFromNode ( PassRefPtr< Text >  node,
unsigned  offset,
unsigned  count 
)
protectedvirtual

◆ didApplyCommand()

void WebCore::CompositeEditCommand::didApplyCommand ( )
protectedvirtual

◆ ensureComposition()

EditCommandComposition & WebCore::CompositeEditCommand::ensureComposition ( )

◆ inputEventData()

virtual String WebCore::CompositeEditCommand::inputEventData ( ) const
inlinevirtual

◆ inputEventDataTransfer()

RefPtr< DataTransfer > WebCore::CompositeEditCommand::inputEventDataTransfer ( ) const
virtual

◆ inputEventTypeName()

String WebCore::CompositeEditCommand::inputEventTypeName ( ) const
virtual

◆ inputText()

void WebCore::CompositeEditCommand::inputText ( const String &  text,
bool  selectInsertedText = false 
)
protected

◆ insertBlockPlaceholder()

RefPtr< Node > WebCore::CompositeEditCommand::insertBlockPlaceholder ( const Position &  pos)
protected

◆ insertLineBreak()

void WebCore::CompositeEditCommand::insertLineBreak ( )
protected

◆ insertNewDefaultParagraphElementAt()

Ref< HTMLElement > WebCore::CompositeEditCommand::insertNewDefaultParagraphElementAt ( const Position &  position)
protected

◆ insertNodeAfter()

void WebCore::CompositeEditCommand::insertNodeAfter ( PassRefPtr< Node >  insertChild,
PassRefPtr< Node >  refChild 
)
protected

◆ insertNodeAt()

void WebCore::CompositeEditCommand::insertNodeAt ( PassRefPtr< Node >  insertChild,
const Position &  editingPosition 
)
protected

◆ insertNodeAtTabSpanPosition()

void WebCore::CompositeEditCommand::insertNodeAtTabSpanPosition ( PassRefPtr< Node >  node,
const Position &  pos 
)
protected

◆ insertNodeBefore()

void WebCore::CompositeEditCommand::insertNodeBefore ( PassRefPtr< Node >  insertChild,
PassRefPtr< Node >  refChild,
ShouldAssumeContentIsAlwaysEditable  shouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable 
)
protected

◆ insertParagraphSeparator()

void WebCore::CompositeEditCommand::insertParagraphSeparator ( bool  useDefaultParagraphElement = false,
bool  pasteBlockqutoeIntoUnquotedArea = false 
)
protected

◆ insertTextIntoNode()

void WebCore::CompositeEditCommand::insertTextIntoNode ( PassRefPtr< Text >  node,
unsigned  offset,
const String &  text 
)
protected

◆ isBeforeInputEventCancelable()

virtual bool WebCore::CompositeEditCommand::isBeforeInputEventCancelable ( ) const
inlinevirtual

◆ isCreateLinkCommand()

bool WebCore::CompositeEditCommand::isCreateLinkCommand ( ) const
virtual

Reimplemented in WebCore::CreateLinkCommand.

◆ isDictationCommand()

virtual bool WebCore::CompositeEditCommand::isDictationCommand ( ) const
inlinevirtual

Reimplemented in WebCore::DictationCommand.

◆ isFirstCommand()

bool WebCore::CompositeEditCommand::isFirstCommand ( EditCommand *  command)
inline

◆ isRemovableBlock()

bool WebCore::CompositeEditCommand::isRemovableBlock ( const Node *  node)
protected

◆ isTypingCommand()

bool WebCore::CompositeEditCommand::isTypingCommand ( ) const
virtual

◆ mergeIdenticalElements()

void WebCore::CompositeEditCommand::mergeIdenticalElements ( PassRefPtr< Element >  prpFirst,
PassRefPtr< Element >  prpSecond 
)
protected

◆ moveParagraph()

void WebCore::CompositeEditCommand::moveParagraph ( const VisiblePosition &  startOfParagraphToMove,
const VisiblePosition &  endOfParagraphToMove,
const VisiblePosition &  destination,
bool  preserveSelection = false,
bool  preserveStyle = true 
)
protected

◆ moveParagraphContentsToNewBlockIfNecessary()

RefPtr< Node > WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary ( const Position &  pos)
protected

◆ moveParagraphs()

void WebCore::CompositeEditCommand::moveParagraphs ( const VisiblePosition &  startOfParagraphToMove,
const VisiblePosition &  endOfParagraphToMove,
const VisiblePosition &  destination,
bool  preserveSelection = false,
bool  preserveStyle = true 
)
protected

◆ moveParagraphWithClones()

void WebCore::CompositeEditCommand::moveParagraphWithClones ( const VisiblePosition &  startOfParagraphToMove,
const VisiblePosition &  endOfParagraphToMove,
Element *  blockElement,
Node *  outerNode 
)
protected

◆ moveRemainingSiblingsToNewParent()

void WebCore::CompositeEditCommand::moveRemainingSiblingsToNewParent ( Node *  node,
Node *  pastLastNodeToMove,
PassRefPtr< Element >  prpNewParent 
)
protected

◆ positionAvoidingSpecialElementBoundary()

Position WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary ( const Position &  original)
protected

◆ positionOutsideTabSpan()

Position WebCore::CompositeEditCommand::positionOutsideTabSpan ( const Position &  position)
protected

◆ prepareWhitespaceAtPositionForSplit()

void WebCore::CompositeEditCommand::prepareWhitespaceAtPositionForSplit ( Position &  position)
protected

◆ preservesTypingStyle()

bool WebCore::CompositeEditCommand::preservesTypingStyle ( ) const
virtual

◆ prune()

void WebCore::CompositeEditCommand::prune ( PassRefPtr< Node >  node)
protected

◆ pushAnchorElementDown()

void WebCore::CompositeEditCommand::pushAnchorElementDown ( Element &  anchorElement)
protected

◆ rebalanceWhitespace()

void WebCore::CompositeEditCommand::rebalanceWhitespace ( )
protected

◆ rebalanceWhitespaceAt()

void WebCore::CompositeEditCommand::rebalanceWhitespaceAt ( const Position &  position)
protected

◆ rebalanceWhitespaceOnTextSubstring()

void WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring ( PassRefPtr< Text >  prpTextNode,
int  startOffset,
int  endOffset 
)
protected

◆ removeChildrenInRange()

void WebCore::CompositeEditCommand::removeChildrenInRange ( PassRefPtr< Node >  node,
unsigned  from,
unsigned  to 
)
protected

◆ removeCSSProperty()

void WebCore::CompositeEditCommand::removeCSSProperty ( PassRefPtr< StyledElement >  element,
CSSPropertyID  property 
)
protected

◆ removeNode()

void WebCore::CompositeEditCommand::removeNode ( PassRefPtr< Node >  node,
ShouldAssumeContentIsAlwaysEditable  shouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable 
)
protectedvirtual

◆ removeNodeAndPruneAncestors()

void WebCore::CompositeEditCommand::removeNodeAndPruneAncestors ( PassRefPtr< Node >  node)
protected

◆ removeNodeAttribute()

void WebCore::CompositeEditCommand::removeNodeAttribute ( PassRefPtr< Element >  element,
const QualifiedName &  attribute 
)
protected

◆ removeNodePreservingChildren()

void WebCore::CompositeEditCommand::removeNodePreservingChildren ( PassRefPtr< Node >  node,
ShouldAssumeContentIsAlwaysEditable  shouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable 
)
protected

◆ removePlaceholderAt()

void WebCore::CompositeEditCommand::removePlaceholderAt ( const Position &  p)
protected

◆ removeStyledElement()

void WebCore::CompositeEditCommand::removeStyledElement ( PassRefPtr< Element >  element)
protected

◆ replaceElementWithSpanPreservingChildrenAndAttributes()

HTMLElement * WebCore::CompositeEditCommand::replaceElementWithSpanPreservingChildrenAndAttributes ( PassRefPtr< HTMLElement >  node)
protected

◆ replaceSelectedTextInNode()

Position WebCore::CompositeEditCommand::replaceSelectedTextInNode ( const String &  text)
protected

◆ replaceTextInNode()

void WebCore::CompositeEditCommand::replaceTextInNode ( PassRefPtr< Text >  prpNode,
unsigned  offset,
unsigned  count,
const String &  replacementText 
)
protected

◆ replaceTextInNodePreservingMarkers()

void WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers ( PassRefPtr< Text >  prpNode,
unsigned  offset,
unsigned  count,
const String &  replacementText 
)
protected

◆ setNodeAttribute()

void WebCore::CompositeEditCommand::setNodeAttribute ( PassRefPtr< Element >  element,
const QualifiedName &  attribute,
const AtomicString &  value 
)
protected

◆ setShouldRetainAutocorrectionIndicator()

void WebCore::CompositeEditCommand::setShouldRetainAutocorrectionIndicator ( bool  )
virtual

◆ shouldBreakOutOfEmptyListItem()

std::optional< VisibleSelection > WebCore::CompositeEditCommand::shouldBreakOutOfEmptyListItem ( ) const
protected

◆ shouldDispatchInputEvents()

virtual bool WebCore::CompositeEditCommand::shouldDispatchInputEvents ( ) const
inlinevirtual

◆ shouldRebalanceLeadingWhitespaceFor()

bool WebCore::CompositeEditCommand::shouldRebalanceLeadingWhitespaceFor ( const String &  text) const
protected

◆ shouldRetainAutocorrectionIndicator()

bool WebCore::CompositeEditCommand::shouldRetainAutocorrectionIndicator ( ) const
virtual

◆ shouldStopCaretBlinking()

virtual bool WebCore::CompositeEditCommand::shouldStopCaretBlinking ( ) const
inlinevirtual

◆ splitElement()

void WebCore::CompositeEditCommand::splitElement ( PassRefPtr< Element >  element,
PassRefPtr< Node >  atChild 
)
protected

◆ splitTextNode()

void WebCore::CompositeEditCommand::splitTextNode ( PassRefPtr< Text >  node,
unsigned  offset 
)
protected

◆ splitTextNodeContainingElement()

void WebCore::CompositeEditCommand::splitTextNodeContainingElement ( PassRefPtr< Text >  text,
unsigned  offset 
)
protected

◆ splitTreeToNode()

RefPtr< Node > WebCore::CompositeEditCommand::splitTreeToNode ( Node *  start,
Node *  end,
bool  splitAncestor = false 
)
protected

◆ targetRanges()

Vector< RefPtr< StaticRange > > WebCore::CompositeEditCommand::targetRanges ( ) const
protectedvirtual

◆ targetRangesForBindings()

Vector< RefPtr< StaticRange > > WebCore::CompositeEditCommand::targetRangesForBindings ( ) const

◆ updatePositionForNodeRemovalPreservingChildren()

void WebCore::CompositeEditCommand::updatePositionForNodeRemovalPreservingChildren ( Position &  position,
Node &  node 
)
protected

◆ willApplyCommand()

bool WebCore::CompositeEditCommand::willApplyCommand ( )
protectedvirtual

◆ wrapContentsInDummySpan()

void WebCore::CompositeEditCommand::wrapContentsInDummySpan ( Element &  element)
protected

Member Data Documentation

◆ m_commands

Vector<RefPtr<EditCommand> > WebCore::CompositeEditCommand::m_commands
protected

The documentation for this class was generated from the following files: