summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLAnchorElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLAnchorElement.cpp')
-rw-r--r--WebCore/wml/WMLAnchorElement.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/WebCore/wml/WMLAnchorElement.cpp b/WebCore/wml/WMLAnchorElement.cpp
index 300cbf6..91526b9 100644
--- a/WebCore/wml/WMLAnchorElement.cpp
+++ b/WebCore/wml/WMLAnchorElement.cpp
@@ -32,6 +32,7 @@ namespace WebCore {
WMLAnchorElement::WMLAnchorElement(const QualifiedName& tagName, Document* doc)
: WMLAElement(tagName, doc)
+ , m_task(0)
{
// Calling setIsLink(true), and returning a non-null value on CSSStyleSelectors' linkAttribute
// method, makes it possible to 'appear as link' (just like <a href="..">) without the need to
@@ -62,6 +63,18 @@ void WMLAnchorElement::defaultEventHandler(Event* event)
WMLElement::defaultEventHandler(event);
}
+void WMLAnchorElement::registerTask(WMLTaskElement* task)
+{
+ ASSERT(!m_task);
+ m_task = task;
+}
+
+void WMLAnchorElement::deregisterTask(WMLTaskElement* task)
+{
+ ASSERT(m_task == task);
+ m_task = 0;
+}
+
}
#endif