243 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
03697b0f3a Bug 141900. Ensure that SetViewChildClip respects nsIClipView clipping. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122311 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:59:57 +00:00
joki%netscape.com
34048fc38a Fix for bug 78989, force focus events to go their corresponding view as opposed to using coordinate targeting which can be incorrect. r:roc+moz, sr:jst
git-svn-id: svn://10.0.0.236/trunk@118961 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-14 21:45:04 +00:00
pinkerton%netscape.com
f4f43a5220 turn off double-buffering on osx with a new method on nsIRenderingContext. r=kmcclusk/sr=sfraser/a=valeski. bug# 78764
git-svn-id: svn://10.0.0.236/trunk@118853 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 13:56:53 +00:00
kmcclusk%netscape.com
d5af536078 Fix off by one pixel scrolling errors running under 96DPI by replacing the damageRect.ScaleRoundOut(p2t) call with explicit conversion to twips because ScaleRoundOut introduced errors in the pixel to twips conversion. bug 120918; sr=attinasi r=dcone a=asa adt_a=paw
git-svn-id: svn://10.0.0.236/trunk@118852 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 13:43:32 +00:00
hyatt%netscape.com
9a2426429d Fix for 129893, cocoa changes to gfx/layout/view, r=pink, sr=ben
git-svn-id: svn://10.0.0.236/trunk@118820 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 02:05:12 +00:00
dbaron%fas.harvard.edu
cbd505bd3b Fix potential leak of view observer (pres shell). b=134664 r=roc+moz sr=jag
git-svn-id: svn://10.0.0.236/trunk@118711 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 03:26:30 +00:00
yokoyama%netscape.com
f45e9db993 Bug fix 130122
Needed to add code for IME key event (NS_IS_IME_EVENT())
Impact only on CJK keyboard input
/r=yokoyama, /sr=roc+moz, /a=asa, /adt+=jaime


