Index: Source/core/dom/ClassCollection.h |
diff --git a/Source/core/dom/ClassCollection.h b/Source/core/dom/ClassCollection.h |
index 290e70bd0d923ab4efbc12fdf11f8cd618358668..36c693aae34acc4c3cc745f03501da09b3c77472 100644 |
--- a/Source/core/dom/ClassCollection.h |
+++ b/Source/core/dom/ClassCollection.h |
@@ -65,10 +65,6 @@ inline bool ClassCollection::elementMatches(const Element& testElement) const |
return false; |
if (!m_classNames.size()) |
return false; |
- // FIXME: DOM4 allows getElementsByClassName to return non StyledElement. |
- // https://bugs.webkit.org/show_bug.cgi?id=94718 |
- if (!testElement.isStyledElement()) |
- return false; |
return testElement.classNames().containsAll(m_classNames); |
} |