66 Commits

Author SHA1 Message Date
mjudge%netscape.com
2fc6190bef small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
sfraser%netscape.com
d0d7a8b884 Oops, need to check in this file for new selection enums.
git-svn-id: svn://10.0.0.236/trunk@67830 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 02:51:30 +00:00
mjudge%netscape.com
922709ebdd fixing selection speed. only copying to clipboard on mouse up
git-svn-id: svn://10.0.0.236/trunk@66024 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:00:30 +00:00
mjudge%netscape.com
55078146c7 touch alot. changing api for notify selection listeners to add document and seleciton pointers to the api.
git-svn-id: svn://10.0.0.236/trunk@65977 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:21:19 +00:00
akkana%netscape.com
57c4475945 28401: Code cleanup. Move the key event handling to a separate method (r=sfraser)
git-svn-id: svn://10.0.0.236/trunk@65882 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:06:30 +00:00
sfraser%netscape.com
11edab2993 Adding methods to allow control of the selection in text widgets.
git-svn-id: svn://10.0.0.236/trunk@65774 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:15:59 +00:00
akkana%netscape.com
2bffc574a8 28598: map \r and \r\n to \n in form textarea submissions
git-svn-id: svn://10.0.0.236/trunk@64633 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 22:49:59 +00:00
cmanske%netscape.com
5ab9b7f9df Added support for table selection and removed nsIDOMSelectionListener code no longer needed. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63201 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:45:39 +00:00
akkana%netscape.com
402752ab10 Bug 20207, extra lines in textarea (r=buster)
git-svn-id: svn://10.0.0.236/trunk@62818 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 03:01:56 +00:00
tbogard%aol.net
e3f824bae5 Converted to hold on to a docShell instead of a webShell. Interaction with this object that previously was a webShell now is a docShell.
git-svn-id: svn://10.0.0.236/trunk@62607 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 01:29:15 +00:00
sfraser%netscape.com
32d1e793b2 Fix command updating for GFX text widgets. for bug 18395. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@61009 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 01:41:59 +00:00
buster%netscape.com
5a06148a81 enabled "physical" and "virtual" as synonyms for <textarea> "wrap" attribute value
bug = ???, it's been reassigned to someone else, this was part of a larger problem
that has mostly been fixed already
r=rods

checked in some debug-only metrics code that's been sitting in my tree for a few weeks
r=rods

bug 24950
the frame was creating additional initial reflows for itself indirectly and unnecessarily in some cases
r=hyatt (though he hasn't had time for a thorough review of this yet, so I'm going out on a limb a bit
by checking it in prematurely.  But I'm very confident, I've done tons of testing, and I'll still insist
on a thorough code review of this change.)


git-svn-id: svn://10.0.0.236/trunk@60682 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 02:07:50 +00:00
mjudge%netscape.com
44c8697114 big checkin. fixing problems blocking Cmanske (also a reviewer). Checking in preliminary for gen content.(nothing damaged yet) lots of bug numbers not going to look them up, the tree just opened.
git-svn-id: svn://10.0.0.236/trunk@60278 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 04:35:51 +00:00
rods%netscape.com
cffeb53a49 removing unneeded native frames and unneeded frame classes that these derived from
fixing checkbox and radiobutton state restore
fixing right btn click on dropdown
adding in initial work for accesskey
bug 17027,26296,27063,7559; carpool a=leaf; r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@60248 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 19:34:39 +00:00
kin%netscape.com
77aab65125 Fix for bug #20387 (scrollbars appearing in single line text control)
mozilla/layout/forms/src/nsGfxTextControlFrame.cpp
    mozilla/layout/forms/src/nsGfxTextControlFrame.h
      - Added GetFirstFrameWithIID() utility method.
      - Modified InitializeTextControl() so that it sets the
        single line text control's viewport overflow value
        to NS_STYLE_OVERFLOW_SCROLLBARS_NONE.

r=buster@netscape.com


git-svn-id: svn://10.0.0.236/trunk@59519 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 14:12:01 +00:00
sfraser%netscape.com
7767924d1c Work on command updating in the ender widget. r=buster
git-svn-id: svn://10.0.0.236/trunk@58523 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 02:58:25 +00:00
troy%netscape.com
60471abd92 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.


git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
rods%netscape.com
a54126699a backed out all changes from today (1/5/2000)
git-svn-id: svn://10.0.0.236/trunk@56850 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 16:42:47 +00:00
rods%netscape.com
462e26d6a5 Added unconstrainted reflow optimizations
r=kmcclusk bug=12653