git-svn-id: svn://10.0.0.236/trunk@118153 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 22:34:04 +00:00
roc+%cs.cmu.edu
530cbb2a98 Bug 131487. Fix semantics of GetViewFlags/SetViewFlags. r=kmcclusk,sr=attinasi,a=asa
git-svn-id: svn://10.0.0.236/trunk@117483 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 12:12:36 +00:00
roc+%cs.cmu.edu
f6a2ca2c5f Bug 128478. Don't let key events go through coordinate-based dispatching. r=kmcclusk,sr=kin,a=asa
git-svn-id: svn://10.0.0.236/trunk@117482 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 12:10:52 +00:00
roc+%cs.cmu.edu
f955e1d4be Fixing bustage. In time, the C++ standards committee will pay for their crimes.
git-svn-id: svn://10.0.0.236/trunk@116834 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:32:01 +00:00
roc+%cs.cmu.edu
cd6104bd5c Bug 124554. Make intelligent decisions about when to scroll using bitblit and when we need to do complete repaints. r=kmcclusk,sr=attinasi,a=asa
git-svn-id: svn://10.0.0.236/trunk@116830 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 03:34:10 +00:00
roc+%cs.cmu.edu
6cdda0389f Bug 130263. Don't add children of hidden views to any display list. r=kmcclusk,sr=attinasi,a=asa
git-svn-id: svn://10.0.0.236/trunk@116826 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 02:48:38 +00:00
kin%netscape.com
89fd8b91ad Fix for bug 127368 (Can't type in textfields in pages with an iframe and body with marginheight and marginwidth=0)
Modified HandleEvent() to prevent forwarding KeyEvents to views with a different ViewManager.

r=roc+moz@cs.cmu.edu  sr=sfraser@netscape.com  a=shaver@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115508 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 22:30:01 +00:00
roc+%cs.cmu.edu
b87aae1f18 Bug 91516. FIXING BUSTAGE AGAIN
git-svn-id: svn://10.0.0.236/trunk@114973 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 23:19:11 +00:00
roc+%cs.cmu.edu
d392c57939 Bug 91516. Organize view managers into a tree so that IFRAMEs can be rendered and event-processed coherently with their containing documents. r=kmcclusk,rods,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114952 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 21:33:26 +00:00
roc+%cs.cmu.edu
a1398fd8fe Bug 123755. Fix Gtk crasher when drawing surface cannot be locked. r=pavlov,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114589 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 13:14:32 +00:00
roc+%cs.cmu.edu
6e50de9fe3 Bug 96832. Reorganize event handling in the view manager to use the display list code. This means we take account of z-index properly. r=kmcclusk,sr=brendan
git-svn-id: svn://10.0.0.236/trunk@114242 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 03:46:35 +00:00
roc+%cs.cmu.edu
71e04391bf Bug 122325. Repaint correct areas when a view is resized. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113394 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 03:10:59 +00:00
sfraser%netscape.com
2d6d3a935e Back out a change that I commited by mistake, which turned double-buffering off. Thanks to jrgm for catching this.
git-svn-id: svn://10.0.0.236/trunk@113294 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:15:56 +00:00
sfraser%netscape.com
67a35c1a08 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:14:20 +00:00
roc+%cs.cmu.edu
f52124fa77 Bug 13213. Allow views to extend above and to the left of their owner frames. r=kmcclusk,rs=waterson
git-svn-id: svn://10.0.0.236/trunk@112991 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:56:23 +00:00
roc+%cs.cmu.edu
b4249b6891 Bug 120934. Deal with nonzero (x,y) in the aCombinedRect passed into nsViewManager::RefreshView(). r=kmcclusk,sr=waterson,a=asa
git-svn-id: svn://10.0.0.236/trunk@112573 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:32:45 +00:00
aaronl%netscape.com
f0e007cdfc Bug 120176. Active Accessibility: tweaks to STATE_OFFSCREEN. r=kmcclusk, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112276 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:07:03 +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
kmcclusk%netscape.com
1953238089 Use damage rect size for backbuffer instead of widget size for paint updates to reduce usage of offscreen memory r=dcone sr=attinasi b=114082
git-svn-id: svn://10.0.0.236/trunk@110860 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 05:25:01 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
kmcclusk%netscape.com
fdd55454e0 Move management of the backbuffer from the viewmanager to the rendering context and make the backbuffer transient on WIN32 and GTK. bug 95952 sr=attinasi r=karnaze
git-svn-id: svn://10.0.0.236/trunk@110332 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 01:35:31 +00:00
kmcclusk%netscape.com
f3e4763baa Suppress NS_MOVE,NS_CREATE, NS_SETZLEVEL events in the viewmanager. b=112861 r=rods sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109790 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 02:40:41 +00:00
roc+%cs.cmu.edu
35e1d479ea Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi
git-svn-id: svn://10.0.0.236/trunk@109458 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 14:31:45 +00:00
kmcclusk%netscape.com
a91bf4a68d Make the backbuffer transitory based on a pref. This does not have any effect unless you set (layout.transitory.backbuffer", true) bug 95952 sr=attinasi r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@109319 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:12:36 +00:00
roc+%cs.cmu.edu
fce7355cf6 My cleanup checkin for bug 73382 caused 5% increase in page load times. Backing out.
git-svn-id: svn://10.0.0.236/trunk@108850 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 05:37:25 +00:00
roc+%cs.cmu.edu
5d13b4f0c5 View manage interface cleanup. Bug 73382. r=kmcclusk, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108796 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 05:26:32 +00:00
roc+%cs.cmu.edu
57363b125c Fix for bug 108940. r=kmcclusk,sr=attinasi. Initialize nsZPlaceholderView correctly.
git-svn-id: svn://10.0.0.236/trunk@107702 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:11:01 +00:00
roc+%cs.cmu.edu
a38af362a7 Bug 73382. Let the view code work with nsView*/nsViewManager* internally and migrate some methods from public to private to the view module. Also deCOMify those methods for speed. r=kmmclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107555 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:05:38 +00:00
rods%netscape.com
1100db8190 Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define
Bug 107562 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107260 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:59:39 +00:00
kmcclusk%netscape.com
b2b179a8ba fix crash by removing DisplayZTreeNode's from the mMapPlaceholderViewToZTreeNode hashtable in DestroyZTreeNode. bug 78661. r=roc+moz sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107057 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:59:28 +00:00
kmcclusk%netscape.com
c06f67e167 Wrap nsViewManager::ShowDisplayList in DEBUG #ifdef to reduce footprint a bit. bug 78661. r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107056 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:53:22 +00:00
bryner%netscape.com
58bf936788 When creating the root view's widget, don't show it. This prevents full-page Invalidates during page load caused by showing and then hiding the widget. Bug 97895, r=blizzard, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@106814 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:06:31 +00:00
bryner%netscape.com
2a49cc581f Adding a newline to the warning printf. r=jag.
git-svn-id: svn://10.0.0.236/trunk@106464 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 07:45:29 +00:00
roc+%cs.cmu.edu
19217a44fb Bug 106355. Regression where paint requests entirely outside the widge area caused copying of bogus bits from the backbuffer. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106237 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 03:36:01 +00:00
roc+%cs.cmu.edu
44f839f120 Bug 73382. View manager cleanup: eliminate Refresh(nsRect) path in favour of Refresh(nsIRegion), plus other minor cleanups. r=kmcclusk,rs=attinasi
git-svn-id: svn://10.0.0.236/trunk@106008 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-23 01:35:50 +00:00
kmcclusk%netscape.com
0c68b26d29 Added code to UpdateCoveringWidgets to take into account hidden views when considering whether a view completely covers the invalidated rect. bug 100652 r=roc+moz@mozilla.org sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@105869 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-20 03:09:36 +00:00
kin%netscape.com
ffde4a4364 Fix for bug 97674: Parts of Mail composition/Composer window left blank after deleting text
If a paint event is received while refresh is disabled,
DispatchEvent() will now call UpdateView() to add the
area specified by the paint event, to the dirty region of
the view. This will insure that the area will get painted
properly when refresh is enabled.

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


git-svn-id: svn://10.0.0.236/trunk@105535 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 21:41:42 +00:00
roc+%cs.cmu.edu
0a3c4015a5 Cleaning up nsViewManger code (whitespace and comments). Bug 73382. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@105137 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 02:57:31 +00:00
aaronl%netscape.com
002395cb27 Bug 102192. Active Accessibility: Support STATE_OFFSCREEN for accessible objects. r=kmcclusk, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@104488 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 00:18:48 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
kmcclusk%netscape.com
02709e4dd7 Force the backbuffer to be reallocated when the display depth is changed. bug 6061 r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@104027 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 00:16:57 +00:00
kmcclusk%netscape.com
0b16a7e103 Protect against null-pointer in nsViewManager::ProcessPendingUpdates. bug 97664 sr=mscott@netscape.com r=peterl@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102983 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-15 17:22:06 +00:00
rjesup%wgate.com
288182f644 Bug 94243: VoidArray usage patch. a=asa sr=brendan r=waterson r=bienvenu
r=pierre r=jband/dbradley  Also fixes some whitespace issues.


git-svn-id: svn://10.0.0.236/trunk@101822 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:15:54 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00