839 Commits

Author SHA1 Message Date
glazman%netscape.com
3e99b94dc6 remove a few lines of code that landed by mistake and cause trouble with embedded editor; b=195800, r=brade; sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@138831 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 02:14:19 +00:00
sfraser%netscape.com
2636d9a8d0 Fix bug 74404: show caret drag feedback. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@138640 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 23:09:51 +00:00
kin%netscape.com
f00ce92bef Fix for bug 191762 (dragged image doesn't land where it's dropped)
editor/libeditor/base/nsSelectionState.cpp

  - Reworked the logic in SelAdjJoinNodes() to avoid adding aOldLeftNodeLength twice to the calculated offset when the start/end node is the parent.

editor/libeditor/html/nsHTMLDataTransfer.cpp
editor/libeditor/text/nsPlaintextDataTransfer.cpp

  - Modified the InsertFromDrop() to use an nsAutoTrackDOMPoint, instead of relying on range gravity, to calculate the correct insert position after deleting the current selection.

r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@138611 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 14:53:03 +00:00
glazman%netscape.com
aa100a61e3 missing files for b=47066, r=brade,cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@138322 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 10:18:18 +00:00
glazman%netscape.com
20124c5607 Allow mouse-driven resizing of images and tables in all instances of editor.
For the default Mozilla build, this includes Composer and Mail Composition.
Embeddors willing to disable this feature should look at |nsHTMLEditor::SetIsImageResizingEnabled()|
Displays eight resizing handles plus an info box. Images are resized real-time.
Uses HTML attributes in pure HTML mode (mail composition for instance) and CSS properties when available.
Undoable and Redoable. Does not grind coffe and make a good expresso yet.
Thanks if you really read to that line.

b=47066, r=brade, r=cmanske (for the algo part inheriting from the XBL patch), sr=kin


git-svn-id: svn://10.0.0.236/trunk@138320 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 09:37:18 +00:00
jkeiser%netscape.com
67e45eafda Make double-click on text in composer select word again (bug 193689), r=bryner@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@138161 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 08:12:11 +00:00
jkeiser%netscape.com
e7babfc916 Make text drag work again (bug 193568), r=bryner@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@138160 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 08:10:46 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
neil%parkwaycc.co.uk
e5ced298f4 Bug 87321 Shift+Tab has duplicate behavior (event handled twice in message compose) r=brade sr=sspitzer a=asa
git-svn-id: svn://10.0.0.236/trunk@137374 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-04 12:12:55 +00:00
neil%parkwaycc.co.uk
0474b9cedd Bug 186195 Space disappears when editing a word at the end of a block p=jfrancis r=brade sr=kin a=asa
git-svn-id: svn://10.0.0.236/trunk@137316 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-03 11:47:13 +00:00
darin%netscape.com
917e73bcc9 fixing more mac build bustage
git-svn-id: svn://10.0.0.236/trunk@136578 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 04:21:04 +00:00
cbiesinger%web.de
ab918f2bcc remove ifdefs for IBMBIDI from editor, bug 89203 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@136503 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 11:11:10 +00:00
timeless%mozdev.org
32c89381cf Bug 186668 nsWSRunObject::DeleteChars uses a constant Count() while removing elements
r=jfrancis sr=bz


git-svn-id: svn://10.0.0.236/trunk@136425 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 19:27:50 +00:00
jst%netscape.com
1b18cf1dd9 Fixing bug 161166. Freezing more DOM interfaces. r=harishd@netscape.com, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@136338 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 23:05:52 +00:00
jfrancis%netscape.com
4022311d03 fix for 187662: first return in empty doc does nothing. r=brade; sr=kin
git-svn-id: svn://10.0.0.236/trunk@136180 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-11 00:06:29 +00:00
glazman%netscape.com
441e361f9b just removing useless duplicate code; b=188486, r=Neil, r=brade, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@136159 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-10 13:46:44 +00:00
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
daa2fa4b45 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135995 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:51:43 +00:00
dbaron%dbaron.org
0653a5fa91 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135993 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:35:36 +00:00
jfrancis%netscape.com
dab8e009ec editor fixes for:
180034 editor should respect the select_all style
183836 New list item should not reset inline styles
179384 Merging blocks via forward delete sends selection to front of document
98434 IME does not work correctly at the last characters in the text field  (patch courtesy of Shotaro Kamio)

r=jfrancis,brade,cmanske   sr=kin


