~ubuntu-branches/ubuntu/utopic/xulrunner-1.9/utopic

« back to all changes in this revision

Viewing changes to mozilla/content/base/src/nsContentSink.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Alexander Sack, Fabien Tassin
  • Date: 2009-02-05 09:12:37 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205091237-2uu65i47p00yi2xk
Tags: 1.9.0.6+nobinonly-0ubuntu1
[ Alexander Sack <asac@ubuntu.com> ]
* new security/stability update v1.9.0.6 (FIREFOX_3_0_6_RELEASE)
  - see USN-717-1
* adjust patches to changed code base
  - update debian/patches/dom_inspector_support_for_prism.patch

[ Fabien Tassin <fta@ubuntu.com> ]
* Fix preinst script to better handle the /etc/gre.d clean-up
  - update debian/xulrunner-1.9.preinst.in
* Fix permissions in the -dev package (LP: #303940)
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
                               PRInt32 aLineNo)
335
335
{
336
336
  PRUint32 count = mScriptElements.Count();
 
337
  if (mParser && NS_SUCCEEDED(aResult)) {
 
338
    // Only notify the parser about scripts that are actually going to run.
 
339
    mParser->ScriptExecuting();
 
340
  }
337
341
 
338
342
  if (count == 0) {
339
343
    return NS_OK;
385
389
                               nsIScriptElement *aElement,
386
390
                               PRBool aIsInline)
387
391
{
 
392
  if (mParser) {
 
393
    mParser->ScriptDidExecute();
 
394
  }
 
395
 
388
396
  // Check if this is the element we were waiting for
389
397
  PRInt32 count = mScriptElements.Count();
390
 
  if (count == 0) {
391
 
    return NS_OK;
392
 
  }
393
 
  
394
 
  if (aElement != mScriptElements[count - 1]) {
 
398
  if (count == 0 || aElement != mScriptElements[count - 1]) {
395
399
    return NS_OK;
396
400
  }
397
401
 
1487
1491
}
1488
1492
 
1489
1493
void
1490
 
nsContentSink::ContinueInterruptedParsing()
1491
 
{
1492
 
  if (mParser) {
1493
 
    mParser->ContinueInterruptedParsing();
1494
 
  }
1495
 
}
1496
 
 
1497
 
void
1498
1494
nsContentSink::ContinueInterruptedParsingIfEnabled()
1499
1495
{
1500
1496
  if (mParser && mParser->IsParserEnabled()) {