| 1062 | |
| 1063 | |
| 1064 | int Debugger::WritePropertyXml(PropertyInfo &aProp, IObject *aObject) |
| 1065 | { |
| 1066 | PropertyWriter pw(*this, aProp, aObject); |
| 1067 | // Ask the object to write out its properties: |
| 1068 | aObject->DebugWriteProperty(&pw, aProp.page, aProp.pagesize, aProp.max_depth); |
| 1069 | aProp.fullname.Truncate(pw.mNameLength); |
| 1070 | // For simplicity/code size, instead of requiring error handling in aObject, |
| 1071 | // any failure during the above sets pw.mError, which causes it to ignore |
| 1072 | // any further method calls. Since we're finished now, return the error |
| 1073 | // code (even if it's "OK"): |
| 1074 | return pw.mError; |
| 1075 | } |
| 1076 | |
| 1077 | void Object::DebugWriteProperty(IDebugProperties *aDebugger, int aPage, int aPageSize, int aDepth) |
| 1078 | { |
no test coverage detected