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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2835223003: Use kCamelCase in Document::ListenerType enum (Closed)
Patch Set: renamed Created 3 years, 8 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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 14d5b5ed34078eb7dd0c816b5d2f4766b597ec91..d5e59f90244c194809224a45f0f64f44e4fc4c27 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -1519,11 +1519,10 @@ unsigned short Node::compareDocumentPosition(
// There was no difference between the two parent chains, i.e., one was a
// subset of the other. The shorter chain is the ancestor.
- return index1 < index2
- ? kDocumentPositionFollowing | kDocumentPositionContainedBy |
- connection
- : kDocumentPositionPreceding | kDocumentPositionContains |
- connection;
+ return index1 < index2 ? kDocumentPositionFollowing |
+ kDocumentPositionContainedBy | connection
+ : kDocumentPositionPreceding |
+ kDocumentPositionContains | connection;
}
String Node::DebugName() const {
@@ -2126,7 +2125,7 @@ void Node::DispatchSubtreeModifiedEvent() {
DCHECK(!EventDispatchForbiddenScope::IsEventDispatchForbidden());
#endif
- if (!GetDocument().HasListenerType(Document::DOMSUBTREEMODIFIED_LISTENER))
+ if (!GetDocument().HasListenerType(Document::kDOMSubtreeModifiedListener))
return;
DispatchScopedEvent(
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698