Index: Source/core/inspector/InspectorCSSAgent.cpp |
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp |
index b3693614ce34ca182ce1b028c904c32ea950b509..da2d87a6b79f9aaa2d85ad8e5e5386df831332c5 100644 |
--- a/Source/core/inspector/InspectorCSSAgent.cpp |
+++ b/Source/core/inspector/InspectorCSSAgent.cpp |
@@ -1622,7 +1622,7 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > InspectorCSSAgent:: |
bool matched = false; |
if (elementPseudoId) |
matched = matchesPseudoElement(selector, elementPseudoId); // Modifies |selector|. |
- matched |= element->webkitMatchesSelector(firstTagHistorySelector->selectorText(), IGNORE_EXCEPTION); |
+ matched |= element->matches(firstTagHistorySelector->selectorText(), IGNORE_EXCEPTION); |
if (matched) |
matchingSelectors->addItem(index); |
++index; |