Commit Graph
138 Commits
Author SHA1 Message Date
[email protected] 01533e488c deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky. 2003-12-24 21:51:50 +00:00
[email protected] 640685cbe9 Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky. 2003-12-21 05:36:36 +00:00
[email protected] 12ea8f5022 Account for 1 twip width of BR when computing the size of textareas. b=228752 Patch by Mats Palmgren <[email protected]>. r+sr=dbaron a=brendan 2003-12-18 06:06:00 +00:00
[email protected] d47517f6dc Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). [email protected], [email protected]. 2003-11-19 01:20:56 +00:00
[email protected] 35c5b17018 Don't do our "enlarge the control a bit to make it look better for small sizes"
thing for fixed-width fonts -- it's unnecessary and just makes it look like
"size" is broken.  Bug 103293, r+sr=rbs
2003-11-10 23:42:43 +00:00
uid502 4fc4723244 Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky 2003-10-31 20:19:18 +00:00
[email protected] 1f9609e30b deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst. 2003-10-22 06:09:48 +00:00
[email protected] 9446ce805f Use the correct term "float" instead of "floater". b=218654 r+sr=bzbarsky 2003-10-13 21:51:02 +00:00
[email protected] c11c6bf27e Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. [email protected], [email protected]. 2003-09-27 04:18:26 +00:00
uid502 b0bdfdf35a Bug 217201. Make nsTextControlFrame::InitEditor() happen outside of reflow, to prevent content notification flushes and reentrancy. r+rs=dbaron 2003-09-19 15:20:00 +00:00
[email protected] 4475fee458 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan. 2003-09-07 22:37:27 +00:00
[email protected] a781bd2ca2 fixes bug 175896 "crash when selecting data overflowing vertically in a textarea having the overflow = hidden property [@ nsSelection::GetFrameForNodeOffset ]" r+sr+a=dbaron 2003-08-20 20:15:34 +00:00
[email protected] 634c6e9bdc DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
2003-07-28 21:25:13 +00:00
[email protected] ee1d5a8446 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron 2003-07-25 19:06:59 +00:00
[email protected] c4c3d2315b patch from mjudge to maintainselection; r/sr=dbaron, bug=56401 2003-07-21 19:51:34 +00:00
[email protected] 660339f971 Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky 2003-07-11 21:16:12 +00:00
[email protected] 506ca007f3 Ongoing deCOMtamination. r+sr=dbaron 2003-07-04 12:50:32 +00:00
[email protected] 261c9a73d1 Helper patch for bug 15364. Expose an API to allow scripts to show the caret even in selections (a la Emacs). Users can also set the pref ui.caretVisibleWithSelection to 1, which gives a nice combination with caret browsing (hit F7). r=sfraser, sr=bzbarsky 2003-06-25 01:14:25 +00:00
[email protected] 384f320c3a DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc 2003-06-19 23:44:01 +00:00
[email protected] c8a200d763 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
[email protected]
2003-06-13 20:10:01 +00:00
[email protected] f98e358469 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan 2003-05-15 03:42:21 +00:00
[email protected] 8a88db7231 Fix bug 201257 -- clean up use of nsIControllerCommandManager by editor:
Renaming nsIControllerCommandManager to nsIControllerCommandTable to reduce confusion.
Moving the immutability flag from the nsBaseCommandController to the nsControllerCommandTable.
Renaming the 'refcon' on nsIControllerContext to 'context', and giving nsIControllerContext an Init() method that optionally takes a command table.
Fixing the editor and composer module code to create pre-filled nsIControllerCommandTables as services, and the controller constructors to create singleton command tables with do_GetService.
r=brade, sr=alecf.
2003-04-10 18:44:03 +00:00
[email protected] 7143d14503 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron 2003-04-08 20:50:57 +00:00
[email protected] 913e581e2e Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz 2003-03-12 03:22:11 +00:00
[email protected] 49bb057e7a Fix for bug 190382 (selectionEnd off by one when user selects text via CMD/CTRL-A)
- Prevent DOMPointToOffset() from counting a br as a newline, if it is the last child of the anonymous div.

- Fixed 3 compiler warnings in DOMPointToOffset().

[email protected]  [email protected]  [email protected]
2003-01-27 15:25:38 +00:00
[email protected] f5d1df8f8f Fix for bug 188440 (textfields clobber selection when they should not.)
mozilla/layout/html/forms/src/nsTextControlFrame.cpp
  mozilla/layout/html/forms/src/nsTextControlFrame.h

Revert back to using a private method (SelectAllContents()) which implements a select all of the text widget contents by manually creating a range and adding it to the selection. This avoids triggering the autocomplete selection listener, which listens for a selection reason of SELECTALL_REASON. This change should be undone once the autocomplete listener is modified to distinguish between a programatic select all and one generated by a user gesture.

