Lines Matching refs:selection
49 static bool getStartEndListChildren(const VisibleSelection& selection, Node*& start, Node*& end)
51 if (selection.isNone())
55 Node* startListChild = enclosingListChild(selection.start().anchorNode());
60 Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().anchorNode()) : startListChild;
64 // For a range selection we want the following behavior:
79 // if the selection ends on a list item with a sublist, include the entire sublist
144 static bool canIncreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end)
146 if (!getStartEndListChildren(selection, start, end))
209 return canIncreaseListLevel(document->frame()->selection()->selection(), startListChild, endListChild);
242 static bool canDecreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end)
244 if (!getStartEndListChildren(selection, start, end))
285 return canDecreaseListLevel(document->frame()->selection()->selection(), startListChild, endListChild);