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

« back to all changes in this revision

Viewing changes to layout/generic/nsContainerFrame.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:
148
148
  }
149
149
 
150
150
  if (mState & NS_FRAME_GENERATED_CONTENT) {
151
 
    // Make sure all the content nodes for the generated content inside
152
 
    // this frame know it's going away.
153
 
    // XXXbz would this be better done via a global structure in
154
 
    // nsCSSFrameConstructor that could key off of
155
 
    // GeneratedContentFrameRemoved or something?  The problem is that
156
 
    // our kids are gone by the time that's called.
157
 
    ::CleanupGeneratedContentIn(mContent, this);
 
151
    nsIAtom* type = GetType();
 
152
    if (type == nsLayoutAtoms::inlineFrame ||
 
153
        type== nsLayoutAtoms::blockFrame) {
 
154
      // Make sure all the content nodes for the generated content inside
 
155
      // this frame know it's going away.
 
156
      // XXXbz would this be better done via a global structure in
 
157
      // nsCSSFrameConstructor that could key off of
 
158
      // GeneratedContentFrameRemoved or something?  The problem is that
 
159
      // our kids are gone by the time that's called.
 
160
      ::CleanupGeneratedContentIn(mContent, this);
 
161
    }
158
162
  }
159
163
  
160
164
  // Delete the primary child list