summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/dom_agent_impl.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 10:04:26 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 10:04:26 +0000
commitc85fd527a167276e470a9cc414fae0343072a594 (patch)
treed3388392feebdc7e117f0fcdcb434c959b9e4d15 /webkit/glue/devtools/dom_agent_impl.cc
parent43cf325be09379594dd96e0b35146585cdfd6a34 (diff)
downloadchromium_src-c85fd527a167276e470a9cc414fae0343072a594.zip
chromium_src-c85fd527a167276e470a9cc414fae0343072a594.tar.gz
chromium_src-c85fd527a167276e470a9cc414fae0343072a594.tar.bz2
DevTools: Support r/o properties inspection.
Review URL: http://codereview.chromium.org/56067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/dom_agent_impl.cc')
-rw-r--r--webkit/glue/devtools/dom_agent_impl.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/webkit/glue/devtools/dom_agent_impl.cc b/webkit/glue/devtools/dom_agent_impl.cc
index a3a3d75..81016462 100644
--- a/webkit/glue/devtools/dom_agent_impl.cc
+++ b/webkit/glue/devtools/dom_agent_impl.cc
@@ -478,24 +478,24 @@ ListValue* DomAgentImpl::BuildValueForNode(Node* node, int depth) {
}
ListValue* DomAgentImpl::BuildValueForElementAttributes(Element* element) {
- OwnPtr<ListValue> attributesValue(new ListValue());
+ OwnPtr<ListValue> attributes_value(new ListValue());
// Go through all attributes and serialize them.
- const NamedNodeMap *attrMap = element->attributes(true);
- if (!attrMap) {
- return attributesValue.release();
+ const NamedNodeMap* attr_map = element->attributes(true);
+ if (!attr_map) {
+ return attributes_value.release();
}
- unsigned numAttrs = attrMap->length();
- for (unsigned i = 0; i < numAttrs; i++) {
+ unsigned num_attrs = attr_map->length();
+ for (unsigned i = 0; i < num_attrs; i++) {
// Add attribute pair
- const Attribute *attribute = attrMap->attributeItem(i);
+ const Attribute *attribute = attr_map->attributeItem(i);
OwnPtr<Value> name(Value::CreateStringValue(
webkit_glue::StringToStdWString(attribute->name().toString())));
OwnPtr<Value> value(Value::CreateStringValue(
webkit_glue::StringToStdWString(attribute->value())));
- attributesValue->Append(name.release());
- attributesValue->Append(value.release());
+ attributes_value->Append(name.release());
+ attributes_value->Append(value.release());
}
- return attributesValue.release();
+ return attributes_value.release();
}
ListValue* DomAgentImpl::BuildValueForElementChildren(