From df9d1ddacda34859619c0cb2d3041f36b8f9be76 Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Sat, 29 Jan 2000 00:34:07 +0000 Subject: [PATCH] Fix for bugs 20485 and 24600. We no longer flush immediately in the content sink when we hit a script element. Instead the sink is a document observer and listens for BeginUpdate/EndUpdate notifications when evaluating a script and flushes only if necessary. Added BeginUpdate/EndUpdate notifications to nsIDocument and layout content (note that it's still necessary for XUL content). r=nisheeth,pollmann git-svn-id: svn://10.0.0.236/trunk@59135 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocument.h | 2 ++ mozilla/layout/base/src/nsDocument.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mozilla/content/base/src/nsDocument.h b/mozilla/content/base/src/nsDocument.h index 7393497828b..fa249f6b108 100644 --- a/mozilla/content/base/src/nsDocument.h +++ b/mozilla/content/base/src/nsDocument.h @@ -268,6 +268,8 @@ public: // Observation hooks used by content nodes to propagate // notifications to document observers. + NS_IMETHOD BeginUpdate(); + NS_IMETHOD EndUpdate(); NS_IMETHOD BeginLoad(); NS_IMETHOD EndLoad(); NS_IMETHOD ContentChanged(nsIContent* aContent, diff --git a/mozilla/layout/base/src/nsDocument.h b/mozilla/layout/base/src/nsDocument.h index 7393497828b..fa249f6b108 100644 --- a/mozilla/layout/base/src/nsDocument.h +++ b/mozilla/layout/base/src/nsDocument.h @@ -268,6 +268,8 @@ public: // Observation hooks used by content nodes to propagate // notifications to document observers. + NS_IMETHOD BeginUpdate(); + NS_IMETHOD EndUpdate(); NS_IMETHOD BeginLoad(); NS_IMETHOD EndLoad(); NS_IMETHOD ContentChanged(nsIContent* aContent,