2007-02-04 Eric Seidel <eric@webkit.org>
Reviewed by darin.
Fix hand cursor on link hover for SVG
Fix status text on link hover for SVG
Fix tooltips on link hover for SVG
Fix link dragging for SVG
http://bugs.webkit.org/show_bug.cgi?id=12575
Test: added manual-tests/svg-links.svg
* dom/Document.cpp:
(WebCore::Document::prepareMouseEvent):
* dom/Element.cpp:
(WebCore::Element::title):
* dom/Element.h:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::setId):
(WebCore::HTMLElement::title):
(WebCore::HTMLElement::setTitle):
(WebCore::HTMLElement::setLang):
* html/HTMLElement.h:
* ksvg2/svg/SVGAElement.cpp:
(WebCore::SVGAElement::title):
(WebCore::SVGAElement::parseMappedAttribute):
(WebCore::SVGAElement::defaultEventHandler):
* ksvg2/svg/SVGAElement.h:
* ksvg2/svg/SVGTitleElement.cpp:
* ksvg2/svg/SVGTitleElement.h:
* manual-tests/svg-links.svg: Added.
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::title):
(WebCore::HitTestResult::absoluteImageURL):
(WebCore::HitTestResult::absoluteLinkURL):
(WebCore::HitTestResult::isLiveLink):
(WebCore::HitTestResult::titleDisplayString):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/html/HTMLElement.cpp b/WebCore/html/HTMLElement.cpp
index e08aa29..645a6f9 100644
--- a/WebCore/html/HTMLElement.cpp
+++ b/WebCore/html/HTMLElement.cpp
@@ -609,12 +609,17 @@
return getAttribute(idAttr);
}
-void HTMLElement::setId(const String &value)
+void HTMLElement::setId(const String& value)
{
setAttribute(idAttr, value);
}
-void HTMLElement::setTitle(const String &value)
+String HTMLElement::title() const
+{
+ return getAttribute(titleAttr);
+}
+
+void HTMLElement::setTitle(const String& value)
{
setAttribute(titleAttr, value);
}
@@ -624,7 +629,7 @@
return getAttribute(langAttr);
}
-void HTMLElement::setLang(const String &value)
+void HTMLElement::setLang(const String& value)
{
setAttribute(langAttr, value);
}