Home | History | Annotate | Download | only in page

Lines Matching refs:Granularity

137 static inline bool scrollNode(float delta, WheelEvent::Granularity granularity, ScrollDirection positiveDirection, ScrollDirection negativeDirection, Node* node, Node** stopNode)
150 if (granularity == WheelEvent::Page)
153 if (granularity == WheelEvent::Line)
156 if (granularity == WheelEvent::Pixel)
276 static void setNonDirectionalSelectionIfNeeded(SelectionController* selection, const VisibleSelection& newSelection, TextGranularity granularity)
280 selection->setSelection(newSelection, granularity, MakeNonDirectionalSelection);
290 TextGranularity granularity = CharacterGranularity;
297 granularity = WordGranularity;
303 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity);
321 TextGranularity granularity = CharacterGranularity;
323 granularity = WordGranularity;
327 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity);
365 TextGranularity granularity = CharacterGranularity;
367 granularity = ParagraphGranularity;
371 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity);
407 TextGranularity granularity = CharacterGranularity;
428 if (m_frame->selection()->granularity() != CharacterGranularity) {
429 granularity = m_frame->selection()->granularity();
430 newSelection.expandUsingGranularity(m_frame->selection()->granularity());
437 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity);
693 if (m_frame->selection()->granularity() != CharacterGranularity)
694 newSelection.expandUsingGranularity(m_frame->selection()->granularity());
696 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, m_frame->selection()->granularity());
1033 bool EventHandler::scrollOverflow(ScrollDirection direction, ScrollGranularity granularity, Node* startingNode)
1045 if (r && !r->isListBox() && r->enclosingBox()->scroll(direction, granularity)) {
1054 bool EventHandler::logicalScrollOverflow(ScrollLogicalDirection direction, ScrollGranularity granularity, Node* startingNode)
1066 if (r && !r->isListBox() && r->enclosingBox()->logicalScroll(direction, granularity)) {
1075 bool EventHandler::scrollRecursively(ScrollDirection direction, ScrollGranularity granularity, Node* startingNode)
1080 if (scrollOverflow(direction, granularity, startingNode))
1084 if (view && view->scroll(direction, granularity))
1089 return frame->eventHandler()->scrollRecursively(direction, granularity, m_frame->ownerElement());
1092 bool EventHandler::logicalScrollRecursively(ScrollLogicalDirection direction, ScrollGranularity granularity, Node* startingNode)
1097 if (logicalScrollOverflow(direction, granularity, startingNode))
1105 if (granularity == ScrollByDocument && view && view->logicalScroll(ScrollInlineDirectionBackward, ScrollByDocument))
1108 if (view && view->logicalScroll(direction, granularity))
1118 return frame->eventHandler()->logicalScrollRecursively(direction, granularity, m_frame->ownerElement());
2182 if (scrollNode(wheelEvent->rawDeltaX(), wheelEvent->granularity(), ScrollLeft, ScrollRight, startNode, &stopNode))
2185 if (scrollNode(wheelEvent->rawDeltaY(), wheelEvent->granularity(), ScrollUp, ScrollDown, startNode, &stopNode))