r=brade  [email protected]
2003-01-21 15:17:32 +00:00
[email protected] 1c37d177d4 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky 2003-01-09 14:26:32 +00:00
[email protected] c7f22707c5 Fix for bug #88049: Support .selectionStart & friends for textareas
Patch by [email protected] and [email protected]

  mozilla/content/html/content/src/nsHTMLInputElement.cpp
  mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp
  mozilla/dom/public/idl/html/nsIDOMNSHTMLTextAreaElement.idl
  mozilla/layout/html/forms/src/nsTextControlFrame.cpp
  mozilla/layout/html/forms/src/nsTextControlFrame.h

Re-implemented selectionStart, selectionEnd, setSelectionRange() and various

utility methods in nsTextControlFrame to support multi-line text widgets.


[email protected]  [email protected]
2003-01-09 06:06:17 +00:00
[email protected] 10ab824360 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 21:19:10 +00:00
[email protected] 4abefda8a3 Make GetType() return int instead of nsresult (bug 167762), [email protected], [email protected] 2002-12-18 23:38:09 +00:00
[email protected] 5661ecbfce Adding a new interface to retrieve phonetic of input text,
bug 175937, r=brade, sr=kin.
2002-12-17 23:38:04 +00:00
[email protected] 0602838f7f Crasher on changing input type with JS (bug 175670), patch by [email protected], [email protected], [email protected] 2002-12-16 23:49:16 +00:00
[email protected] 4c4f65aba0 Correctly implement text-decoration in standards mode by drawing the underline on the element with the text-decoration property set. Refactor painting code a bit to avoid code duplication. Patch by Esben Mose Hansen <[email protected]>, with paint refactoring and some other changes by dbaron. r=dbaron sr=bzbarsky b=1777 2002-12-11 04:00:18 +00:00
[email protected] 4d63191bec Oog. Green and open not enough. jkeiser back self out, keep drivers from hitting with big rock. 2002-12-09 06:15:33 +00:00
[email protected] 886d8e4d5c fix behavior (and crasher) when changing type during event handler (bug 175670), patch by [email protected], [email protected], [email protected] 2002-12-09 05:56:58 +00:00
[email protected] fd22bd13c9 Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst. 2002-11-29 23:44:07 +00:00
[email protected] 62eac6a415 Make textareas and inputs restore again (bug 179330), [email protected], [email protected] 2002-11-20 23:19:45 +00:00
[email protected] 4799790fd9 Remove static nsCOMPtr from nsTextControlFrame. b=179228 r=jkeiser sr=bzbarsky 2002-11-19 15:21:57 +00:00
[email protected] e24d7109cb Not sure why this didn't get properly checked in with the rest... Bug
167236, r=jkeiser, sr=roc+moz, moa=rods
2002-11-13 07:50:34 +00:00
[email protected] c8bcfa1fc1 Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser 2002-11-12 23:03:27 +00:00
[email protected] e26b85861a Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst. 2002-11-09 00:25:25 +00:00
[email protected] 953773aef0 Temporarily disable attachment 87307 (Async reflow, painting, and scrolling for text widgets) which landed as part of bug 141900. Will re-enable it after bugs 158782, 151882, and 165130 are addressed.
The patch simply prevents the eEditorUseAsyncUpdatesMask bit from being set on the editor.

[email protected]  [email protected]  [email protected]
2002-10-16 19:02:05 +00:00
[email protected] 4f8c9d4e21 Back out bug 167236 due to regressions 171214 and 171465 2002-09-30 10:22:06 +00:00
[email protected] bb87336fcf Align input type=text/radio/checkbox/button so that text is on baseline (bzbarsky's patch, bug 167236), [email protected], [email protected] 2002-09-27 00:04:22 +00:00
[email protected] 9f3755056e Make input type=text width bigger ([email protected]'s patch, bug 92980), [email protected], [email protected] 2002-09-23 19:43:48 +00:00
[email protected] 3a3675d79e Make default wrap soft again, fix up text reflow, remove cruft from button reflow (bug 164641), [email protected], [email protected] 2002-09-16 06:23:52 +00:00
[email protected] 46ce738546 166917. Clean up xpcom SDK includes. [email protected], [email protected], [email protected] 2002-09-07 17:13:19 +00:00
[email protected] 373e597ffe 23784 r=akk sr=dbaron fix for stopping immediate drag after double clicking of the mouse 2002-08-30 01:32:11 +00:00
[email protected] 0bc0df0727 Not all c++ compilers support true. Use PR_TRUE instead.
Fixing OS/2 tinderbox bustage.
2002-08-27 07:34:41 +00:00
[email protected] 79cf729b94 4302 r=jfrancis sr=kin. pageup/down bug with navigation. 2002-08-26 20:55:30 +00:00