Index: Source/core/css/CSSDefaultStyleSheets.cpp |
diff --git a/Source/core/css/CSSDefaultStyleSheets.cpp b/Source/core/css/CSSDefaultStyleSheets.cpp |
index 22b1e721ce037718dfc4663af9071096195aee2f..06bef8c7b0d0d4a962dac29e748d368045a65263 100644 |
--- a/Source/core/css/CSSDefaultStyleSheets.cpp |
+++ b/Source/core/css/CSSDefaultStyleSheets.cpp |
@@ -34,6 +34,7 @@ |
#include "core/css/RuleSet.h" |
#include "core/css/StyleSheetContents.h" |
#include "core/dom/FullscreenController.h" |
+#include "core/html/HTMLAnchorElement.h" |
#include "core/rendering/RenderTheme.h" |
namespace WebCore { |
@@ -58,7 +59,7 @@ static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}head |
static inline bool elementCanUseSimpleDefaultStyle(Element* e) |
{ |
- return e->hasTagName(htmlTag) || e->hasTagName(headTag) || e->hasTagName(bodyTag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || e->hasTagName(aTag); |
+ return e->hasTagName(htmlTag) || e->hasTagName(headTag) || e->hasTagName(bodyTag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || isHTMLAnchorElement(e); |
} |
static const MediaQueryEvaluator& screenEval() |