Changeset 142977 in webkit
- Timestamp:
- Feb 15, 2013 2:46:33 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r142879 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update exported symbols. 9 10 * Source/autotools/symbols.filter: 11 1 12 2013-02-08 Andrey Kosyakov <caseq@chromium.org> 2 13 -
trunk/Source/WebCore/ChangeLog
r142976 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 The existing API was overloaded and could be simplified by passing all the bool arguments in 9 a HitTestRequest argument. This should also help clarify the call as the enum values explicitely 10 state what they do. 11 12 * WebCore.exp.in: 13 * WebCore.order: 14 * dom/Document.cpp: 15 (WebCore::Document::nodesFromRect): 16 * dom/Document.h: 17 (Document): 18 * page/ContextMenuController.cpp: 19 (WebCore::ContextMenuController::createContextMenu): 20 * page/DragController.cpp: 21 (WebCore::DragController::canProcessDrag): 22 (WebCore::DragController::startDrag): 23 * page/EventHandler.cpp: 24 (WebCore::EventHandler::hitTestResultAtPoint): 25 (WebCore::EventHandler::handleMousePressEvent): 26 (WebCore::EventHandler::handleGestureEvent): 27 (WebCore::EventHandler::handleGestureForTextSelectionOrContextMenu): 28 (WebCore::EventHandler::bestClickableNodeForTouchPoint): 29 (WebCore::EventHandler::bestContextMenuNodeForTouchPoint): 30 (WebCore::EventHandler::bestZoomableAreaForTouchPoint): 31 (WebCore::EventHandler::handleTouchEvent): 32 * page/EventHandler.h: 33 (WebCore): 34 (EventHandler): 35 * page/FocusController.cpp: 36 (WebCore::updateFocusCandidateIfNeeded): 37 * page/Frame.cpp: 38 (WebCore::Frame::visiblePositionForPoint): 39 (WebCore::Frame::documentAtPoint): 40 * page/TouchDisambiguation.cpp: 41 (WebCore::findGoodTouchTargets): 42 * rendering/HitTestRequest.h: 43 (WebCore::HitTestRequest::allowsFrameScrollbars): 44 * testing/Internals.cpp: 45 (WebCore::Internals::nodesFromRect): 46 1 47 2013-02-14 Pavel Feldman <pfeldman@chromium.org> 2 48 -
trunk/Source/WebCore/WebCore.exp.in
r142879 r142977 179 179 __ZN7WebCore12EventHandler16handleWheelEventERKNS_18PlatformWheelEventE 180 180 __ZN7WebCore12EventHandler17scrollRecursivelyENS_15ScrollDirectionENS_17ScrollGranularityEPNS_4NodeE 181 __ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_11LayoutPointE bbNS_17HitTestScrollbarsEjRKNS_10LayoutSizeE181 __ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_11LayoutPointEjRKNS_10LayoutSizeE 182 182 __ZN7WebCore12EventHandler21handleMousePressEventERKNS_18PlatformMouseEventE 183 183 __ZN7WebCore12EventHandler23handleMouseReleaseEventERKNS_18PlatformMouseEventE … … 1487 1487 __ZNK7WebCore8Document11completeURLERKN3WTF6StringE 1488 1488 __ZNK7WebCore8Document13axObjectCacheEv 1489 __ZNK7WebCore8Document13nodesFromRectEiijjjj bb1489 __ZNK7WebCore8Document13nodesFromRectEiijjjjj 1490 1490 __ZNK7WebCore8Document14getElementByIdERKN3WTF12AtomicStringE 1491 1491 __ZNK7WebCore8Document31displayStringModifiedByEncodingERKN3WTF6StringE -
trunk/Source/WebCore/WebCore.order
r141216 r142977 22749 22749 __ZNK7WebCore4Node20traversePreviousNodeEPKS0_ 22750 22750 __ZN7WebCore37jsNodeIteratorPrototypeFunctionDetachEPN3JSC9ExecStateE 22751 __ZNK7WebCore8Document13nodesFromRectEiijjjj b22751 __ZNK7WebCore8Document13nodesFromRectEiijjjjj 22752 22752 __ZNK7WebCore8Document17handleZeroPaddingERKNS_14HitTestRequestERNS_13HitTestResultE 22753 22753 __ZN3WTF21ListHashSetTranslatorINS_6RefPtrIN7WebCore4NodeEEELm256ENS_7PtrHashIS4_EEE9translateERPNS_15ListHashSetNodeIS4_Lm256EEERKS4_PNS_24ListHashSetNodeAllocatorIS4_Lm256EEE -
trunk/Source/WebCore/dom/Document.cpp
r142885 r142977 1352 1352 // * making it receive the expading size of each direction separately, 1353 1353 // i.e. nodesFromRect(x, y, topSize, rightSize, bottomSize, leftSize); 1354 PassRefPtr<NodeList> Document::nodesFromRect(int centerX, int centerY, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent) const1354 PassRefPtr<NodeList> Document::nodesFromRect(int centerX, int centerY, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding, HitTestRequest::HitTestRequestType hitType) const 1355 1355 { 1356 1356 // FIXME: Share code between this, elementFromPoint and caretRangeFromPoint. … … 1367 1367 LayoutPoint point = roundedLayoutPoint(FloatPoint(centerX * zoomFactor + view()->scrollX(), centerY * zoomFactor + view()->scrollY())); 1368 1368 1369 int type = HitTestRequest::ReadOnly | HitTestRequest::Active;1369 HitTestRequest request(hitType); 1370 1370 1371 1371 // When ignoreClipping is false, this method returns null for coordinates outside of the viewport. 1372 if (ignoreClipping) 1373 type |= HitTestRequest::IgnoreClipping; 1374 else if (!frameView->visibleContentRect().intersects(HitTestLocation::rectForPoint(point, topPadding, rightPadding, bottomPadding, leftPadding))) 1372 if (!request.ignoreClipping() && !frameView->visibleContentRect().intersects(HitTestLocation::rectForPoint(point, topPadding, rightPadding, bottomPadding, leftPadding))) 1375 1373 return 0; 1376 if (allowShadowContent)1377 type |= HitTestRequest::AllowShadowContent;1378 1379 HitTestRequest request(type);1380 1374 1381 1375 // Passing a zero padding will trigger a rect hit test, however for the purposes of nodesFromRect, -
trunk/Source/WebCore/dom/Document.h
r142378 r142977 36 36 #include "DocumentTiming.h" 37 37 #include "FocusDirection.h" 38 #include "HitTestRequest.h" 38 39 #include "IconURL.h" 39 40 #include "InspectorCounters.h" … … 381 382 * @param bottomPadding How much to expand the bottom of the rectangle 382 383 * @param leftPadding How much to expand the left of the rectangle 383 * @param ignoreClipping whether or not to ignore the root scroll frame when retrieving the element.384 * If false, this method returns null for coordinates outside of the viewport.385 384 */ 386 PassRefPtr<NodeList> nodesFromRect(int centerX, int centerY, unsigned topPadding, unsigned rightPadding, 387 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent) const; 385 PassRefPtr<NodeList> nodesFromRect(int centerX, int centerY, 386 unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding, 387 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active) const; 388 388 Element* elementFromPoint(int x, int y) const; 389 389 PassRefPtr<Range> caretRangeFromPoint(int x, int y); -
trunk/Source/WebCore/page/ContextMenuController.cpp
r142271 r142977 153 153 154 154 if (Frame* frame = event->target()->toNode()->document()->frame()) 155 result = frame->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation() , false);155 result = frame->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation()); 156 156 157 157 if (!result.innerNonSharedNode()) -
trunk/Source/WebCore/page/DragController.cpp
r142375 r142977 561 561 return false; 562 562 563 result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(point, true);563 result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(point, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 564 564 565 565 if (!result.innerNonSharedNode()) … … 745 745 return false; 746 746 747 HitTestResult hitTestResult = src->eventHandler()->hitTestResultAtPoint(dragOrigin, true);747 HitTestResult hitTestResult = src->eventHandler()->hitTestResultAtPoint(dragOrigin, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 748 748 if (!state.m_dragSrc->contains(hitTestResult.innerNode())) 749 749 // The original node being dragged isn't under the drag origin anymore... maybe it was -
trunk/Source/WebCore/page/EventHandler.cpp
r142956 r142977 1002 1002 #endif // ENABLE(DRAG_SUPPORT) 1003 1003 1004 HitTestResult EventHandler::hitTestResultAtPoint(const LayoutPoint& point, bool allowShadowContent, bool ignoreClipping, HitTestScrollbars testScrollbars,HitTestRequest::HitTestRequestType hitType, const LayoutSize& padding)1004 HitTestResult EventHandler::hitTestResultAtPoint(const LayoutPoint& point, HitTestRequest::HitTestRequestType hitType, const LayoutSize& padding) 1005 1005 { 1006 1006 // We always send hitTestResultAtPoint to the main frame if we have one, … … 1013 1013 if (frameView && mainView) { 1014 1014 IntPoint mainFramePoint = mainView->rootViewToContents(frameView->contentsToRootView(roundedIntPoint(point))); 1015 return mainFrame->eventHandler()->hitTestResultAtPoint(mainFramePoint, allowShadowContent, ignoreClipping, testScrollbars,hitType, padding);1015 return mainFrame->eventHandler()->hitTestResultAtPoint(mainFramePoint, hitType, padding); 1016 1016 } 1017 1017 } … … 1022 1022 if (!m_frame->contentRenderer()) 1023 1023 return result; 1024 if (ignoreClipping) 1025 hitType |= HitTestRequest::IgnoreClipping; 1026 if (allowShadowContent) 1027 hitType |= HitTestRequest::AllowShadowContent; 1024 1028 1025 HitTestRequest request(hitType); 1029 1026 m_frame->contentRenderer()->hitTest(request, result); … … 1048 1045 result = widgetHitTestResult; 1049 1046 1050 if ( testScrollbars == ShouldHitTestScrollbars) {1047 if (request.allowsFrameScrollbars()) { 1051 1048 Scrollbar* eventScrollbar = view->scrollbarAtPoint(roundedIntPoint(point)); 1052 1049 if (eventScrollbar) … … 1055 1052 } 1056 1053 1057 if (! allowShadowContent)1054 if (!request.allowsShadowContent()) 1058 1055 result.setToNonShadowAncestor(); 1059 1056 … … 1453 1450 1454 1451 HitTestRequest request(HitTestRequest::Active); 1455 // Save the document point we generate in case the window coordinate is invalidated by what happens 1452 // Save the document point we generate in case the window coordinate is invalidated by what happens 1456 1453 // when we dispatch the event. 1457 1454 LayoutPoint documentPoint = documentPointForWindowPoint(m_frame, mouseEvent.position()); … … 2457 2454 if ((!scrollbar && !eventTarget) || !(hitType & HitTestRequest::ReadOnly)) { 2458 2455 IntPoint hitTestPoint = m_frame->view()->windowToContents(adjustedPoint); 2459 HitTestResult result = hitTestResultAtPoint(hitTestPoint, false, false, ShouldHitTestScrollbars, hitType);2456 HitTestResult result = hitTestResultAtPoint(hitTestPoint, hitType | HitTestRequest::AllowFrameScrollbars); 2460 2457 eventTarget = result.targetNode(); 2461 2458 if (!scrollbar) { … … 2596 2593 #if OS(ANDROID) 2597 2594 IntPoint hitTestPoint = m_frame->view()->windowToContents(gestureEvent.position()); 2598 HitTestResult result = hitTestResultAtPoint(hitTestPoint, true);2595 HitTestResult result = hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 2599 2596 Node* innerNode = result.targetNode(); 2600 2597 if (!result.isLiveLink() && innerNode && (innerNode->isContentEditable() || innerNode->isTextNode())) { … … 2738 2735 bool EventHandler::bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode) 2739 2736 { 2740 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active;2741 2737 IntPoint hitTestPoint = m_frame->view()->windowToContents(touchCenter); 2742 HitTestResult result = hitTestResultAtPoint(hitTestPoint, /*allowShadowContent*/ true, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);2738 HitTestResult result = hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent, touchRadius); 2743 2739 2744 2740 IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius); … … 2757 2753 bool EventHandler::bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode) 2758 2754 { 2759 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active;2760 2755 IntPoint hitTestPoint = m_frame->view()->windowToContents(touchCenter); 2761 HitTestResult result = hitTestResultAtPoint(hitTestPoint, /*allowShadowContent*/ true, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);2756 HitTestResult result = hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent, touchRadius); 2762 2757 2763 2758 IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius); … … 2768 2763 bool EventHandler::bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode) 2769 2764 { 2770 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active;2771 2765 IntPoint hitTestPoint = m_frame->view()->windowToContents(touchCenter); 2772 HitTestResult result = hitTestResultAtPoint(hitTestPoint, /*allowShadowContent*/ false, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);2766 HitTestResult result = hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active, touchRadius); 2773 2767 2774 2768 IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius); … … 3863 3857 HitTestResult result; 3864 3858 if (freshTouchEvents) { 3865 result = hitTestResultAtPoint(pagePoint, /*allowShadowContent*/ true, false, DontHitTestScrollbars, hitType);3859 result = hitTestResultAtPoint(pagePoint, hitType | HitTestRequest::AllowShadowContent); 3866 3860 m_originatingTouchPointTargetKey = touchPointTargetKey; 3867 3861 } else if (m_originatingTouchPointDocument.get() && m_originatingTouchPointDocument->frame()) { … … 3897 3891 // We only perform a hittest on release or cancel to unset :active or :hover state. 3898 3892 if (touchPointTargetKey == m_originatingTouchPointTargetKey) { 3899 hitTestResultAtPoint(pagePoint, /*allowShadowContent*/ true, false, DontHitTestScrollbars, hitType);3893 hitTestResultAtPoint(pagePoint, hitType | HitTestRequest::AllowShadowContent); 3900 3894 m_originatingTouchPointTargetKey = 0; 3901 3895 } else if (m_originatingTouchPointDocument.get() && m_originatingTouchPointDocument->frame()) { -
trunk/Source/WebCore/page/EventHandler.h
r142956 r142977 92 92 #endif // ENABLE(DRAG_SUPPORT) 93 93 94 enum HitTestScrollbars { ShouldHitTestScrollbars, DontHitTestScrollbars };95 94 enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTrailingWhitespace }; 96 95 enum CheckDragHysteresis { ShouldCheckDragHysteresis, DontCheckDragHysteresis }; … … 128 127 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); 129 128 130 HitTestResult hitTestResultAtPoint(const LayoutPoint&, bool allowShadowContent, bool ignoreClipping = false, 131 HitTestScrollbars scrollbars = DontHitTestScrollbars, 129 HitTestResult hitTestResultAtPoint(const LayoutPoint&, 132 130 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active, 133 131 const LayoutSize& padding = LayoutSize()); -
trunk/Source/WebCore/page/FocusController.cpp
r141738 r142977 718 718 LayoutUnit x = intersectionRect.x() + intersectionRect.width() / 2; 719 719 LayoutUnit y = intersectionRect.y() + intersectionRect.height() / 2; 720 HitTestResult result = candidate.visibleNode->document()->page()->mainFrame()->eventHandler()->hitTestResultAtPoint(IntPoint(x, y), false, true);720 HitTestResult result = candidate.visibleNode->document()->page()->mainFrame()->eventHandler()->hitTestResultAtPoint(IntPoint(x, y), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping); 721 721 if (candidate.visibleNode->contains(result.innerNode())) { 722 722 closest = candidate; -
trunk/Source/WebCore/page/Frame.cpp
r141783 r142977 722 722 VisiblePosition Frame::visiblePositionForPoint(const IntPoint& framePoint) 723 723 { 724 HitTestResult result = eventHandler()->hitTestResultAtPoint(framePoint, true);724 HitTestResult result = eventHandler()->hitTestResultAtPoint(framePoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 725 725 Node* node = result.innerNonSharedNode(); 726 726 if (!node) … … 744 744 745 745 if (contentRenderer()) 746 result = eventHandler()->hitTestResultAtPoint(pt , false);746 result = eventHandler()->hitTestResultAtPoint(pt); 747 747 return result.innerNode() ? result.innerNode()->document() : 0; 748 748 } -
trunk/Source/WebCore/page/TouchDisambiguation.cpp
r141554 r142977 99 99 IntPoint contentsPoint = mainFrame->view()->windowToContents(touchPoint); 100 100 101 HitTestResult result = mainFrame->eventHandler()->hitTestResultAtPoint(contentsPoint, false, false, DontHitTestScrollbars, HitTestRequest::Active | HitTestRequest::ReadOnly, IntSize(padding, padding));101 HitTestResult result = mainFrame->eventHandler()->hitTestResultAtPoint(contentsPoint, HitTestRequest::ReadOnly | HitTestRequest::Active, IntSize(padding, padding)); 102 102 const ListHashSet<RefPtr<Node> >& hitResults = result.rectBasedTestResult(); 103 103 -
trunk/Source/WebCore/rendering/HitTestRequest.h
r128677 r142977 36 36 SVGClipContent = 1 << 6, 37 37 TouchEvent = 1 << 7, 38 AllowShadowContent = 1 << 8 38 AllowShadowContent = 1 << 8, 39 AllowFrameScrollbars = 1 << 9 39 40 }; 40 41 … … 55 56 bool mouseEvent() const { return !touchEvent(); } 56 57 bool allowsShadowContent() const { return m_requestType & AllowShadowContent; } 58 bool allowsFrameScrollbars() const { return m_requestType & AllowFrameScrollbars; } 57 59 58 60 // Convenience functions -
trunk/Source/WebCore/testing/Internals.cpp
r142879 r142977 1386 1386 } 1387 1387 1388 return document->nodesFromRect(x, y, topPadding, rightPadding, bottomPadding, leftPadding, ignoreClipping, allowShadowContent); 1388 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active; 1389 if (ignoreClipping) 1390 hitType |= HitTestRequest::IgnoreClipping; 1391 if (allowShadowContent) 1392 hitType |= HitTestRequest::AllowShadowContent; 1393 1394 return document->nodesFromRect(x, y, topPadding, rightPadding, bottomPadding, leftPadding, hitType); 1389 1395 } 1390 1396 -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r142882 r142977 2702 2702 contentPos = mapFromViewportToContents(m_lastMouseEvent.position()); 2703 2703 2704 HitTestResult result = eventHandler->hitTestResultAtPoint(contentPos , false /*allowShadowContent*/);2704 HitTestResult result = eventHandler->hitTestResultAtPoint(contentPos); 2705 2705 return result.innerNode(); 2706 2706 } … … 2773 2773 return 0; 2774 2774 2775 HitTestResult result = m_mainFrame->eventHandler()->hitTestResultAtPoint(documentPoint , false);2775 HitTestResult result = m_mainFrame->eventHandler()->hitTestResultAtPoint(documentPoint); 2776 2776 2777 2777 Node* node = result.innerNonSharedNode(); … … 4010 4010 4011 4011 if (!node) { 4012 HitTestResult result = eventHandler->hitTestResultAtPoint(mapFromViewportToContents(mouseEvent.position()) , false /*allowShadowContent*/);4012 HitTestResult result = eventHandler->hitTestResultAtPoint(mapFromViewportToContents(mouseEvent.position())); 4013 4013 node = result.innerNode(); 4014 4014 } … … 4987 4987 WebDOMNode WebPage::nodeAtDocumentPoint(const Platform::IntPoint& documentPoint) 4988 4988 { 4989 HitTestResult result = d->m_mainFrame->eventHandler()->hitTestResultAtPoint(WebCore::IntPoint(documentPoint) , false);4989 HitTestResult result = d->m_mainFrame->eventHandler()->hitTestResultAtPoint(WebCore::IntPoint(documentPoint)); 4990 4990 Node* node = result.innerNonSharedNode(); 4991 4991 return WebDOMNode(node); … … 6245 6245 if (m_cachedHitTestContentPos != contentPos) { 6246 6246 m_cachedHitTestContentPos = contentPos; 6247 m_cachedHitTestResult = m_mainFrame->eventHandler()->hitTestResultAtPoint(m_cachedHitTestContentPos, true /*allowShadowContent*/);6247 m_cachedHitTestResult = m_mainFrame->eventHandler()->hitTestResultAtPoint(m_cachedHitTestContentPos, HitTestResult::ReadOnly | HitTestResult::Active | HitTestResult::AllowShadowContent); 6248 6248 } 6249 6249 -
trunk/Source/WebKit/blackberry/ChangeLog
r142884 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * Api/WebPage.cpp: 11 (BlackBerry::WebKit::WebPagePrivate::contextNode): 12 (BlackBerry::WebKit::WebPagePrivate::nodeForZoomUnderPoint): 13 (BlackBerry::WebKit::WebPagePrivate::handleMouseEvent): 14 (BlackBerry::WebKit::WebPage::nodeAtDocumentPoint): 15 (BlackBerry::WebKit::WebPagePrivate::hitTestResult): 16 * WebKitSupport/SelectionHandler.cpp: 17 (BlackBerry::WebKit::visiblePositionForPointIgnoringClipping): 18 1 19 2013-02-14 Mike Fenton <mifenton@rim.com> 2 20 -
trunk/Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp
r142120 r142977 168 168 // visiblePositionAtPoint which which passes ignoreClipping=true. 169 169 // See RIM Bug #4315. 170 HitTestResult result = frame.eventHandler()->hitTestResultAtPoint(framePoint, true /* allowShadowContent */, true /* ignoreClipping */);170 HitTestResult result = frame.eventHandler()->hitTestResultAtPoint(framePoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent | HitTestRequest::IgnoreClipping); 171 171 172 172 Node* node = result.innerNode(); -
trunk/Source/WebKit/chromium/ChangeLog
r142963 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * src/ContextMenuClientImpl.cpp: 11 (WebKit::selectMisspelledWord): 12 * src/FrameLoaderClientImpl.cpp: 13 (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNavigationAction): 14 * src/WebFrameImpl.cpp: 15 (WebKit::WebFrameImpl::characterIndexForPoint): 16 * src/WebPluginContainerImpl.cpp: 17 (WebKit::WebPluginContainerImpl::isRectTopmost): 18 * src/WebViewImpl.cpp: 19 (WebKit::WebViewImpl::handleMouseDown): 20 (WebKit::WebViewImpl::computeBlockBounds): 21 (WebKit::WebViewImpl::bestTouchLinkNode): 22 (WebKit::WebViewImpl::hitTestResultForWindowPos): 23 1 24 2013-02-14 Vsevolod Vlasov <vsevik@chromium.org> 2 25 -
trunk/Source/WebKit/chromium/src/ContextMenuClientImpl.cpp
r141650 r142977 122 122 // Selection is empty, so change the selection to the word under the cursor. 123 123 HitTestResult hitTestResult = selectedFrame->eventHandler()-> 124 hitTestResultAtPoint(selectedFrame->page()->contextMenuController()->hitTestResult().pointInInnerNodeFrame(), true);124 hitTestResultAtPoint(selectedFrame->page()->contextMenuController()->hitTestResult().pointInInnerNodeFrame(), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 125 125 Node* innerNode = hitTestResult.innerNode(); 126 126 VisiblePosition pos(innerNode->renderer()->positionForPoint( -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r142549 r142977 1009 1009 const MouseEvent* mouseEvent = 1010 1010 static_cast<const MouseEvent*>(event); 1011 node = m_webFrame->frame()->eventHandler()->hitTestResultAtPoint( 1012 mouseEvent->absoluteLocation(), false).innerNonSharedNode(); 1011 node = m_webFrame->frame()->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation()).innerNonSharedNode(); 1013 1012 break; 1014 1013 } -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r142896 r142977 1182 1182 1183 1183 IntPoint point = frame()->view()->windowToContents(webPoint); 1184 HitTestResult result = frame()->eventHandler()->hitTestResultAtPoint(point , false);1184 HitTestResult result = frame()->eventHandler()->hitTestResultAtPoint(point); 1185 1185 RefPtr<Range> range = frame()->rangeForPoint(result.roundedPointInInnerNodeFrame()); 1186 1186 if (!range) -
trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp
r142057 r142977 463 463 // Make the rect we're checking (the point surrounded by padding rects) contained inside the requested rect. (Note that -1/2 is 0.) 464 464 LayoutSize padding((documentRect.width() - 1) / 2, (documentRect.height() - 1) / 2); 465 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(center, false, false, DontHitTestScrollbars,HitTestRequest::ReadOnly | HitTestRequest::Active, padding);465 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(center, HitTestRequest::ReadOnly | HitTestRequest::Active, padding); 466 466 const HitTestResult::NodeSet& nodes = result.rectBasedTestResult(); 467 467 if (nodes.size() != 1) -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r142927 r142977 569 569 IntPoint point(event.x, event.y); 570 570 point = m_page->mainFrame()->view()->windowToContents(point); 571 HitTestResult result(m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(point , false));571 HitTestResult result(m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(point)); 572 572 Node* hitNode = result.innerNonSharedNode(); 573 573 … … 1101 1101 // Use the rect-based hit test to find the node. 1102 1102 IntPoint point = mainFrameImpl()->frameView()->windowToContents(IntPoint(rect.x, rect.y)); 1103 HitTestRe sult result = mainFrameImpl()->frame()->eventHandler()->hitTestResultAtPoint(point,1104 false, zoomType == FindInPage, DontHitTestScrollbars, HitTestRequest::Active | HitTestRequest::ReadOnly,1105 1103 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active 1104 | ((zoomType == FindInPage) ? HitTestRequest::IgnoreClipping : 0); 1105 HitTestResult result = mainFrameImpl()->frame()->eventHandler()->hitTestResultAtPoint(point, hitType, IntSize(rect.width, rect.height)); 1106 1106 1107 1107 Node* node = result.innerNonSharedNode(); … … 1294 1294 1295 1295 IntPoint hitTestPoint = m_page->mainFrame()->view()->windowToContents(touchEventLocation); 1296 HitTestResult result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint( 1297 hitTestPoint, false, false, DontHitTestScrollbars, HitTestRequest::TouchEvent); 1296 HitTestResult result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(hitTestPoint, HitTestRequest::TouchEvent); 1298 1297 bestTouchNode = result.targetNode(); 1299 1298 … … 3955 3954 { 3956 3955 IntPoint docPoint(m_page->mainFrame()->view()->windowToContents(pos)); 3957 return m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(docPoint , false);3956 return m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(docPoint); 3958 3957 } 3959 3958 -
trunk/Source/WebKit/efl/ChangeLog
r142755 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * ewk/ewk_frame.cpp: 11 (ewk_frame_hit_test_new): 12 1 13 2013-02-13 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 14 -
trunk/Source/WebKit/efl/ewk/ewk_frame.cpp
r141439 r142977 38 38 #include "HTMLPlugInElement.h" 39 39 #include "HistoryItem.h" 40 #include "HitTestRequest.h" 40 41 #include "HitTestResult.h" 41 42 #include "IntSize.h" … … 692 693 693 694 WebCore::HitTestResult result = smartData->frame->eventHandler()->hitTestResultAtPoint 694 (view->windowToContents(WebCore::IntPoint(x, y)), 695 /*allowShadowContent*/ false, /*ignoreClipping*/ true);695 (view->windowToContents(WebCore::IntPoint(x, y)), 696 WebCore::HitTestRequest::ReadOnly | WebCore::HitTestRequest::Active | WebCore::HitTestRequest::IgnoreClipping); 696 697 697 698 if (result.scrollbar()) -
trunk/Source/WebKit/mac/ChangeLog
r142903 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * WebCoreSupport/WebFrameLoaderClient.mm: 11 (WebFrameLoaderClient::actionDictionary): 12 * WebView/WebFrame.mm: 13 (-[WebFrame elementAtPoint:]): 14 * WebView/WebHTMLView.mm: 15 (-[WebHTMLView elementAtPoint:allowShadowContent:]): 16 1 17 2013-02-14 David Kilzer <ddkilzer@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r140793 r142977 1345 1345 if (const MouseEvent* mouseEvent = findMouseEvent(event)) { 1346 1346 WebElementDictionary *element = [[WebElementDictionary alloc] 1347 initWithHitTestResult:core(m_webFrame.get())->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation() , false)];1347 initWithHitTestResult:core(m_webFrame.get())->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation())]; 1348 1348 [result setObject:element forKey:WebActionElementKey]; 1349 1349 [element release]; -
trunk/Source/WebKit/mac/WebView/WebFrame.mm
r142171 r142977 1217 1217 if (!coreFrame) 1218 1218 return nil; 1219 return [[[WebElementDictionary alloc] initWithHitTestResult:coreFrame->eventHandler()->hitTestResultAtPoint(IntPoint(point), false, true)] autorelease];1219 return [[[WebElementDictionary alloc] initWithHitTestResult:coreFrame->eventHandler()->hitTestResultAtPoint(IntPoint(point), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping)] autorelease]; 1220 1220 } 1221 1221 -
trunk/Source/WebKit/mac/WebView/WebHTMLView.mm
r141545 r142977 6203 6203 if (!coreFrame) 6204 6204 return nil; 6205 return [[[WebElementDictionary alloc] initWithHitTestResult:coreFrame->eventHandler()->hitTestResultAtPoint(IntPoint(point), allow)] autorelease]; 6205 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active 6206 | (allow ? HitTestRequest::AllowShadowContent : 0); 6207 return [[[WebElementDictionary alloc] initWithHitTestResult:coreFrame->eventHandler()->hitTestResultAtPoint(IntPoint(point), hitType)] autorelease]; 6206 6208 } 6207 6209 -
trunk/Source/WebKit/qt/ChangeLog
r142972 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * WebCoreSupport/FrameLoaderClientQt.cpp: 11 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12 * WebCoreSupport/QWebFrameAdapter.cpp: 13 (QWebFrameAdapter::hitTestContent): 14 * WebCoreSupport/QWebPageAdapter.cpp: 15 (QWebPageAdapter::TouchAdjuster::findCandidatePointForTouch): 16 (QWebPageAdapter::handleSoftwareInputPanel): 17 (QWebPageAdapter::updatePositionDependentMenuActions): 18 1 19 2013-02-15 Simon Hausmann <simon.hausmann@digia.com> 2 20 -
trunk/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r141783 r142977 1251 1251 const MouseEvent* mouseEvent = static_cast<const MouseEvent*>(event); 1252 1252 node = m_webFrame->frame->eventHandler()->hitTestResultAtPoint( 1253 mouseEvent->absoluteLocation() , false).innerNonSharedNode();1253 mouseEvent->absoluteLocation()).innerNonSharedNode(); 1254 1254 break; 1255 1255 } -
trunk/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
r138413 r142977 390 390 return 0; 391 391 392 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(pos), /*allowShadowContent*/ false, /*ignoreClipping*/ true);392 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(pos), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping); 393 393 394 394 if (result.scrollbar()) -
trunk/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp
r141233 r142977 430 430 int y = touchPoint.y(); 431 431 432 RefPtr<NodeList> intersectedNodes = document->nodesFromRect(x, y, m_topPadding, m_rightPadding, m_bottomPadding, m_leftPadding , false /*ignoreClipping*/, false /*allowShadowContent*/);432 RefPtr<NodeList> intersectedNodes = document->nodesFromRect(x, y, m_topPadding, m_rightPadding, m_bottomPadding, m_leftPadding); 433 433 if (!intersectedNodes) 434 434 return IntPoint(); … … 586 586 && button == Qt::LeftButton && qGuiApp->property("autoSipEnabled").toBool()) { 587 587 if (!clickCausedFocus || requestSoftwareInputPanel()) { 588 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(pos) , false);588 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(pos)); 589 589 if (result.isContentEditable()) { 590 590 QEvent event(QEvent::RequestSoftwareInputPanel); … … 928 928 ASSERT(visitedWebActions); 929 929 WebCore::Frame* focusedFrame = page->focusController()->focusedOrMainFrame(); 930 HitTestResult result = focusedFrame->eventHandler()->hitTestResultAtPoint(focusedFrame->view()->windowToContents(pos) , /*allowShadowContent*/ false);930 HitTestResult result = focusedFrame->eventHandler()->hitTestResultAtPoint(focusedFrame->view()->windowToContents(pos)); 931 931 page->contextMenuController()->setHitTestResult(result); 932 932 -
trunk/Source/WebKit/win/ChangeLog
r142923 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * WebActionPropertyBag.cpp: 11 (WebActionPropertyBag::Read): 12 * WebKit.vcproj/WebKitExports.def.in: 13 * WebView.cpp: 14 (WebView::handleContextMenuEvent): 15 (WebView::elementAtPoint): 16 1 17 2013-02-14 Tony Chang <tony@chromium.org> 2 18 -
trunk/Source/WebKit/win/WebActionPropertyBag.cpp
r128403 r142977 122 122 if (const MouseEvent* mouseEvent = findMouseEvent(m_action.event())) { 123 123 V_VT(pVar) = VT_UNKNOWN; 124 V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation() , false));124 V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation())); 125 125 return S_OK; 126 126 } -
trunk/Source/WebKit/win/WebKit.vcproj/WebKitExports.def.in
r142879 r142977 307 307 ?contextDestroyed@ContextDestructionObserver@WebCore@@UAEXXZ 308 308 ??0ContextDestructionObserver@WebCore@@QAE@PAVScriptExecutionContext@1@@Z 309 ?nodesFromRect@Document@WebCore@@QBE?AV?$PassRefPtr@VNodeList@WebCore@@@WTF@@HHIIII _N0@Z309 ?nodesFromRect@Document@WebCore@@QBE?AV?$PassRefPtr@VNodeList@WebCore@@@WTF@@HHIIIII@Z 310 310 ?selectionStartHasMarkerFor@Editor@WebCore@@QBE_NW4MarkerType@DocumentMarker@2@HH@Z 311 311 #if ENABLE(FULLSCREEN_API) -
trunk/Source/WebKit/win/WebView.cpp
r141545 r142977 1335 1335 1336 1336 IntPoint documentPoint(m_page->mainFrame()->view()->windowToContents(coords)); 1337 HitTestResult result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(documentPoint , false);1337 HitTestResult result = m_page->mainFrame()->eventHandler()->hitTestResultAtPoint(documentPoint); 1338 1338 Frame* targetFrame = result.innerNonSharedNode() ? result.innerNonSharedNode()->document()->frame() : m_page->focusController()->focusedOrMainFrame(); 1339 1339 … … 3604 3604 HitTestResult result = HitTestResult(webCorePoint); 3605 3605 if (frame->contentRenderer()) 3606 result = frame->eventHandler()->hitTestResultAtPoint(webCorePoint , false);3606 result = frame->eventHandler()->hitTestResultAtPoint(webCorePoint); 3607 3607 *elementDictionary = WebElementPropertyBag::createInstance(result); 3608 3608 return S_OK; -
trunk/Source/WebKit/wx/ChangeLog
r142576 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix. 7 8 Update calls to new API. 9 10 * WebFrame.cpp: 11 (WebKit::WebFrame::HitTest): 12 1 13 2013-02-11 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebKit/wx/WebFrame.cpp
r140718 r142977 691 691 692 692 if (m_impl->frame->view()) { 693 WebCore::HitTestResult result = m_impl->frame->eventHandler()->hitTestResultAtPoint(m_impl->frame->view()->windowToContents(pos) , false);693 WebCore::HitTestResult result = m_impl->frame->eventHandler()->hitTestResultAtPoint(m_impl->frame->view()->windowToContents(pos)); 694 694 if (result.innerNode()) { 695 695 domInfo.SetLink(result.absoluteLinkURL().string()); -
trunk/Source/WebKit2/ChangeLog
r142968 r142977 1 2013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 Simplify hitTestResultAtPoint and nodesFromRect APIs 4 https://bugs.webkit.org/show_bug.cgi?id=95720 5 6 Reviewed by Julien Chaffraix and Maciej Stachowiak. 7 8 Update calls to new API and update exported symbols. 9 10 * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp: 11 (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction): 12 * WebProcess/WebPage/WebFrame.cpp: 13 (WebKit::WebFrame::hitTest): 14 * WebProcess/WebPage/WebPage.cpp: 15 (WebKit::handleContextMenuEvent): 16 (WebKit::WebPage::highlightPotentialActivation): 17 (WebKit::WebPage::findZoomableAreaForPoint): 18 * WebProcess/WebPage/mac/WebPageMac.mm: 19 (WebKit::WebPage::characterIndexForPoint): 20 (WebKit::WebPage::performDictionaryLookupAtLocation): 21 (WebKit::WebPage::shouldDelayWindowOrderingEvent): 22 (WebKit::WebPage::acceptsFirstMouse): 23 1 24 2013-02-14 Huang Dongsung <luxtella@company100.net> 2 25 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
r128403 r142977 92 92 { 93 93 if (const MouseEvent* mouseEvent = mouseEventForNavigationAction(navigationAction)) { 94 m_hitTestResult = InjectedBundleHitTestResult::create(frame->coreFrame()->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation() , false));94 m_hitTestResult = InjectedBundleHitTestResult::create(frame->coreFrame()->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation())); 95 95 m_mouseButton = mouseButtonForMouseEvent(mouseEvent); 96 96 } -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r142348 r142977 541 541 return 0; 542 542 543 return InjectedBundleHitTestResult::create(m_coreFrame->eventHandler()->hitTestResultAtPoint(point, false, true));543 return InjectedBundleHitTestResult::create(m_coreFrame->eventHandler()->hitTestResultAtPoint(point, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping)); 544 544 } 545 545 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r142017 r142977 1510 1510 { 1511 1511 IntPoint point = page->corePage()->mainFrame()->view()->windowToContents(platformMouseEvent.position()); 1512 HitTestResult result = page->corePage()->mainFrame()->eventHandler()->hitTestResultAtPoint(point , false);1512 HitTestResult result = page->corePage()->mainFrame()->eventHandler()->hitTestResultAtPoint(point); 1513 1513 1514 1514 Frame* frame = page->corePage()->mainFrame(); … … 1764 1764 1765 1765 #else 1766 HitTestResult result = mainframe->eventHandler()->hitTestResultAtPoint(mainframe->view()->windowToContents(point), /*allowShadowContent*/ false, /*ignoreClipping*/ true);1766 HitTestResult result = mainframe->eventHandler()->hitTestResultAtPoint(mainframe->view()->windowToContents(point), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping); 1767 1767 adjustedNode = result.innerNode(); 1768 1768 #endif … … 3032 3032 UNUSED_PARAM(area); 3033 3033 Frame* mainframe = m_mainFrame->coreFrame(); 3034 HitTestResult result = mainframe->eventHandler()->hitTestResultAtPoint(mainframe->view()->windowToContents(point), /*allowShadowContent*/ false, /*ignoreClipping*/ true);3034 HitTestResult result = mainframe->eventHandler()->hitTestResultAtPoint(mainframe->view()->windowToContents(point), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping); 3035 3035 3036 3036 Node* node = result.innerNode(); -
trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm
r141372 r142977 386 386 return; 387 387 388 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(point , false);388 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(point); 389 389 frame = result.innerNonSharedNode() ? result.innerNodeFrame() : m_page->focusController()->focusedOrMainFrame(); 390 390 … … 483 483 // Find the frame the point is over. 484 484 IntPoint point = roundedIntPoint(floatPoint); 485 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(point) , false);485 HitTestResult result = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(point)); 486 486 frame = result.innerNonSharedNode() ? result.innerNonSharedNode()->document()->frame() : m_page->focusController()->focusedOrMainFrame(); 487 487 … … 741 741 742 742 #if ENABLE(DRAG_SUPPORT) 743 HitTestResult hitResult = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(event.position()), true);743 HitTestResult hitResult = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(event.position()), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 744 744 if (hitResult.isSelected()) 745 745 result = frame->eventHandler()->eventMayStartDrag(platform(event)); … … 754 754 return; 755 755 756 HitTestResult hitResult = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(event.position()), true);756 HitTestResult hitResult = frame->eventHandler()->hitTestResultAtPoint(frame->view()->windowToContents(event.position()), HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); 757 757 frame->eventHandler()->setActivationEventNumber(eventNumber); 758 758 #if ENABLE(DRAG_SUPPORT) -
trunk/Source/autotools/symbols.filter
r142879 r142977 222 222 _ZN7WebCore22RuntimeEnabledFeatures37isAuthorShadowDOMForAnyElementEnabledE; 223 223 _ZN7WebCore22RuntimeEnabledFeatures20isStyleScopedEnabledE; 224 _ZNK7WebCore8Document13nodesFromRectEiijjjj bb;224 _ZNK7WebCore8Document13nodesFromRectEiijjjjj; 225 225 _ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_8NodeListE; 226 226 _ZNK7WebCore6Editor26selectionStartHasMarkerForENS_14DocumentMarker10MarkerTypeEii;
Note: See TracChangeset
for help on using the changeset viewer.