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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 31e8171af9023c7e0fa75899bc961fc57c329c40..8a31e5ef3be2349075da2ff54049acf8ae344875 100644
--- a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
+++ b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
@@ -48,9 +48,10 @@ class DocumentOrShadowRoot {
const Element* target = document.pointerLockElement();
if (!target)
return nullptr;
- // For Shadow DOM V0 compatibility: We allow returning an element in V0 shadow tree,
- // even though it leaks the Shadow DOM.
- // TODO(kochi): Once V0 code is removed, the following V0 check is unnecessary.
+ // For Shadow DOM V0 compatibility: We allow returning an element in V0
+ // shadow tree, even though it leaks the Shadow DOM.
+ // TODO(kochi): Once V0 code is removed, the following V0 check is
+ // unnecessary.
if (target && target->isInV0ShadowTree()) {
UseCounter::count(document,
UseCounter::DocumentPointerLockElementInV0Shadow);
@@ -60,8 +61,9 @@ class DocumentOrShadowRoot {
}
static Element* pointerLockElement(ShadowRoot& shadowRoot) {
- // TODO(kochi): Once V0 code is removed, the following non-V1 check is unnecessary.
- // After V0 code is removed, we can use the same logic for Document and ShadowRoot.
+ // TODO(kochi): Once V0 code is removed, the following non-V1 check is
+ // unnecessary. After V0 code is removed, we can use the same logic for
+ // Document and ShadowRoot.
if (!shadowRoot.isV1())
return nullptr;
UseCounter::count(shadowRoot.document(),
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.h ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698