3607 Commits

Author SHA1 Message Date
kin%netscape.com
9d69384546 Fix for bug 83650 (textarea control has problems with caret positioning at end)
and bug 97207 (textarea pastes sometimes misplaced by failing to reposition).

  - Added new utility method GetOriginToViewOffset().

  - Modified nsPresShell::HandleEvent(), nsBoxFrame::GetFrameForPoint(),
    and nsContainerFrame::GetFrameForPointUsing() to factor in the
    offset from GetOriginToViewOffset() to insure that the point
    used is always transformed into the correct coordinate system.

Files modified:

    mozilla/layout/base/public/nsIFrame.h
    mozilla/layout/html/base/src/nsContainerFrame.cpp
    mozilla/layout/html/base/src/nsFrame.cpp
    mozilla/layout/html/base/src/nsFrame.h
    mozilla/layout/html/base/src/nsPresShell.cpp
    mozilla/layout/xul/base/src/nsBoxFrame.cpp

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


git-svn-id: svn://10.0.0.236/trunk@113914 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 22:39:15 +00:00
rods%netscape.com
412b45015d More streamline approach to discovering if there is at least one printer.
And if the printer name is not set, then it gets the default printer and uses
that. instead.
This fixes remembering the last printer that was used and it also
enables you to to set the printer name and print silently (instead of silent
always having to use the default printer)
Bug 123335 sr=hyatt r=dcone


git-svn-id: svn://10.0.0.236/trunk@113783 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 13:04:47 +00:00
jst%netscape.com
a49bb992db Fixing bug 116834. Making element.innerHTML='...<script>...</script>...' not execute the script, this makes mozilla compatible with IE wrt innerHTML and execution of scripts. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113684 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:53:56 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +00:00
hyatt%netscape.com
cdc7d6d6d8 Fix Macho and Cocoa horkage because of a missing ifdef.
git-svn-id: svn://10.0.0.236/trunk@113597 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 10:56:42 +00:00
alecf%netscape.com
43bee42ecd more dependency updates
git-svn-id: svn://10.0.0.236/trunk@113536 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 21:29:01 +00:00
rods%netscape.com
20b4083174 1) Removes the arg of nsIDOMWindow in the nsIWebBrowserPrint calls
2) Adds a couple of new methods and an attr to nsIWebBrowserPrint (navigate, is frameset, & exitPP)
3) Removes all but one method from nsIContentViewerFile.idl/h the remaining call is for print regression testing
4) Removes the "static" implementation of nsIContentViewerFile.h
5) Fixed up nsIContentViewerFile.idl and turned it back on so it is now generating the header file
6) Removed all uses of nsIContentViewerFile.h except for the WebCrawler (uses it for Printing Regression testing)
7) nsDocumentViewer.cpp now implements nsIWebBrowserPrint.idl this makes it easier to add new print functionality in one place
8) You can now ask an instance of the ContentViewer for a nsIWebBrowserPrint to do printing (it retruns the nsIWebBrowserPrint interface implemented by the nsDocumentViewer)
9) Anybody who was using nsIContentViewerFile to print will now use nsIWebBrowserPrint
10) You can now do a "GetInterface()" on a GlobalWindow for a nsIWebBrowserPrint
11) The browser UI now uses the GetInterface on the GlobalWindow to get a nsIWebBrowserPrint object to do printing and this can be used for all printing functionality
Bug 120622 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113419 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:52:11 +00:00
cathleen%netscape.com
dd8ebc5bd1 eliminate nsCRT::zero() to use memset to zero instead, bug 118135, r=dp sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113183 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:55:57 +00:00
bryner%netscape.com
c76cc7e915 Bug 122512 - make sure we don't construct inline frames for children of a select (size > 1) widget when using xbl form controls. r=hewitt,sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113173 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 01:38:55 +00:00
timeless%mac.com
6436523048 Bug 120221 Make |NS_ERROR_GFX_PRINTER_INVALID_ATTRIBUTE| more specific
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113094 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:03:56 +00:00
timeless%mac.com
524c7f9717 Bug 120911 Crash while printing due lousy error checking
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=jag


