Index: Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp |
index 76f97e0554bb043b5531ef38b00184fdb94228b3..789c7315cea5feb60adbd9b5eade79c0928d9ffb 100644 |
--- a/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -234,10 +234,7 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const |
return false; |
bool isControl = candidate.isFormControlElement(); |
- |
- if (isControl != element().isFormControlElement()) |
- return false; |
- |
+ ASSERT(isControl == element().isFormControlElement()); |
if (isControl && !canShareStyleWithControl(candidate)) |
return false; |