Reviewed by hyatt.
<svg:a> cannot be styled with a:hover
http://bugzilla.opendarwin.org/show_bug.cgi?id=11005
Test: svg/hixie/cascade/002.xml
* css/cssstyleselector.cpp:
(WebCore::checkPseudoState):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16552
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-09-24 Eric Seidel <eric@eseidel.com>
+
+ Reviewed by hyatt.
+
+ Import one of Hixie's tests for:
+ <svg:a> cannot be styled with a:hover
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=11005
+
+ * svg/hixie/cascade/002.css: Added.
+ * svg/hixie/cascade/002.xml: Added.
+
2006-09-23 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Eric.
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <!-- page dynamically created -->
+ <link rel="stylesheet" href="/resources/style/spaced.css" type="text/css" media="all" title="Spaced">
+ <link rel="alternate stylesheet" href="/resources/style/orange/" type="text/css" title="Orange" media="all">
+ <link rel="alternate stylesheet" href="/resources/style/debug.css" type="text/css" title="Debugging" media="all">
+ <meta name="copyright" content="© copyright 2003-2006 by Ian Hickson">
+
+ <title>File Not Found</title>
+ </head>
+ <body class="error">
+ <h1><span class="domain"><!--
+--><span class="subdomain"><span>w</span><span>w</span><span>w</span></span><!--
+--><span class="dot">.</span><!--
+--><span class="hixie">hixie</span><!--
+--><span class="dot">.</span><!--
+--><span class="ch"><span class="c">c</span>h</span><!--
+--></span></h1>
+ <h2>File Not Found</h2>
+
+<p>You step in the stream,<br>
+but the water has moved on.<br>
+This page is not here.</p>
+<!-- with thanks to http://www.gnu.org/fun/jokes/error-haiku.html -->
+
+ <p><a href="/">Return to the home page of this
+ site</a>.</p>
+
+ </body>
+</html>
+
+
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="400" width="400">
+ <style type="text/css">
+ circle { fill: maroon; }
+ a:visited circle { fill: green; }
+ </style>
+ <a xlink:href="002.xml" xlink:type="simple"><circle cx="200" cy="200" r="100" fill="red"/></a>
+</svg>
+2006-09-24 Eric Seidel <eric@eseidel.com>
+
+ Reviewed by hyatt.
+
+ <svg:a> cannot be styled with a:hover
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=11005
+
+ Test: svg/hixie/cascade/002.xml
+
+ * css/cssstyleselector.cpp:
+ (WebCore::checkPseudoState):
+
2006-09-24 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Tim H.
#include "loader.h"
#include "ShadowValue.h"
+#ifdef SVG_SUPPORT
+#include "XLinkNames.h"
+#endif
+
using namespace std;
namespace WebCore {
return;
}
- const AtomicString& attr = e->getAttribute(hrefAttr);
+ AtomicString attr;
+ if (e->isHTMLElement())
+ attr = e->getAttribute(hrefAttr);
+#ifdef SVG_SUPPORT
+ else if (e->isSVGElement())
+ attr = e->getAttribute(XLinkNames::hrefAttr);
+#endif
if (attr.isNull()) {
pseudoState = PseudoNone;
return;