Index: Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp |
index 14516c54fdb17faaa5cba04f421fad4d689f1cf1..bcb46b41942a93240fe1baae9a582f87b5d375de 100644 |
--- a/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -58,7 +58,7 @@ using namespace HTMLNames; |
bool SharedStyleFinder::canShareStyleWithControl(Element& candidate) const |
{ |
- if (!candidate.hasTagName(inputTag) || !element().hasTagName(inputTag)) |
+ if (!isHTMLInputElement(candidate) || !isHTMLInputElement(element())) |
return false; |
HTMLInputElement& candidateInput = toHTMLInputElement(candidate); |
@@ -151,7 +151,7 @@ bool SharedStyleFinder::sharingCandidateHasIdenticalStyleAffectingAttributes(Ele |
// FIXME: Consider removing this, it's unlikely we'll have so many progress elements |
// that sharing the style makes sense. Instead we should just not support style sharing |
// for them. |
- if (element().hasTagName(progressTag)) { |
+ if (isHTMLProgressElement(element())) { |
if (element().shouldAppearIndeterminate() != candidate.shouldAppearIndeterminate()) |
return false; |
} |