Граф коммитов

209 Коммитов

Автор SHA1 Сообщение Дата
pinkerton%netscape.com 8e90a3e9c2 fix for #16463 (crash when frames involved in a drag went away) and nsCOMPtrizing a lot of things (r=saari). 1999-11-02 03:55:14 +00:00
pinkerton%netscape.com 54193af6af allow mouse event coordinates to be accessed with d&d events in addition to mouse events, since d&d events have the same structure as mouse events. (r=joki). 1999-11-02 01:38:01 +00:00
brendan%mozilla.org fe51b61664 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
troy%netscape.com a47e8db44b Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
rods%netscape.com 9903fdab4a The code that checked to see whether it should explicitly set focus on the gfx's containing widget
now uget the new focused content's frame instead of using the mCurrentTarget. The mCurrentTarget
is correct for a mouse down but incorrect for a "tab". This is because the mCurrentTarget points at
the currently focused content for a tab event, instead of the new content.
r=joki, bug 11162
1999-10-19 21:57:43 +00:00
buster%netscape.com 27c06f0a19 no bug number, part of webshell cleanup. nsIWebShell.h was needlessly included, so I removed it
trivial change, no reviewer.
1999-10-15 13:34:45 +00:00
kipp%netscape.com f9c3c010dc Removed two more warnings 1999-10-15 00:29:28 +00:00
ftang%netscape.com bd9000ea54 landing keyEvent_19991004_BRANCH
bugs # see the log of the check in into branch
author/reviewer:
mozilla/layout/base/src/nsRangeList.cpp brade/mjudge
mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp brade/ftang
mozilla/layout/events/src/nsDOMEvent.cpp brade/joki
mozilla/layout/events/src/nsEventStateManager.cpp brade/joki
mozilla/widget/public/nsGUIEvent.h akkana/ftang
mozilla/widget/src/windows/nsWindow.cpp ftang/mjudge
mozilla/widget/src/windows/nsWindow.h ftang/mjudge
mozilla/widget/src/mac/nsTextAreaWidget.cpp brade/ftang
mozilla/widget/src/mac/nsMacEventHandler.cpp brade/simon
mozilla/widget/src/xpwidgets/nsKeyBindMgr.cpp brade/ftang
mozilla/widget/src/gtk/nsGtkEventHandler.cpp akkana/?
mozilla/widget/src/gtk/nsWidget.cpp erik/ftang
mozilla/layout/xul/base/src/nsTreeCellFrame.cpp brade/ftang
mozilla/editor/base/nsEditorEventListeners.cpp brade/akkana
mozilla/editor/base/nsHTMLEditor.cpp brade/akkana
mozilla/rdf/content/src/nsXULKeyListener.cpp ftang/saari
fix the master bug- 15693
fix at least, but not limited to, the following bugs
10158,11956,6053,9333,10901,14348,6449,11845,13016,14410,15657,15307,15842,13856
1999-10-14 18:27:01 +00:00
vidur%netscape.com 8b5a3290c2 Fix for bug 15772. Check that a content node is part of the document tree before dispatching a blur event to it. R=joki 1999-10-13 04:19:26 +00:00
mjudge%netscape.com 21ba41e280 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling. get position not a valid call anymore to nsIFrame.h 1999-10-13 01:16:09 +00:00
kipp%netscape.com b0dcc883f8 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
rods%netscape.com 6eeeaff2b0 Added ConsumeFocusEvents method to consume all focus event and make sure they don't get dispatched 1999-09-30 11:40:42 +00:00
mscott%netscape.com 06e3be3316 Bug #14816 --> we were leaking a nsIPrincipal object in AddScriptEventListener which could be remedied using a nsCOMPtr.
Also clean up for insufficient rv useage, un-commoned JSPRINCIPALS_DROP and improving the control flow for readability.

