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( |