~ubuntu-branches/ubuntu/feisty/firefox/feisty-security

« back to all changes in this revision

Viewing changes to widget/src/photon/nsToolkit.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2007-10-19 01:09:21 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20071019010921-8sglgxbi6kj1pemg
Tags: 2.0.0.8+1nobinonly-0ubuntu1
* New security/stability upstream release (v2.0.0.8)
* MFSA 2007-29 aka CVE-2007-5339 (browser), CVE-2007-5340 (javascript)
* MFSA 2007-30 aka CVE-2007-1095
* MFSA 2007-31 aka CVE-2007-2292
* MFSA 2007-32 aka CVE-2007-3511, CVE-2006-2894
* MFSA 2007-33 aka CVE-2007-5334
* MFSA 2007-34 aka CVE-2007-5337
* MFSA 2007-35 aka CVE-2007-5338
* MFSA 2007-36 aka CVE-2007-4841 (windows only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
#include "nsToolkit.h"
39
39
#include "nscore.h"
 
40
#include "nsIView.h"
40
41
 
41
42
//
42
43
// Static thread local storage index of the Toolkit 
125
126
 
126
127
  return rv;
127
128
}
 
129
 
 
130
nsIView *
 
131
nsToolkit::GetViewFor(nsIWidget *aWidget)
 
132
{
 
133
  if (!aWidget)
 
134
    return nsnull;
 
135
  nsIView *retval = nsnull;
 
136
  nsISupports *data = nsnull;
 
137
  aWidget->GetClientData((void*&)data);
 
138
  nsCOMPtr<nsIInterfaceRequestor> req(do_QueryInterface(data));
 
139
  if (req)
 
140
    req->GetInterface(NS_GET_IID(nsIView), (void**) &retval);
 
141
  return retval;
 
142
}
 
143