git-svn-id: svn://10.0.0.236/trunk@56844 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 15:21:02 +00:00
rpotts%netscape.com
5870fbf96d Removed obsolete arguments from nsIDocumentLoaderObserver OnEndDocumentLoad and OnStartURLLoad.
git-svn-id: svn://10.0.0.236/trunk@56597 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 07:32:59 +00:00
hyatt%netscape.com
e91083d770 Patch that gets tabbing back into text fields. r=waterson
git-svn-id: svn://10.0.0.236/trunk@56291 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 19:35:13 +00:00
hyatt%netscape.com
66f9e68928 Fixes for 3 PDT+ bugs (THAT'S RIGHT). Bugs 21895, 21832, and 21610. r=mjudge,
a=i'm leaving now for vacation, and i can't find anyone around, but i'm assuming that you
actually want them before January 3rd, so I'm checking them in.


git-svn-id: svn://10.0.0.236/trunk@56179 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 04:02:28 +00:00
buster%netscape.com
c6b9cd5cd6 fixed bugs 21612 ([dogfood] first click doesn't get through to text field)
and 18500 (Can't drag-select in text widget unless focussed first)
This fix does NOT address other focus-related problems having to do with text controls.
r=rickg
a=chofmann
platform testing support=kin,dcone,akkana (THANKS!)


git-svn-id: svn://10.0.0.236/trunk@56143 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-17 07:10:10 +00:00
alecf%netscape.com
aaa9106176 fix for #21417
r=troy, a=chofmann
the editor's internal mDisplayFrame was not being removed from the frame manager's map of content->frames, so after enough scrolling in the addressing pane, reflow would try to reference a deleted frame. Fix is to remove the frame from the frame manager every time it's destroyed.


git-svn-id: svn://10.0.0.236/trunk@56134 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-17 03:28:50 +00:00
hyatt%netscape.com
2c134c2abf Massive rewrite of the focus/blur architecture. Things should behave better
now. r=saari


git-svn-id: svn://10.0.0.236/trunk@55715 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:54:29 +00:00
tor%cs.brown.edu
f4d16e3240 Build bustage fix for gcc 2.7 & vc5 - include class interface
before playing with nsCOMPtr. r=travis@aol.net,a=dmose@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@54499 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-27 05:05:14 +00:00
tbogard%aol.net
d90a54c043 nsGfxTextControlFrame now uses the nsIBaseWindow interface off the WebShell object to do positioning stuff instead of nsIWebShell interface. Also changed some regular XPCOM pointers to be nsCOMPtrs.
git-svn-id: svn://10.0.0.236/trunk@54497 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-27 03:23:43 +00:00
tbogard%aol.net
ae5a81e394 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00
buster%netscape.com
322aab6269 DOM extension for exposing text areas to XUL
bug 12022, r=rickg, vidur
also made some improvements for future docshell work
r=rickg, travis


git-svn-id: svn://10.0.0.236/trunk@53976 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 07:25:11 +00:00
rods%netscape.com
86e9616018 Fixing focus & blur event dispatch (mostly having to do with native windows in embedded webshells)
Fixing the sizing issues related to box-sizing for CSS.
r=buster, bug 17196,18448


git-svn-id: svn://10.0.0.236/trunk@53511 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 15:20:03 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
joki%netscape.com
c79e9c67d2 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur
git-svn-id: svn://10.0.0.236/trunk@52691 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 07:11:45 +00:00
kmcclusk%netscape.com
a09d34ccd1 Fixed places where SetProperty and Reset were missing the nsIPresContext argument.
This fixed 6 warnings and cases where reset and set property where not working properly for
all form elements. r = rods@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@52619 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 00:01:13 +00:00
troy%netscape.com
3513334988 Moved a bunch of stuff out to a nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52427 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:12:45 +00:00
buster%netscape.com
33e56d70f4 huge performance work for text controls
we now display the content of a single line text control using a child pseudo frame
until the text control first gets focus.  at that time, a webshell and editor are created on the fly.
fixed bug bug 14727
r=rods


git-svn-id: svn://10.0.0.236/trunk@52330 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:33:00 +00:00
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
rods%netscape.com
8aef13e868 Completely rewrote the the Reflow for gfx text controls, factored out separate
reflow paths for NavQuirks and Standard mode. Also, Standard mode reflow now obeys
cols rows etc. Although there may be a little code bloat, this will make maintaining
the input text and textarea much much easier.
r=kmcclusk, b=6695,7461


git-svn-id: svn://10.0.0.236/trunk@51818 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 03:46:18 +00:00
peterl%netscape.com
bba68903df Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:16:45 +00:00
buster%netscape.com
34185693a8 bug 12221 [Dogfood] Gfx text controls need to notify on mouse events
r=rods@netscape.com
also did some associated performance work, factoring code and collapsing multiple listener
objects down to 1.  This saves a few allocations and about 60 bytes per text control.

bug 11803 Need new event for text value changing
r=hyatt@netscape.com
not dogfood approved, but the fix has been sitting in my tree for 2 weeks


git-svn-id: svn://10.0.0.236/trunk@50825 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:38:29 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
rpotts%netscape.com
fa598b6cae bug #15341 and bug #15344. Use the documentloader observer instead of a stream observer.
git-svn-id: svn://10.0.0.236/trunk@49795 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:04:16 +00:00
danm%netscape.com
f8f515a025 event handler holds weak reference to frame. fixes bug 14885. r:buster
git-svn-id: svn://10.0.0.236/trunk@49582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 15:04:15 +00:00
buster%netscape.com
53d4be4b63 enabled event state manager to do it's thing with focus switching.
this cleans up focus switching in general, and specifically enables tabbing
between single-line text controls and other html form elements.


git-svn-id: svn://10.0.0.236/trunk@48703 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:04:37 +00:00
buster%netscape.com
e676ff78bf just added a comment
git-svn-id: svn://10.0.0.236/trunk@48311 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:01:39 +00:00
pollmann%netscape.com
60d58f1ca0 Cache value updates that happen before initialization: fixes a bug in session history where text input/textarea/file inputs aren't restored.
git-svn-id: svn://10.0.0.236/trunk@48246 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:22:55 +00:00
warren%netscape.com
556cf8505e Factored file transport service out of file: protocol.
git-svn-id: svn://10.0.0.236/trunk@47704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:16:22 +00:00
buster%netscape.com
c0e7040977 workaround needed as a result of hyatt's change to frame construction code and attribute notification.
git-svn-id: svn://10.0.0.236/trunk@46606 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:45:32 +00:00
buster%netscape.com
398a9778e4 added PRInt32 GetWidthInCharacters() const;
git-svn-id: svn://10.0.0.236/trunk@45724 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 20:45:50 +00:00
kipp%netscape.com
eea3ab916a Updated SizeOf methods to not waste space when doing a non-debug build
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:02:16 +00:00