summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/NamedAttrMap.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch)
treed49911209b132da58d838efa852daf28d516df21 /WebCore/dom/NamedAttrMap.cpp
parent87eb0cb35bad8784770ebc807e6c982432e47107 (diff)
downloadexternal_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2
Initial Contribution
Diffstat (limited to 'WebCore/dom/NamedAttrMap.cpp')
-rw-r--r--WebCore/dom/NamedAttrMap.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/dom/NamedAttrMap.cpp b/WebCore/dom/NamedAttrMap.cpp
index ee89bcc..d1a39a7 100644
--- a/WebCore/dom/NamedAttrMap.cpp
+++ b/WebCore/dom/NamedAttrMap.cpp
@@ -99,7 +99,11 @@ PassRefPtr<Node> NamedAttrMap::getNamedItem(const QualifiedName& name) const
PassRefPtr<Node> NamedAttrMap::setNamedItem(Node* arg, ExceptionCode& ec)
{
+#ifdef ANDROID_FIX
+ if (!element || !arg) {
+#else
if (!element) {
+#endif
ec = NOT_FOUND_ERR;
return 0;
}
@@ -282,7 +286,7 @@ void NamedAttrMap::addAttribute(PassRefPtr<Attribute> prpAttribute)
// Because of our updateStyleAttributeIfNeeded() style modification events are never sent at the right time, so don't bother sending them.
if (attribute->name() != styleAttr) {
element->dispatchAttrAdditionEvent(attribute);
- element->dispatchSubtreeModifiedEvent();
+ element->dispatchSubtreeModifiedEvent(false);
}
}
}
@@ -328,7 +332,7 @@ void NamedAttrMap::removeAttribute(const QualifiedName& name)
}
if (element) {
element->dispatchAttrRemovalEvent(attr);
- element->dispatchSubtreeModifiedEvent();
+ element->dispatchSubtreeModifiedEvent(false);
}
attr->deref();
}