git-svn-id: svn://10.0.0.236/trunk@113092 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:59:12 +00:00
waterson%netscape.com
3ddde9bd8f Bug 102860. Relatively positioned frames do not have place-holders. r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@113068 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:03:31 +00:00
waterson%netscape.com
3229841ba0 Bug 121860. Handle case where block frame is embedded inside a XUL document. r=dbaron, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113067 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:02:25 +00:00
bryner%netscape.com
89e99954e4 Bug 112716 - implement checkbox in XBL. r=jkeiser, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@113064 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:48:16 +00:00
cathleen%netscape.com
3fcee4d2a1 remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers
and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp


git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:04:45 +00:00
pinkerton%netscape.com
64fdca15fd changes for cocoa product to build and run and coexist in the tree with carbon. r=cls/sr=hyatt, bug# 111230
git-svn-id: svn://10.0.0.236/trunk@112880 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:01:41 +00:00
rods%netscape.com
fb493821d3 Adding new Frame to clip content area of page for Printing and PrintPreview
Bug 112698 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112856 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 14:30:14 +00:00
rbs%maths.uq.edu.au
f498083779 Improvements to <mtable> to fix bug 39411. Here are the additional hooks needed in the frame construction code, (I also left some aliases that I can change later in nsMathMLParts.h), bug 120487, r=karnaze, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112847 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 07:14:07 +00:00
rods%netscape.com
79189d5997 Adding new Frame to clip content area of page for Printing and PrintPreview
Bug 112698 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112828 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:32:19 +00:00
waterson%netscape.com
0ba428ed90 Bug 99691. nsBoxToBlockAdaptor shouldn't be creating space managers; instead, fix XUL <label> and <description> elements to create area frames. r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112749 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:34:25 +00:00
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
hyatt%netscape.com
a86f57efd9 Fix for 115919, r=dbaron for me, r=hyatt for dbaron, sr=brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@112514 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:36:50 +00:00
hyatt%netscape.com
3f1f498838 Fix for 115919, r=dbaron for me, r=hyatt for dbaron, sr=brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@112513 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:30:28 +00:00
rods%netscape.com
960c55cb43 PersShell needs to be created via the document->CreateShell, or the document doesn't know about it
and this means there would be no Primary PresShell in the document
Bug 114139 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@112390 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 15:04:54 +00:00
rods%netscape.com
84207de06a turns on scaling and fixes it
Bug 120075 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112278 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:11:28 +00:00
rods%netscape.com
63c4896929 Getting rid of event processor, it is no longer needed and will fix this problem
109566  r=kmcclusk sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112270 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:02:35 +00:00
varga%utcru.sk
763dd8095d Fixes for:
94653  - can't right align text in outliner cell
95730  - White block displays/artifacts in the highlight area after Move/Drag mail to folder.
112238 - [RFE] Outliner widget should support line-through
116855 - Modify outliner builder syntax to match outliner content model
118093 - Make -moz-image-region work in the outliner
118113 - Too little space between pref category tree and pref page
118154 - Category now has a column picker
118647 - Memory leak of 52 bytes from 1 block allocated in nsOutlinerBodyFrame::CheckVerticalOverflow
118660 - left arrow no longer moves to parent category
119751 - Branches are open by default and then closed after launch.

- outermost <outlinerchildren> has "-moz-box-flex: 1" by default
  and it actaully replaced <outlinerbody>
- all event handlers moved on <outliner>
- content builder, outliner builder and content view use <outliner> as root
  element
- nsIBoxObject has a new attribute "element"
- all CSS rules outlinerbody:foo replaced with outlinerchildren:foo
- drop feedback is now skinable

r=waterson for the changes in mozilla/content
r=sspitzer on the mailnews parts
r=blake on the bookmarks/history
r=bryner on the OutlinerBodyFrame and OutlinerContentView changes

sr=hyatt,hewitt


git-svn-id: svn://10.0.0.236/trunk@112268 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:01:28 +00:00
dcone%netscape.com
a7aea2a7d6 Fix print preview. r=rods sr = attinasi bug =117072. Only control backgrounds painting for printing.
git-svn-id: svn://10.0.0.236/trunk@112201 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:37:15 +00:00
attinasi%netscape.com
779d9368ff Fixed problems with reframing recursively due to block-in-inline frames and content appended notifications. r=karnaze sr=waterson b=56894
git-svn-id: svn://10.0.0.236/trunk@112109 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:05:26 +00:00
dbaron%fas.harvard.edu
45b310844b Make sure backgrounds are painted correctly by using the correct background to set up information on the view. b=119462 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112071 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 15:00:30 +00:00
pierre%netscape.com
1617fcb71c 103594 "Clean up colors prefs code in nsPresShell". Remove PREFS_USE_OVERRIDE, insert the pref sheet at the
beginning of the User level. r=glazman+fantasai/sr-attinasi


