~ubuntu-branches/ubuntu/intrepid/xulrunner-1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to mozilla/extensions/xforms/nsXFormsLoadElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-09-02 17:07:06 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090902170706-1hu3ck5x3ohvofj7
Tags: 1.9.0.14+build2+nobinonly-0ubuntu0.8.10.1
* New upstream release v1.9.0.14 build2 (FIREFOX_3_0_14_BUILD2)
  - see USN-821-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
  //action has no effect.
66
66
  PRBool hasBind;
67
67
  PRBool hasRef;
 
68
  nsresult rv;
68
69
  mElement->HasAttribute(NS_LITERAL_STRING("bind"), &hasBind);
69
70
  mElement->HasAttribute(NS_LITERAL_STRING("ref"), &hasRef);
70
71
  nsAutoString resource;
71
 
  mElement->GetAttribute(NS_LITERAL_STRING("resource"), resource);
 
72
  rv = nsXFormsUtils::GetAttributeOrChild(NS_LITERAL_STRING("resource"),
 
73
                                          mElement,
 
74
                                          resource);
 
75
  NS_ENSURE_SUCCESS(rv, rv);
72
76
 
73
77
  if (!resource.IsEmpty() && (hasBind || hasRef))
74
78
    return NS_OK;