From 2e2ab230d150057fafe42f2a80b7eefe76fe203b Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Mon, 20 Sep 1999 03:59:43 +0000 Subject: [PATCH] small performance improvement. weeded out some obsolete code that was causing round trips through the editor unnecessarily. thanks for pointing out the problem, akkana and bruce m. git-svn-id: svn://10.0.0.236/trunk@48310 18797224-902f-48f8-a5cc-f745e15eee43 --- .../layout/html/forms/src/nsGfxTextControlFrame.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp index dc16a388d94..4e716c37027 100644 --- a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp @@ -1540,18 +1540,10 @@ nsGfxTextControlFrame::InitializeTextControl(nsIPresShell *aPresShell, nsIDOMDoc return result; } +// this is where we'll propogate a state changed event, once hyatt defines it. NS_IMETHODIMP nsGfxTextControlFrame::InternalContentChanged() { - if (!IsInitialized()) { return NS_ERROR_NOT_INITIALIZED; } - nsAutoString textValue; - // XXX: need to check here if we're an HTML edit field or a text edit field - nsString format ("text/plain"); - mEditor->OutputToString(textValue, format, 0); - if (IsSingleLineTextControl()) { - RemoveNewlines(textValue); - } - SetTextControlFrameState(textValue); // set new text value return NS_OK; }