| Index: Source/core/css/resolver/SharedStyleFinder.cpp
|
| diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| index 2e37f8c28edca916ecb29c0898801b01b8aabfca..ce16c0df1f0d4b7ef17a08556a3e785caf1906c7 100644
|
| --- a/Source/core/css/resolver/SharedStyleFinder.cpp
|
| +++ b/Source/core/css/resolver/SharedStyleFinder.cpp
|
| @@ -84,7 +84,7 @@
|
| if (willValidate != element().willValidate())
|
| return false;
|
|
|
| - if (willValidate && (candidate.isValidElement() != element().isValidElement()))
|
| + if (willValidate && (candidate.isValidFormControlElement() != element().isValidFormControlElement()))
|
| return false;
|
|
|
| if (candidate.isInRange() != element().isInRange())
|
| @@ -262,11 +262,6 @@
|
| if (parent->hasID() && m_features.hasSelectorForId(parent->idForStyleResolution()))
|
| return false;
|
| if (!parent->childrenSupportStyleSharing())
|
| - return false;
|
| - }
|
| -
|
| - if (document().containsValidityStyleRules()) {
|
| - if (candidate.isValidElement() != element().isValidElement())
|
| return false;
|
| }
|
|
|
|
|