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

Unified Diff: third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp

Issue 2393313002: reflow comments in core/frame (Closed)
Patch Set: tweak 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/frame/EventHandlerRegistry.cpp
diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
index 5bacf537d186daa22402c119dddccb57c4230d48..f30bf1cc3d93cc278d730bbbcc82956933a72687 100644
--- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
+++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp
@@ -300,8 +300,8 @@ void EventHandlerRegistry::documentDetached(Document& document) {
}
}
} else if (eventTarget.key->toLocalDOMWindow()) {
- // DOMWindows may outlive their documents, so we shouldn't remove their handlers
- // here.
+ // DOMWindows may outlive their documents, so we shouldn't remove their
+ // handlers here.
} else {
ASSERT_NOT_REACHED();
}
@@ -318,12 +318,13 @@ void EventHandlerRegistry::checkConsistency() const {
const EventTargetSet* targets = &m_targets[handlerClass];
for (const auto& eventTarget : *targets) {
if (Node* node = eventTarget.key->toNode()) {
- // See the comment for |documentDetached| if either of these assertions fails.
+ // See the comment for |documentDetached| if either of these assertions
+ // fails.
ASSERT(node->document().frameHost());
ASSERT(node->document().frameHost() == m_frameHost);
} else if (LocalDOMWindow* window = eventTarget.key->toLocalDOMWindow()) {
- // If any of these assertions fail, LocalDOMWindow failed to unregister its handlers
- // properly.
+ // If any of these assertions fail, LocalDOMWindow failed to unregister
+ // its handlers properly.
ASSERT(window->frame());
ASSERT(window->frame()->host());
ASSERT(window->frame()->host() == m_frameHost);
« no previous file with comments | « third_party/WebKit/Source/core/frame/EventHandlerRegistry.h ('k') | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698