git-svn-id: svn://10.0.0.236/trunk@135560 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 01:51:14 +00:00
glazman%netscape.com
788b006f2d Text alignment feedback erroneous in Composer; b=183887, r=jfrancis, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@135496 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-19 14:10:50 +00:00
glazman%netscape.com
9f5bf2939f fixing bustage, so it was not my last checkin...
git-svn-id: svn://10.0.0.236/trunk@135237 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 10:17:42 +00:00
glazman%netscape.com
ee3dc59fbf fixing regression in composer, it was impossible to set foreground and background color; b=184505, r=brade, sr=kin, q=is this my last checkin?
git-svn-id: svn://10.0.0.236/trunk@135236 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 08:56:21 +00:00
jfrancis%netscape.com
131cbc2ca0 fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa
git-svn-id: svn://10.0.0.236/trunk@135154 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 01:05:53 +00:00
sdagley%netscape.com
a36940e1dc Backing out jfrancis - back to v1.67
git-svn-id: svn://10.0.0.236/trunk@135064 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 20:24:49 +00:00
jfrancis%netscape.com
8f704205ad fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa
git-svn-id: svn://10.0.0.236/trunk@135043 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 18:32:58 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
cmanske%netscape.com
39d3f98587 Move caret to text position with rt click. b=181547, r=rods, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@134597 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-30 18:59:34 +00:00
cmanske%netscape.com
a4776ceb5a Added command to notify when document url changes. b=181091, r=akkana, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@134507 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-27 00:35:09 +00:00
akkana%netscape.com
d8f411eac7 110378: Don't lose data when head is rewritten to HEAD. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@134497 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-26 22:15:30 +00:00
glazman%netscape.com
0102abbeab Coalesce similar inline nodes in Composer's CSS mode; b=179055, r=jfrancis, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@134401 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 13:41:26 +00:00
sicking%bigfoot.com
441830f1fb Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz


git-svn-id: svn://10.0.0.236/trunk@134400 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 12:44:03 +00:00
caillon%returnzero.com
9641b989dd Bug 181442 - Convert editor's pref usage to the new pref APIs.
r=brade sr=kin


git-svn-id: svn://10.0.0.236/trunk@134351 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 01:26:58 +00:00
jfrancis%netscape.com
8247e85525 fix for 142855: cf_html paste functionality. r=brade,cmanske; sr=kin
git-svn-id: svn://10.0.0.236/trunk@134304 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 03:30:59 +00:00
jfrancis%netscape.com
940908cb67 reland fix for 174017: Multiple enters after quoted text does not move cursor; r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@134296 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 01:03:08 +00:00
kin%netscape.com
9b97540558 Fix for bug 173553: flawfinder warnings in editor/libeditor/html/nsHTMLEditorLog.cpp
Changed all occurrences of sprintf() to snprintf(). Removed format arg from WriteInt().

r=brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@134044 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 15:43:19 +00:00
jfrancis%netscape.com
e5288c6ffc 152419: Pressing ENTER after adding styles to text does not move caret to next line.
r=brade
sr=kin


git-svn-id: svn://10.0.0.236/trunk@133992 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 03:11:45 +00:00
jfrancis%netscape.com
490f165cd9 fix for 172147: URL in composition "decoration" continues on next line
r=brade
sr=kin


git-svn-id: svn://10.0.0.236/trunk@133989 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 01:37:29 +00:00
jfrancis%netscape.com
c408834454 fix for 143338: Word wrap of double space incorrect in HTML mailcompose
r=glazman
sr=kin


git-svn-id: svn://10.0.0.236/trunk@133988 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 01:25:30 +00:00
jfrancis%netscape.com
84f64636c3 fix for 101544: Text color does not change if change is made and no text is typed then the color is changed again. Also fixes 163712: changing font takes no action.
r=brade
sr=kin


git-svn-id: svn://10.0.0.236/trunk@133986 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 01:03:20 +00:00
bzbarsky%mit.edu
04bc7e2dbf Clean up some array stuff in editor; switch to nsCOMArray in a bunch of
places.  Bug 175564, r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@133685 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 19:40:11 +00:00
bryner%netscape.com
b345c67a0c 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.
git-svn-id: svn://10.0.0.236/trunk@133439 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 00:25:25 +00:00
glazman%netscape.com
aafb9a3250 inline styles were not merged after a SetInlineProperty() call; b=178667, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@133389 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 08:54:42 +00:00
jfrancis%netscape.com
41221abe84 64647: implement "Paste without Formatting"; r=akkana; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@133293 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 13:04:37 +00:00
jfrancis%netscape.com
b3dd2a097b fix for 174017: Multiple enters after quoted text does not move cursor; r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@133290 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 11:38:08 +00:00
jfrancis%netscape.com
408cabdd19 fix for 169586: Plaintext is always pasted in default font not the one in context. r=brade; sr=kin
git-svn-id: svn://10.0.0.236/trunk@133289 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 11:29:37 +00:00
jfrancis%netscape.com
303874b31f fix for 164060: Drop link into list item makes cursor jump to next item; r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@133288 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 11:26:26 +00:00
bryner%netscape.com
da718f1470 Bug 104371 - shiftKey not set correctly for keypress events, breaking shift+space binding. r=brade, bzbarsky, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@133250 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 03:34:13 +00:00
blizzard%redhat.com
6dc418b1ea Backout unapproved checkin for bug #104371.
git-svn-id: svn://10.0.0.236/trunk@132403 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 15:18:13 +00:00
hyatt%netscape.com
3dbbc65466 Fix for 104371, SHIFT not being set correctly in the DOM, i.e., the SHIFT+space
keybinding didn't work.  r=blizzard,brade sr=blake


git-svn-id: svn://10.0.0.236/trunk@132393 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 03:15:42 +00:00