Home | History | Annotate | Download | only in page

Lines Matching defs:scrollbar

98 #include "platform/scroll/Scrollbar.h"
591 // so it's allowed to start a drag or selection if it wasn't in a scrollbar.
592 m_mouseDownMayStartSelect = canMouseDownStartSelect(event.innerNode()) && !event.scrollbar();
1188 if ((editable || (renderer && renderer->isText() && node->canStartSelection())) && !inResizer && !result.scrollbar())
1290 m_capturesDragging = !swallowEvent || mev.scrollbar();
1292 // If the hit testing originally determined the event was in a scrollbar, refetch the MouseEventWithHitTestResults
1293 // in case the scrollbar widget was destroyed when the mouse event was handled.
1294 if (mev.scrollbar()) {
1295 const bool wasLastScrollBar = mev.scrollbar() == m_lastScrollbarUnderMouse.get();
1298 if (wasLastScrollBar && mev.scrollbar() != m_lastScrollbarUnderMouse.get())
1405 // Send events right to a scrollbar if the mouse is pressed.
1433 Scrollbar* scrollbar = 0;
1438 if (!scrollbar)
1439 scrollbar = mev.scrollbar();
1441 updateLastScrollbarUnderMouse(scrollbar, !m_mousePressed);
1462 if (scrollbar && !m_mousePressed)
1463 scrollbar->mouseMoved(mouseEvent); // Handle hover effects on platforms that support visual feedback on scrollbar hovering.
1877 // If clicking on a frame scrollbar, do not mess up with content focus.
1939 return result.scrollbar();
2103 RefPtr<Scrollbar> scrollbar = targetedEvent.hitTestResult().scrollbar();
2106 if (scrollbar) {
2107 bool eventSwallowed = scrollbar->gestureEvent(gestureEvent);
2109 m_scrollbarHandlingScrollGesture = scrollbar;
2147 RefPtr<Scrollbar> scrollbar;
2149 scrollbar = m_scrollbarHandlingScrollGesture.get();
2170 if (!scrollbar)
2171 scrollbar = result.scrollbar();
2174 if (scrollbar) {
2175 bool eventSwallowed = scrollbar->gestureEvent(gestureEvent);
2243 // Note that if the original hit test wasn't over an element (eg. was over a scrollbar) we
2523 // If the touch is over a scrollbar, don't adjust the touch point since touch adjustment only takes into account
2524 // DOM nodes so a touch over a scrollbar will be adjusted towards nearby nodes. This leads to things like textarea
2526 if (result.scrollbar())
2707 && !mev.scrollbar()
3464 Scrollbar* scrollbar = mev.scrollbar();
3465 updateLastScrollbarUnderMouse(scrollbar, true);
3467 if (!scrollbar || !scrollbar->enabled())
3470 scrollbar->mouseDown(mev.event());
3474 // If scrollbar (under mouse) is different from last, send a mouse exited. Set
3475 // last to scrollbar if setLast is true; else set last to 0.
3476 void EventHandler::updateLastScrollbarUnderMouse(Scrollbar* scrollbar, bool setLast)
3478 if (m_lastScrollbarUnderMouse != scrollbar) {
3479 // Send mouse exited to the old scrollbar.
3483 // Send mouse entered if we're setting a new scrollbar.
3484 if (scrollbar && setLast)
3485 scrollbar->mouseEntered();
3487 m_lastScrollbarUnderMouse = setLast ? scrollbar : 0;