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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 0d1daa16f1119cd4ca763466afc582c7524c065b..4777ed0e1cf3530f8d4d1a641feda8ce22933da8 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -506,7 +506,7 @@ void WebViewImpl::handleMouseDown(LocalFrame& mainFrame,
HitTestResult result(
m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultAtPoint(
point));
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInRestrictedShadowRoot();
Node* hitNode = result.innerNodeOrImageMapImage();
if (!result.scrollbar() && hitNode && hitNode->layoutObject() &&
@@ -1264,7 +1264,7 @@ WebRect WebViewImpl::computeBlockBound(const WebPoint& pointInRootFrame,
HitTestResult result =
mainFrameImpl()->frame()->eventHandler().hitTestResultAtPoint(point,
hitType);
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInRestrictedShadowRoot();
Node* node = result.innerNodeOrImageMapImage();
if (!node)
@@ -3776,7 +3776,7 @@ HitTestResult WebViewImpl::hitTestResultForRootFramePos(
HitTestResult result =
m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultAtPoint(
docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInRestrictedShadowRoot();
return result;
}
@@ -3807,7 +3807,7 @@ WebHitTestResult WebViewImpl::hitTestResultForTap(
scaledEvent, HitTestRequest::ReadOnly | HitTestRequest::Active)
.hitTestResult();
- result.setToShadowHostIfInUserAgentShadowRoot();
+ result.setToShadowHostIfInRestrictedShadowRoot();
return result;
}
@@ -4064,7 +4064,7 @@ bool WebViewImpl::detectContentOnTouch(
// Need a local copy of the hit test as
// setToShadowHostIfInUserAgentShadowRoot() will modify it.
HitTestResult touchHit = targetedEvent.hitTestResult();
- touchHit.setToShadowHostIfInUserAgentShadowRoot();
+ touchHit.setToShadowHostIfInRestrictedShadowRoot();
if (touchHit.isContentEditable())
return false;
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698