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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 977e57bb7bd5c430260aa9e92ae909cdb2155a82..011c3a56736a3f8f3a4cb970f454c7a7538c0b82 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -507,7 +507,7 @@ void WebViewImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent& ev
if (event.button == WebMouseEvent::ButtonLeft && m_page->mainFrame()->isLocalFrame()) {
point = m_page->deprecatedLocalMainFrame()->view()->windowToContents(point);
HitTestResult result(m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultAtPoint(point));
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInClosedShadowRoot();
Node* hitNode = result.innerNonSharedNode();
if (!result.scrollbar() && hitNode && hitNode->renderer() && hitNode->renderer()->isEmbeddedObject()) {
@@ -1110,7 +1110,7 @@ WebRect WebViewImpl::computeBlockBound(const WebPoint& webPoint, bool ignoreClip
IntPoint point = mainFrameImpl()->frameView()->windowToContents(IntPoint(webPoint.x, webPoint.y));
HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active | (ignoreClipping ? HitTestRequest::IgnoreClipping : 0);
HitTestResult result = mainFrameImpl()->frame()->eventHandler().hitTestResultAtPoint(point, hitType);
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInClosedShadowRoot();
Node* node = result.innerNonSharedNode();
if (!node)
@@ -4174,7 +4174,7 @@ HitTestResult WebViewImpl::hitTestResultForWindowPos(const IntPoint& pos)
return HitTestResult();
IntPoint docPoint(m_page->deprecatedLocalMainFrame()->view()->windowToContents(pos));
HitTestResult result = m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultAtPoint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInClosedShadowRoot();
return result;
}
@@ -4195,7 +4195,7 @@ WebHitTestResult WebViewImpl::hitTestResultForTap(const WebPoint& tapPointWindow
HitTestResult result = m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultForGestureEvent(platformEvent, HitTestRequest::ReadOnly | HitTestRequest::Active).hitTestResult();
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInClosedShadowRoot();
return result;
}
@@ -4523,9 +4523,9 @@ bool WebViewImpl::detectContentOnTouch(const GestureEventWithHitTestResults& tar
if (!m_page->mainFrame()->isLocalFrame())
return false;
- // Need a local copy of the hit test as setToShadowHostIfInUserAgentShadowRoot() will modify it.
+ // Need a local copy of the hit test as setToShadowHostIfInClosedShadowRoot() will modify it.
HitTestResult touchHit = targetedEvent.hitTestResult();
- touchHit.setToShadowHostIfInUserAgentShadowRoot();
+ touchHit.setToShadowHostIfInClosedShadowRoot();
if (touchHit.isContentEditable())
return false;
« no previous file with comments | « Source/web/WebFrameWidgetImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698