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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h

Issue 2146013003: Rename adjustPointerLockElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
index 8749667a832bfa4e58b3c8ee7ed71cc8b7981691..7c68641b24e45acad6904045624ea45ab2888018 100644
--- a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
+++ b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
@@ -61,7 +61,7 @@ public:
UseCounter::count(document, UseCounter::DocumentPointerLockElementInV0Shadow);
return const_cast<Element*>(target);
}
- return document.adjustedPointerLockElement(*target);
+ return document.retargetElementIfInSameTreeScope(*target);
}
static Element* pointerLockElement(ShadowRoot& shadowRoot)
@@ -74,7 +74,7 @@ public:
const Element* target = shadowRoot.document().pointerLockElement();
if (!target)
return nullptr;
- return shadowRoot.adjustedPointerLockElement(*target);
+ return shadowRoot.retargetElementIfInSameTreeScope(*target);
}
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TreeScope.h » ('j') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698