504 Commits

Author SHA1 Message Date
bryner%brianryner.com
7ace3321e6 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 04:57:07 +00:00
jst%mozilla.jstenback.com
12ed685455 Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@151784 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 00:46:17 +00:00
neil%parkwaycc.co.uk
7082e58c32 Bug 231368 Remove unused nsIPref includes p=arne.anka@stupido.com r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151746 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-23 13:31:07 +00:00
bzbarsky%mit.edu
86fee95b4d Remove nsIHTMLContentContainer, merge those three functions into nsIDocument,
and make XUL style attribute dynamic changes get a proper CSSLoader off the
document. Bug 211376, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@151268 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 23:14:49 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
jst%mozilla.jstenback.com
2affc5b4f0 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(). r=jonas@sicking.cc, sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
bryner%brianryner.com
eeddf02bde 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.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
bzbarsky%mit.edu
62c2420626 Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
notifications).  Bug 200931, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@147516 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-02 21:29:40 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
uid502
e9d6a45b46 Bug 190735. Final patch for deCOMtamination of core nsIFrame methods! rs=dbaron
git-svn-id: svn://10.0.0.236/trunk@147169 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 17:05:29 +00:00
hpradhan%hotpop.com
09e0229647 Bug 219673 : Uninitialized variable in nsHTMLEditor r=glazman sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@147083 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-20 05:59:44 +00:00
dbaron%dbaron.org
2f071d5ceb Don't create style rule DOM wrappers for inline style, since we are not supposed to, and ours crash when used on inline style. b=218222 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@146845 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 19:18:52 +00:00
scott%scott-macgregor.org
d46792a502 Bug #216753 --> Message compose should not automatically convert HTML attributes to CSS styles.
Fix this by setting a flag in editor to not use CSS styles for the background image.

Then back out my fixes in mailnews to work around the inline style editor was giving us. 

With this change, mail compose now handles background images again and they are preserved when you save as draft 
or save as template.

r=neil
sr=bienvenu

a=glazman for the editor change

a=asa for 1.5 final


git-svn-id: svn://10.0.0.236/trunk@146578 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-05 17:49:36 +00:00
scott%scott-macgregor.org
d7cdc065d5 Note: the editor portion of this change is to a routine only used by mailnews.
Make mail news handle inline background url styles which is how editor now sets background urls instead of using the obsolete background attribute on the body:

Bug #116867 --> convert background images from file urls to inline cid urls and attach the image as an inline part.This allows thunderbird and mozilla mail to support background images again.

Bug #170504 --> Compose from template/draft containing "Inline Styles" and a background image loses the background image drops the
inline style.

r=bienvenu
sr=sspitzer
a=sspitzer


git-svn-id: svn://10.0.0.236/trunk@146154 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-18 05:18:05 +00:00
bzbarsky%mit.edu
9e4941c980 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145292 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:35:53 +00:00
brade%netscape.com
d200f43fee more Is* method usage / code cleanup; r=glazman, sr=bz, bug=212683
git-svn-id: svn://10.0.0.236/trunk@145274 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 20:31:08 +00:00
brade%netscape.com
7b542e3e34 cleanup of editor code, bug=209548, r=jfrancis, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@145270 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 13:13:50 +00:00
jaggernaut%netscape.com
e07c163859 Bug 213601: Switch some users of NS_NewAtom over to do_GetAtom. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145136 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 04:53:13 +00:00
brade%netscape.com
7809c706c3 reduce string usage by using atom version of method; r/sr=dbaron, bug=213101
git-svn-id: svn://10.0.0.236/trunk@144967 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-19 08:51:54 +00:00
brade%netscape.com
f90cd30f83 editor cleanup of NodeIsType; r=kin, sr=darin, bug=209548
git-svn-id: svn://10.0.0.236/trunk@144881 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-15 13:47:15 +00:00
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
brade%netscape.com
4d8f0dad73 editor code cleanup (use contract IDs); r=timeless; sr=kin; bug=209548
git-svn-id: svn://10.0.0.236/trunk@144579 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-08 20:22:56 +00:00
bzbarsky%mit.edu
50802bdf22 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@144415 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:45:34 +00:00
kin%netscape.com
752b792e95 jst@netscape.com's fix for tree blocker bug 210641 (Crash using Japanese IME)
mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp

    - Fixed INTERFACE_MAP macros so that they call through to the class we inherit from.

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


git-svn-id: svn://10.0.0.236/trunk@144154 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 19:21:59 +00:00
glazman%netscape.com
68de2ad1fd Support for Absolute Positioning, Snap to Grid, and Inline Table Editing in Composer
r=brade, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144144 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 08:50:48 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
glazman%netscape.com
3825cdfefa Composer's structure toolbar was showing anonymous content; b=190279, r=Neil, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@143931 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 14:06:05 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
glazman%netscape.com
95747f691f error in nsHTMLEditor::SetFlags(), has side-effects on CSS editing; b=209086, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@143673 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 12:39:35 +00:00
kaie%netscape.com
c217443fac b=202166 Edit actions place caret on invalid position
r=jfrancis sr=kin


