Lines Matching refs:targetNode
285 Node* innerNode = targetNode(result);
312 Node* innerNode = targetNode(result);
354 Node* innerNode = targetNode(event);
384 Node* innerNode = targetNode(event);
460 m_mouseDownMayStartSelect = canMouseDownStartSelect(targetNode(event));
490 Node* innerNode = targetNode(event);
547 Node* targetNode = EventHandler::targetNode(event);
548 if (event.event().button() != LeftButton || !targetNode || !targetNode->renderer())
559 RenderObject* renderer = targetNode->renderer();
635 static VisiblePosition selectionExtentRespectingEditingBoundary(const VisibleSelection& selection, const IntPoint& localPoint, Node* targetNode)
640 if (!targetNode->renderer())
643 if (editableElement && !editableElement->contains(targetNode)) {
647 FloatPoint absolutePoint = targetNode->renderer()->localToAbsolute(FloatPoint(selectionEndPoint));
649 targetNode = editableElement;
652 return targetNode->renderer()->positionForPoint(selectionEndPoint);
660 Node* target = targetNode(hitTestResult);
751 Node* node = targetNode(event);
1130 return subframeForTargetNode(targetNode(hitTestResult));
1162 Node* node = targetNode(event);
1327 Node* EventHandler::targetNode(const MouseEventWithHitTestResults& event)
1329 return targetNode(event.hitTestResult());
1332 Node* EventHandler::targetNode(const HitTestResult& hitTestResult)
1385 if (!targetNode(mev)) {
1390 m_mousePressNode = targetNode(mev);
1403 m_capturingMouseEventsNode = targetNode(mev);
1425 m_clickNode = targetNode(mev);
1441 bool swallowEvent = dispatchMouseEvent(eventNames().mousedownEvent, targetNode(mev), true, m_clickCount, mouseEvent, true);
1467 if (targetNode(mev)->isShadowRoot() && targetNode(mev)->shadowHost()->hasTagName(inputTag)) {
1508 bool swallowMouseUpEvent = dispatchMouseEvent(eventNames().mouseupEvent, targetNode(mev), true, m_clickCount, mouseEvent, false);
1510 bool swallowClickEvent = mouseEvent.button() != RightButton && targetNode(mev) == m_clickNode && dispatchMouseEvent(eventNames().clickEvent, targetNode(mev), true, m_clickCount, mouseEvent, true);
1636 updateMouseEventTargetNode(targetNode(mev), mouseEvent, true);
1651 if (targetNode(mev) && targetNode(mev)->isHTMLElement()) {
1652 HTMLElement* el = toHTMLElement(targetNode(mev));
1668 swallowEvent = dispatchMouseEvent(eventNames().mousemoveEvent, targetNode(mev), false, 0, mouseEvent, true);
1730 bool swallowMouseUpEvent = dispatchMouseEvent(eventNames().mouseupEvent, targetNode(mev), true, m_clickCount, mouseEvent, false);
1732 bool swallowClickEvent = m_clickCount > 0 && mouseEvent.button() != RightButton && targetNode(mev) == m_clickNode && dispatchMouseEvent(eventNames().clickEvent, targetNode(mev), true, m_clickCount, mouseEvent, true);
1809 Node* newTarget = targetNode(mev);
1924 void EventHandler::updateMouseEventTargetNode(Node* targetNode, const PlatformMouseEvent& mouseEvent, bool fireMouseOverOut)
1926 Node* result = targetNode;
2025 bool EventHandler::dispatchMouseEvent(const AtomicString& eventType, Node* targetNode, bool /*cancelable*/, int clickCount, const PlatformMouseEvent& mouseEvent, bool setUnder)
2030 updateMouseEventTargetNode(targetNode, mouseEvent, setUnder);
2227 && (m_frame->selection()->isContentEditable() || (targetNode(mev) && targetNode(mev)->isTextNode()))) {
2232 targetNode(mev), true, 0, event, false);
2283 Node* targetNode = doc->focusedNode();
2284 if (!targetNode)
2285 targetNode = doc;
2289 result.setInnerNode(targetNode);
2305 return dispatchMouseEvent(eventNames().contextmenuEvent, targetNode, true, 0, mouseEvent, false);