These changes are actually Brendan's...i'm checking this in on his behalf.
r=mscott. a=brendan
1999-09-24 06:49:33 +00:00
joki%netscape.com 3f574efaed Various fixes to prevent casting events to the wrong struct subtypes when queried 1999-09-22 06:30:01 +00:00
joki%netscape.com e9e44594ea Fix scrolling via home/end keys to scroll to beginning and end of doc 1999-09-22 06:28:57 +00:00
joki%netscape.com de1d4abc32 Adding support for event.clickCount, obsoleting old dblclick event. 1999-09-22 02:29:33 +00:00
saari%netscape.com 6df67e6af3 Changing broadcaster to use onbroadcast instead of oncommand. Adding the "braodcast" "commandupdate" and "input" events. Changed all xul observes nodes to use onbroadcast instead of onchange. 1999-09-21 23:02:35 +00:00
joki%netscape.com c681d323f9 Fix bug 6258, release of null content pointer due to reentrant event 1999-09-21 19:00:55 +00:00
joki%netscape.com 70f5a105ba Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_* 1999-09-21 14:18:52 +00:00
rods%netscape.com 08772dcc17 nailed again by nsCOMPtr 1999-09-20 22:56:32 +00:00
rods%netscape.com 0617191a4b Added code to make sure that focus gets set on the window for mouse down 1999-09-20 22:18:57 +00:00
kipp%netscape.com f070557a7b Squish a warning 1999-09-17 20:15:09 +00:00
kipp%netscape.com f4f55d27e9 Fixed a memory leak triggered by clicking on content 1999-09-16 14:54:59 +00:00
briano%netscape.com cfc3c850ed General cleanup. 1999-09-14 01:02:20 +00:00
evaughan%netscape.com e1376a8aac 1) Fixed bugs in deck
2) Added visual debugging to boxes
1999-09-10 00:57:01 +00:00
pinkerton%netscape.com 4253eccc3d clean up some d&d stuff. 1999-09-09 00:28:23 +00:00
pinkerton%netscape.com eeff4ac0c8 fix a bug where capturers would not be called when the event was sent directly to a dom node. clean up of a little d&d stuff. 1999-09-09 00:28:11 +00:00
bruce%cybersight.com 0fa9eca4e6 Replace delete[] for char* data with nsCRT::free(). 1999-09-03 07:20:03 +00:00
kipp%netscape.com b45ac1b43d Eliminate a uselss string copy 1999-09-03 03:45:44 +00:00
sspitzer%netscape.com b436341b23 bulletproofing to prevent the crash I reported in bug #13007. assert is better than a crash any day. 1999-09-02 07:22:47 +00:00
pinkerton%netscape.com ac764c05e8 exposing drag and drop events to JS. 1999-09-02 03:51:03 +00:00
cyeh%netscape.com 26effbde96 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
kipp%netscape.com 1677a4153a Removed GetRC code 1999-09-01 01:00:59 +00:00
briano%netscape.com e5e316ce8a General cleanup. 1999-09-01 00:47:39 +00:00
tague%netscape.com d22744e0e1 Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX. 1999-08-31 01:20:32 +00:00
norris%netscape.com 59b4dc8374 * clean up nsScriptSecurityManager
* remove nsJSSecurityManager
* save principals in nsIChannels and nsIDocuments
1999-08-29 21:58:42 +00:00
brade%netscape.com c72c32d904 change error messages to flag inappropriate uses of GetCharCode 1999-08-27 14:16:44 +00:00
ramiro%netscape.com 877421b755 lower the volume on printf noise. 1999-08-27 09:38:44 +00:00
hyatt%netscape.com a8e9e9ed7b Fix for typing bustage in editor. 1999-08-24 09:37:28 +00:00
hyatt%netscape.com 52642de419 Making focus changes on mouse downs crawl up a parent chain to find the nearest
enclosing focusable content.  Allows composite widgets to still receive the focus.
1999-08-24 00:42:38 +00:00
hyatt%netscape.com ad2134d3e9 Renaming onaction to oncommand. Also adding getIID to nsIFocusableContent, since
I'll need to be using that later on.
1999-08-20 22:56:15 +00:00
arielb%netscape.com bb8560101c includes updates to codbase matching security checks currently turned off
but in place.  redefined the script security manager in caps and it is
now generating codebase principals.
1999-08-20 09:51:02 +00:00
pinkerton%netscape.com 2cf337632e add drag_gesture event. 1999-08-19 19:48:45 +00:00
joki%netscape.com da36d40b61 Adding new onselect event. Also slight modification to ender text widget focus behavior 1999-08-07 23:18:35 +00:00
tague%netscape.com 59c80d1df9 Fix build bustage 1999-08-06 03:10:14 +00:00
tague%netscape.com 1e3c4f5ac5 Added support for replies from private DOM text events. See bug #4826 1999-08-06 02:32:13 +00:00
joki%netscape.com 37bfd24b93 Partial fixes for focus/blur events on windows/frames, fixes for incorrect event.target values 1999-07-27 20:55:03 +00:00
joki%netscape.com 73a006aee8 Fixing key value for ctrl+keys. 1999-07-27 14:38:07 +00:00
joki%netscape.com deb676cd44 Event fixes to allow key event handling by GFX widgets and fixes for window.defaultStatus. 1999-07-26 15:02:19 +00:00
hyatt%netscape.com f07e2fc1c0 Adding a menu listener to the DOM for XUL menus. 1999-07-26 09:18:31 +00:00
joki%netscape.com f53129fd19 Checking in fix for tab navigation submitted by alex@cendio.se 1999-07-19 21:23:57 +00:00
joki%netscape.com 0af283b8e2 Updating DOM event apis and changing behavior to properly respect capturing, bubbling, and cancellation methods. 1999-07-19 19:54:34 +00:00
mjudge%netscape.com 7ddf8fee55 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape. 1999-07-18 02:27:19 +00:00
tague%netscape.com e1cd6e87e7 Fixed bug #8227 deref errors in tempDOMTextRange 1999-07-14 21:10:55 +00:00
pinkerton%netscape.com 48f925b5fe rewite GetScreen* to use nsIWidget::WidgetToScreen(), which actually will work under linux and mac. (rev pavlov, appr cyeh). Bug #9114. 1999-07-07 22:40:22 +00:00
norris%netscape.com fc9729ccd2 Tom Pixley's code for the beginnings of DOM security, with a fix for the previous Mac link failure. 1999-07-07 07:50:03 +00:00
joki%netscape.com 0dc1a5f2fe Partial fix for bug 8123, handle spacebar scrolling on keypress, not keydown 1999-07-06 22:55:46 +00:00
joki%netscape.com cc8b77b488 Backing out js security changes. 1999-07-01 13:03:35 +00:00
joki%netscape.com 5056a89212 New JavaScript/DOM security stuff. 1999-07-01 10:38:26 +00:00
pinkerton%netscape.com ffbfc70557 filled in widget, clickCount, and mouse location for mouse enter/exit/over and drag enter/exit/over events. This info was just not getting set as it was for mouse clicks. 1999-07-01 04:12:42 +00:00
pinkerton%netscape.com 04ba4da225 don't crash if parent is null when asking for mouse coordinates. 1999-07-01 03:26:43 +00:00
waterson%netscape.com 602b1c37bf Add GetIID(). 1999-06-30 19:28:16 +00:00
tague%netscape.com b40147fcc6 Added clause and selection support for Input Methods. Fixes bug #8639, #8459, #6989, #7824 1999-06-29 20:31:22 +00:00
warren%netscape.com f6b9d3a028 Necko ifdefs for layout and rdf. 1999-06-26 06:36:26 +00:00
rods%netscape.com f3326fbb16 Fixed clearing of state for setting style for mouse hover and dragOver Bug #3175
Added support for DROP to force a style change.
1999-06-22 14:20:14 +00:00
saari%netscape.com d11469e740 Fixing Bug #8328, keybinding fix 1999-06-17 01:48:22 +00:00
joki%netscape.com e66208d1da Fix for bug 8270. A:chofmann Reenable key events to control tabbing/scrolling 1999-06-16 22:52:16 +00:00
joki%netscape.com 89aba0400e Fixing event clientx/y coords to have the right value even in subviews 1999-06-16 04:39:51 +00:00
joki%netscape.com 33ed7f5b51 Fixes for event going to frames which have changes as a result of other event handlers. (loosely bug 1283) 1999-06-15 03:14:28 +00:00
tague%netscape.com 0e826155a7 Fixed conditional problem when i turned on my keyobard patch. 1999-06-14 04:39:03 +00:00
tague%netscape.com 7640929c5a Turned on bug fix for #6896: Windows editorinterprets the period key as a forward delete. 1999-06-13 21:13:12 +00:00
mjudge%netscape.com 1e4bbda958 fixing table selection again. also adding parameter to nsIFocusTracker that allows us to get the current caret location. I am also stopping nsTableRowFrame from putting blue border around itself since cells are a high enough granularity. made a change to nsIFrame GetPosition to remove some useless parameters ect. this caused me to change nsDOMEvent.cpp and some other places.
MJ
1999-06-10 21:08:17 +00:00
hyatt%netscape.com cb12cfde0e Fixing build bustage. 1999-06-09 07:51:52 +00:00
joki%netscape.com b63a729e33 Fixing event coordinates to give screen based info. Also fixing direct reference to frames via their names. 1999-06-09 07:38:26 +00:00
tague%netscape.com 3f79fc52e2 Conditional fix for #7629. Only builds with a conditional set in my environment 1999-06-09 03:17:56 +00:00
hyatt%netscape.com 8a979e092e Changed events names to "create" and "destroy". 1999-06-09 01:11:22 +00:00
joki%netscape.com e298ea1f6c Fixing coords for click event since by not setting them at all before they were unlikely to be correct. 1999-06-08 19:28:52 +00:00
joki%netscape.com d3e02af6be Fix hover state crash at document change. Bug 6580 1999-06-08 19:01:56 +00:00
hyatt%netscape.com 38576d64e3 Added construct and destruct events to the DOM. 1999-06-08 05:10:13 +00:00
joki%netscape.com 6f1a265019 Adding new method to nsIDOMNSUIEvent to give event pos as range offset. 1999-06-08 02:19:26 +00:00
beard%netscape.com ebb42e275f bug #7354: arrow key scrolling, force the update to deal with different event priorities. 1999-05-31 01:45:23 +00:00
waterson%netscape.com ca3211269e More bug 6823. Need to have a GetIID() on nsIEventListenerManager. 1999-05-21 21:22:02 +00:00
hyatt%netscape.com 8fb2c9835b Fix for the regression described in bug 6823. 1999-05-21 19:27:02 +00:00
joki%netscape.com 056cdbbf1d Partial fix for 3289, reduce number of repaints/reflow when mousing over toolbar buttons. A:chofmann 1999-05-19 23:28:18 +00:00
joki%netscape.com 022a0e65af Breaking nsIDOMEvent out into nsIDOMEvent and nsIDOMUIEvent. 1999-05-18 23:51:04 +00:00
mjudge%netscape.com 85afd8f29d massive checkin for selection modifications and removing static state variables for selection in nsFrame.h. 1999-05-07 21:12:59 +00:00
jdunn%netscape.com 646d190bf0 Add newline to end of file. HP chokes without it. 1999-05-07 19:37:48 +00:00
cyeh%netscape.com 8f54a21774 backout mjudge checkin against closed tree. it also breaks mac as well, so
mjudge will try again when tree reopens
1999-05-05 23:05:41 +00:00
mjudge%netscape.com 1eca325862 updating new state controler for mouse status. aka dragging has stopped 1999-05-05 22:28:51 +00:00
rods%netscape.com 2ffa4c5b0f Added Drag Over to act like "hover" 1999-05-04 14:44:51 +00:00
tague%netscape.com b23c932029 Fixed bug #5527 (Editor is not able to accumulate successive Japanese input) 1999-05-03 22:57:48 +00:00
joki%netscape.com 91c2b2ba1f Adding scrolling fixes to fix bug #3999, A: chofmann 1999-04-30 19:38:39 +00:00
pinkerton%netscape.com 013355114c pinkerton/scc. appr chofmann. Bug #4127, et al. Fixing ownership models (more work to come). 1999-04-30 09:04:36 +00:00
kipp%netscape.com 4bc35ca479 Removed compiler warnings 1999-04-27 22:14:17 +00:00
peterl%netscape.com 6dfc2393e1 modified state change notifications to use new wider api and reduce calls 1999-04-20 00:03:30 +00:00
bruce%cybersight.com f8a99e7dff Adding blank lines for native compilers. 1999-04-13 06:35:42 +00:00
joki%netscape.com 93c5d84ae7 Send Click events to frames as well as content. 1999-04-13 00:27:58 +00:00
joki%netscape.com 26b45c4762 New api's into nsEventStateManager for content state change (hover,focus,active) 1999-04-12 21:24:07 +00:00
joki%netscape.com 0f13cc10c3 Event name change to remove unnecessary prefix. 1999-04-12 21:17:07 +00:00
rods%netscape.com f2163f303d Added support to handle Drag & Drop events 1999-04-06 20:24:05 +00:00