summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLImageElement.cpp
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2009-08-19 14:09:30 +0100
committerAndrei Popescu <andreip@google.com>2009-08-19 14:09:30 +0100
commit058ccc7ba0a4d59b9f6e92808332aa9895425fc7 (patch)
tree276aad5a2bbc2fd7d65d21bfca42c9de88b3dd20 /WebCore/html/HTMLImageElement.cpp
parent2796dd1bf3b4b01e7e1d96ea91bd3a212f647579 (diff)
downloadexternal_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.zip
external_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.tar.gz
external_webkit-058ccc7ba0a4d59b9f6e92808332aa9895425fc7.tar.bz2
Revert "Merge WebKit r47420"
This reverts commit d227fc870c7a697500a3c900c31baf05fb9a8524.
Diffstat (limited to 'WebCore/html/HTMLImageElement.cpp')
-rw-r--r--WebCore/html/HTMLImageElement.cpp50
1 files changed, 47 insertions, 3 deletions
diff --git a/WebCore/html/HTMLImageElement.cpp b/WebCore/html/HTMLImageElement.cpp
index 932e718..5173964 100644
--- a/WebCore/html/HTMLImageElement.cpp
+++ b/WebCore/html/HTMLImageElement.cpp
@@ -279,11 +279,46 @@ bool HTMLImageElement::isURLAttribute(Attribute* attr) const
|| (attr->name() == usemapAttr && attr->value().string()[0] != '#');
}
-const AtomicString& HTMLImageElement::alt() const
+String HTMLImageElement::name() const
+{
+ return getAttribute(nameAttr);
+}
+
+void HTMLImageElement::setName(const String& value)
+{
+ setAttribute(nameAttr, value);
+}
+
+String HTMLImageElement::align() const
+{
+ return getAttribute(alignAttr);
+}
+
+void HTMLImageElement::setAlign(const String& value)
+{
+ setAttribute(alignAttr, value);
+}
+
+String HTMLImageElement::alt() const
{
return getAttribute(altAttr);
}
+void HTMLImageElement::setAlt(const String& value)
+{
+ setAttribute(altAttr, value);
+}
+
+String HTMLImageElement::border() const
+{
+ return getAttribute(borderAttr);
+}
+
+void HTMLImageElement::setBorder(const String& value)
+{
+ setAttribute(borderAttr, value);
+}
+
bool HTMLImageElement::draggable() const
{
// Image elements are draggable by default.
@@ -346,6 +381,16 @@ void HTMLImageElement::setSrc(const String& value)
setAttribute(srcAttr, value);
}
+String HTMLImageElement::useMap() const
+{
+ return getAttribute(usemapAttr);
+}
+
+void HTMLImageElement::setUseMap(const String& value)
+{
+ setAttribute(usemapAttr, value);
+}
+
int HTMLImageElement::vspace() const
{
// ### return actual vspace
@@ -394,8 +439,7 @@ void HTMLImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
HTMLElement::addSubresourceAttributeURLs(urls);
addSubresourceURL(urls, src());
- // FIXME: What about when the usemap attribute begins with "#"?
- addSubresourceURL(urls, document()->completeURL(getAttribute(usemapAttr)));
+ addSubresourceURL(urls, document()->completeURL(useMap()));
}
}