Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 53348df162a2e4dbeb211c5f3735659ab860ba47..c3f9aa233d93eeb9546556158cdcb6a5b8d1ec1a 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -718,7 +718,7 @@ PassRefPtr<RenderStyle> StyleResolver::styleForElement(Element* element, RenderS |
applyAnimatedProperties(state, element); |
// FIXME: Shouldn't this be on RenderBody::styleDidChange? |
- if (element->hasTagName(bodyTag)) |
+ if (isHTMLBodyElement(*element)) |
document().textLinkColors().setTextColor(state.style()->color()); |
setAnimationUpdateIfNeeded(state, *element); |