Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 407edc3fa76fe4921ace2abe26eba01f69b1756d..289c6b575bf1889052fa382523fefad648e3fa5b 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2129,7 +2129,7 @@ void Element::childrenChanged(const ChildrenChange& change) |
checkForEmptyStyleChange(); |
if (!change.byParser && change.isChildElementChange()) |
- checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingChanged, change.siblingBeforeChange, change.siblingAfterChange); |
+ checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, toElement(change.siblingChanged), change.siblingBeforeChange, change.siblingAfterChange); |
// TODO(hayato): Confirm that we can skip this if a shadow tree is v1. |
if (ElementShadow* shadow = this->shadow()) |