Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 2752763002: Change the type of a SVG <use> element's shadow tree from "user agent" to "closed" (Closed)
Patch Set: Rebased and resolve a conflict in HitTestResult Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const WebInputEvent& event = coalescedEvent.event(); 121 const WebInputEvent& event = coalescedEvent.event();
122 if (event.modifiers() & WebInputEvent::IsTouchAccessibility && 122 if (event.modifiers() & WebInputEvent::IsTouchAccessibility &&
123 WebInputEvent::isMouseEventType(event.type())) { 123 WebInputEvent::isMouseEventType(event.type())) {
124 WebMouseEvent mouseEvent = TransformWebMouseEvent( 124 WebMouseEvent mouseEvent = TransformWebMouseEvent(
125 root->view(), static_cast<const WebMouseEvent&>(event)); 125 root->view(), static_cast<const WebMouseEvent&>(event));
126 126
127 IntPoint docPoint(root->view()->rootFrameToContents( 127 IntPoint docPoint(root->view()->rootFrameToContents(
128 flooredIntPoint(mouseEvent.positionInRootFrame()))); 128 flooredIntPoint(mouseEvent.positionInRootFrame())));
129 HitTestResult result = root->eventHandler().hitTestResultAtPoint( 129 HitTestResult result = root->eventHandler().hitTestResultAtPoint(
130 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); 130 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
131 result.setToShadowHostIfInUserAgentShadowRoot(); 131 result.setToShadowHostIfInRestrictedShadowRoot();
132 if (result.innerNodeFrame()) { 132 if (result.innerNodeFrame()) {
133 Document* document = result.innerNodeFrame()->document(); 133 Document* document = result.innerNodeFrame()->document();
134 if (document) { 134 if (document) {
135 AXObjectCache* cache = document->existingAXObjectCache(); 135 AXObjectCache* cache = document->existingAXObjectCache();
136 if (cache) 136 if (cache)
137 cache->onTouchAccessibilityHover( 137 cache->onTouchAccessibilityHover(
138 result.roundedPointInInnerNodeFrame()); 138 result.roundedPointInInnerNodeFrame());
139 } 139 }
140 } 140 }
141 } 141 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 const WebTouchEvent& event, 269 const WebTouchEvent& event,
270 const std::vector<const WebInputEvent*>& coalescedEvents) { 270 const std::vector<const WebInputEvent*>& coalescedEvents) {
271 WebTouchEvent transformedEvent = 271 WebTouchEvent transformedEvent =
272 TransformWebTouchEvent(mainFrame.view(), event); 272 TransformWebTouchEvent(mainFrame.view(), event);
273 return mainFrame.eventHandler().handleTouchEvent( 273 return mainFrame.eventHandler().handleTouchEvent(
274 transformedEvent, 274 transformedEvent,
275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); 275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents));
276 } 276 }
277 277
278 } // namespace blink 278 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ContextMenuClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698