From ff1007bfc5b6a1cdb44eb2afd43ae9f055bfb748 Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Tue, 14 Jun 2005 17:19:53 +0000 Subject: [PATCH] bug 152329: inserting a text node in a textarea displays the text twice. r+sr=bzbarsky a=asa git-svn-id: svn://10.0.0.236/trunk@174572 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 8a9f7aa968d..18df0822c76 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -8496,8 +8496,10 @@ nsCSSFrameConstructor::ContentAppended(nsIContent* aContainer, nsIAtom* frameType = parentFrame->GetType(); if (frameType == nsLayoutAtoms::objectFrame || frameType == nsLayoutAtoms::tableColFrame || - frameType == nsLayoutAtoms::HTMLCanvasFrame) { - // This handles APPLET, EMBED, OBJECT, COL, and CANVAS + frameType == nsLayoutAtoms::HTMLCanvasFrame || + frameType == nsLayoutAtoms::textInputFrame) { + // This handles APPLET, EMBED, OBJECT, COL, CANVAS, TEXTAREA and + // return NS_OK; } // Deal with inner/outer tables, fieldsets @@ -9084,8 +9086,10 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer, nsIAtom* frameType = parentFrame->GetType(); if (frameType == nsLayoutAtoms::objectFrame || frameType == nsLayoutAtoms::tableColFrame || - frameType == nsLayoutAtoms::HTMLCanvasFrame) { - // This handles APPLET, EMBED, OBJECT, COL, and CANVAS + frameType == nsLayoutAtoms::HTMLCanvasFrame || + frameType == nsLayoutAtoms::textInputFrame) { + // This handles APPLET, EMBED, OBJECT, COL, CANVAS, TEXTAREA, and + // return NS_OK; } // Deal with inner/outer tables, fieldsets