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

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: rename function and update comments. 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TreeScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f3ff270b36ce7161ed35f1d6b5320a6b6704d8ff 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.adjustedElement(*target);
hayato 2016/07/15 06:24:40 Nit: Can we rename this `adjustedElement` to `adju
kochi 2016/07/15 06:40:09 returns an adjusted element of *target (for docume
}
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.adjustedElement(*target);
}
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TreeScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698