git-svn-id: svn://10.0.0.236/trunk@112069 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 14:47:21 +00:00
bzbarsky%mit.edu
df8173369a Change some users of GetAttr to HasAttr instead. Bug 113564, r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112041 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 04:03:52 +00:00
rods%netscape.com
ce2a82ca0c This enables platforms to set a pref as to whether they allow print from print preview.
Bug 118623 r=roland sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112025 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:58:46 +00:00
rods%netscape.com
525bcc3d53 Better error failure when certain types of error occur during printing
No longer tries to print IFrames or other sub-documents with display:none
Sets title and url into PrintService from PrintSettings
Sets "IsCancelled" on PrintSettings/Service when Print Dialog is cancelled (patr of 118017)
Bug 117894 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112021 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:31:05 +00:00
cathleen%netscape.com
ea31156ed0 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
hewitt%netscape.com
72a8b46e4a 70858 - [XUL 1.0] Implement <listbox>, r=evaugahn, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@111995 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:18:10 +00:00
dbaron%fas.harvard.edu
307538c3e3 Do restoration of information in the layout history state immediately after frame initialization rather than using separate code within PresShell::ContentAppended that calls GetPrimaryFrameFor (which is slow and forces every frame into the primary frame map, inefficiently). b=109428 r=rods sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111960 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 20:10:46 +00:00
dbaron%fas.harvard.edu
f071fe9f2c Fix background painting as the default color while leaving a page. b=118867 r=sfraser sr=jst
git-svn-id: svn://10.0.0.236/trunk@111952 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 19:38:21 +00:00
rods%netscape.com
ce096ce41e reflow was using the wrong DC to rendering context for PP
now cropping progress title to 64 chars with elipse o the front
BUg 117745,118729 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@111940 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 11:59:00 +00:00
brade%netscape.com
9de532d67f remove unused statics kEventQueueServiceCID, kEventQueueService and kScrollingViewCID for gain of 48 bytes (bug 117927; r/sr=jst,darin)
git-svn-id: svn://10.0.0.236/trunk@111809 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 14:05:55 +00:00
rbs%maths.uq.edu.au
13b4696963 Grab a low hanging perf fruit by switching to an API that doesn't copy the font, b=118918, r=dbaron, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111752 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 00:04:35 +00:00
dbaron%fas.harvard.edu
8897c8f5b7 Backing out Bernd's checkin for bug 110596 to fix crashes / weird display. b=118991 r=bernd
git-svn-id: svn://10.0.0.236/trunk@111718 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:17:46 +00:00
brade%netscape.com
5028888db3 remove unused statics kCRangeCID, kCClipboardCID, kCTransferableCID, and kHTMLConvertCID for savings of 64 bytes (bug 117927; rs=glazou)
git-svn-id: svn://10.0.0.236/trunk@111705 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 15:52:36 +00:00
brade%netscape.com
c834c500ad remove unused statics kHTMLImageElementCID and kIStyleFrameConstructionIID saving 32 bytes (bug 117927; rs=glazou)
git-svn-id: svn://10.0.0.236/trunk@111700 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 15:45:50 +00:00
brade%netscape.com
813522188b remove/comment out unused statics kTextEncoderCID and kUBidiUtilCID (bug 117927; rs=glazou)
git-svn-id: svn://10.0.0.236/trunk@111691 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 15:37:11 +00:00
aaronl%netscape.com
d7044d9fdc Last part of fix for bug 118633 - null frame checks. r=jgaunt, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@111659 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 10:53:57 +00:00
dbaron%fas.harvard.edu
b152ba9386 Fix crash on certain pages. b=118829 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111634 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 02:36:49 +00:00
dbaron%fas.harvard.edu
7a38a8af9d Remove unused and incorrect code, clean up some other similar code. b=116301 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@111572 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 15:13:02 +00:00
dbaron%fas.harvard.edu
12b1cb7058 Remove bogus/noisy assertion. b=118676 / 116161
git-svn-id: svn://10.0.0.236/trunk@111549 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 04:11:25 +00:00
rods%netscape.com
83e05b8638 Improved printing error detection and notification
Now gets Doc Title and URL from PrintSettings and uses it instead of
the actual values.
Bugs 86378 & 118637 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@111524 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 01:17:40 +00:00