git-svn-id: svn://10.0.0.236/trunk@143582 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 11:50:36 +00:00
jfrancis%netscape.com
bf700200ef bug 140357: (html editor) deletion should preserve style state. r=brade; sr=kin
git-svn-id: svn://10.0.0.236/trunk@143203 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-02 22:21:06 +00:00
timeless%mozdev.org
0e56e202cb Bug 199989 Remove gNoisy code from libeditor.
r=brade sr=alecf


git-svn-id: svn://10.0.0.236/trunk@142832 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:43:10 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
alecf%netscape.com
272139fbdf fix for bug 201982 - r=brade, sr=smfr
nsIEditProperty was an interface with no methods and only static members - moved it to an entirely static class.


git-svn-id: svn://10.0.0.236/trunk@141290 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 05:42:33 +00:00
kaie%netscape.com
1306f85f65 b=201974 Caret partially/completely visible with initial <p> </p>
r=jfrancis sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@141255 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 20:18:41 +00:00
kaie%netscape.com
7f3ff56e4b b=68767 extra blank space added when block level element (hr, table) is inserted at the end of a line, between two lines
r=jfrancis sr=kin


git-svn-id: svn://10.0.0.236/trunk@141196 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 20:53:15 +00:00
brade%netscape.com
7c86a6fce4 add insertion listener; bug 192567 (r=jfrancis, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@141181 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 14:07:30 +00:00
kin%netscape.com
85050dbdbe Fix for bug 200549:Double click selects just the image in a -moz-user-select:all
subtree


mozilla/editor/libeditor/html/nsHTMLEditor.cpp
    - jfrancis' fix for netscape bug 615240 (applying mozilla patch
      on branch. Fixing problems of improper handling of del and
      backspace keys with file attachments.) which was originally
      landed in revision 1.445.6.3. This patch is necessary to make
      the fix for bug 200549 work properly.

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


mozilla/editor/libeditor/html/nsHTMLEditorMouseListener.cpp
mozilla/editor/libeditor/html/nsHTMLEditorMouseListener.h

    - Modified nsHTMLEditorMouseListener::MouseDown() to
      call FindUserSelectAllNode() so that the root of a
      -moz-user-select:all subtree gets selected during
      a double or context click.

    - Modified nsHTMLEditorMouseListener so that it stores an nsHTMLEditor*
      instead of an nsIEditor* so we could have access to FindUserSelectAllNode().

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


git-svn-id: svn://10.0.0.236/trunk@140807 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 14:32:23 +00:00
kin%netscape.com
d43528516f Fixes for bug 192569 (allow foreign transactions to be added to the queue)
mozilla/editor/idl/nsIEditor.idl
mozilla/editor/libeditor/base/nsEditor.cpp
mozilla/editor/libeditor/base/PlaceholderTxn.cpp
mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp
mozilla/editor/libeditor/html/nsHTMLEditor.cpp
mozilla/editor/libeditor/text/nsTextEditRules.cpp

  - Renamed nsIEditor::Do() to nsIEditor::DoTransaction() so that it
    can be called from JavaScript.

  - Cleaned up nsEditor::Begin/EndUpdateViewBatch() so that
    nothing happens outside the check of mUpdateCount.

  - Modified PlaceholderTxn.cpp so that it checks to see
    if a merged transaction implements nsPIEditorTransaction
    before attempting to cast it to (EditorTxn*).

mozilla/editor/ui/composer/content/EditorCommandsDebug.js
mozilla/editor/ui/composer/content/editorOverlay.xul
mozilla/editor/ui/composer/locale/en-US/editorOverlay.dtd

  - Added debug menu items to test execution of foreign transactions
    via the txnmgr and editor.

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


git-svn-id: svn://10.0.0.236/trunk@140707 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 20:50:25 +00:00
sfraser%netscape.com
3bb2704dcc Remove nsIIndpendentSelection, moving its one method onto nsISelectionPrivate. Bug 192827. r/sr=kin.
git-svn-id: svn://10.0.0.236/trunk@140665 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 01:45:06 +00:00
brade%netscape.com
0c8c6bf3da require all users of htmleditor to have EditorOverride.css so resizing will work
; bug 196075; r=jfrancis, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@140634 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 08:05:23 +00:00
bryner%netscape.com
cf55de1ca0 Fix ctrl+enter in the mail compose window by getting rid of editor's key listeners in the client event pass entirely (everything now happens in the system event pass). r=brade, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@140541 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 03:31:18 +00:00
glazman%netscape.com
f981e4719a meta-fix for image and table resizing bugs in html editor
solves bugs 195412, 196624, 196122, 195849, 197158, 195141, 195126, 199013
r=brade, sr=kin


git-svn-id: svn://10.0.0.236/trunk@140251 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 15:24:08 +00:00
timeless%mozdev.org
0e5f07166f Bug 106386 rid source of misspellings
patch by nb@ipnode.info r=biesi sr=dmose


git-svn-id: svn://10.0.0.236/trunk@140130 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 04:15:34 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
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
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
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