From c85fd527a167276e470a9cc414fae0343072a594 Mon Sep 17 00:00:00 2001 From: "pfeldman@chromium.org" Date: Wed, 1 Apr 2009 10:04:26 +0000 Subject: 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 --- webkit/glue/devtools/dom_agent_impl.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'webkit/glue/devtools/dom_agent_impl.cc') 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 attributesValue(new ListValue()); + OwnPtr 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 name(Value::CreateStringValue( webkit_glue::StringToStdWString(attribute->name().toString()))); OwnPtr 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( -- cgit v1.1