Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index a08b09ea579df1363cce8c85ad388e62bab2db78..7a89c530f22cd28b1aef7c369537a23d1ddd02f3 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -33,6 +33,7 @@ |
#include "core/editing/EditingBoundary.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/htmlediting.h" |
+#include "core/html/HTMLAnchorElement.h" |
#include "core/html/HTMLElement.h" |
#include "core/page/EventHandler.h" |
#include "core/page/Frame.h" |
@@ -2860,8 +2861,7 @@ void RenderObject::getTextDecorationColors(int decorations, Color& underline, Co |
curr = curr->parent(); |
if (curr && curr->isAnonymousBlock() && toRenderBlock(curr)->continuation()) |
curr = toRenderBlock(curr)->continuation(); |
- } while (curr && decorations && (!quirksMode || !curr->node() || |
- (!curr->node()->hasTagName(aTag) && !curr->node()->hasTagName(fontTag)))); |
+ } while (curr && decorations && (!quirksMode || !curr->node() || (!isHTMLAnchorElement(curr->node()) && !curr->node()->hasTagName(fontTag)))); |
// If we bailed out, use the element we bailed out at (typically a <font> or <a> element). |
if (decorations && curr) { |