Index: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
index 6b4f19de9105f24eaaeea00d5b9bf9f87a310367..b3f4a827535ee84f85cbf9cd15faefbf55a74e58 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -76,7 +76,7 @@ bool SharedStyleFinder::canShareStyleWithControl(Element& candidate) const |
if (candidate.isDisabledFormControl() != element().isDisabledFormControl()) |
return false; |
- if (candidate.isDefaultButtonForForm() != element().isDefaultButtonForForm()) |
+ if (candidate.matchesDefaultPseudoClass() != element().matchesDefaultPseudoClass()) |
return false; |
if (document().containsValidityStyleRules()) { |