Commit Graph

433 Commits

Author SHA1 Message Date
blizzard%redhat.com
aee13ac6e9 Part of bug #5569. Make sure that areas that get an NS_PAINT event we always paint the default color when the view manager has refreshes disabled. This should fix the problem where before pages start loading in mail/news and the browser some areas aren't repainted. r=bryner sr=roc+moz.
git-svn-id: svn://10.0.0.236/trunk@91978 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 14:52:06 +00:00
roc+%cs.cmu.edu
e75e68ae3c Adding support for root views with externally defined widgets. Bug 73383. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91952 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 05:10:15 +00:00
roc+%cs.cmu.edu
2647a38223 Fix calculation of widget coverings in nsViewManager::UpdateAllCoveringWidgets. Bug 74413, sr=attinasi,r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@91249 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:37:12 +00:00
roc+%cs.cmu.edu
5ea7ffb101 Correct child widget's view according to parent view's coordinates in AddCoveringWidgetsToOpaqueRegion. Fix for bug 73406. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@90960 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 13:41:28 +00:00
kmcclusk%netscape.com
e889aeb106 Invalidate only the newly exposed region when the container frame size changes vertically b=19256; sr=attinasi@netscape.com r=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@90834 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:17:07 +00:00
alecf%netscape.com
874291fed3 make this DEBUG_roc instead of DEBUG - we dont' ALL need to debug the view manager
git-svn-id: svn://10.0.0.236/trunk@90259 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 15:27:16 +00:00
timeless%mac.com
534247895d fix Bug 70989 Clean up lots of "shadows" and other common warnings
r=peterv, jst, ducarroz, edburns. sr=jst, shaver


git-svn-id: svn://10.0.0.236/trunk@89986 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:32:22 +00:00
roc+%cs.cmu.edu
868dfa2604 Fix for 72055 by ian@hixie.ch. If a widget doesn't have a view, then don't try to exclude it from the opaque covering region. r=kmcclusk, sr=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@89809 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 21:51:58 +00:00
timeless%mac.com
effb3a3ab7 for Bug 39621 Need to turn on nsViewManager by default
add ifdef DEBUG
r=kmcclusk@netscape.com, sr=roc+moz@cs.cmu.edu


git-svn-id: svn://10.0.0.236/trunk@89318 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 04:48:26 +00:00
roc+%cs.cmu.edu
547e224e68 Ignore unreliable nsIWidget information and use the associated nsView data instead. Fixes bug 70446. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89226 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 05:33:38 +00:00
roc+%cs.cmu.edu
9ac96a81af Don't paint floating views unless the root view for the repaint is floating. This ensures that if we paint a window under a transient, the actual window contents are painted and not the transient's contents. Fix for new view manager bug 69346. r=kmcclusk, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@88479 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 06:18:11 +00:00
roc+%cs.cmu.edu
819e90359e Fix for new view manager bug 69146. Changed the way we compute the 'opaque region' consisting of widgets that cover the widget being painted. r=kmcclusk, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@87916 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 20:29:58 +00:00
roc+%cs.cmu.edu
0018bf9a4e Force nsViewManager to respect DONT_BITBLT flags on descendant views when we scroll a parent view. Fix for bug 68499. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@87230 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-16 21:41:52 +00:00
kmcclusk%netscape.com
53ee4f7141 Removed unused code in view module. bug 62675 sr=roc+moz r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85943 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 06:00:02 +00:00
rods%netscape.com
b23e7af50b This checkin enables mozilla to support the printing of selection, the printing of page ranges, and
the printing of headers and footers.
Printing of selection is implemented by the frames figuring out if they are in the selection and painting
if they or not they they don't paint. This also only allows the printing of the first page of
selections, alothough it is well documented where this is implemeted so it can be removed.
Bugs 63426, 31218, 61075 r=dcone,kmcclusk,erik,buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@85624 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 14:09:34 +00:00
kmcclusk%netscape.com
90c90d4972 Defer invalidates using PL_event so they can be combined with reflow invalidates. This improves performances by reducing the number of paint messages and eliminates flicker bug 36849 sr=roc+moz@cs.cmu.edu r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85207 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-20 04:59:39 +00:00
dbaron%fas.harvard.edu
cf67dceed1 Fix leak of gViewManagers nsVoidArray. r=roc+moz@cs.cmu.edu sr=brendan@mozilla.org b=58965
git-svn-id: svn://10.0.0.236/trunk@82413 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 03:04:02 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
b725c37ce9 Removed extra 0 arg
git-svn-id: svn://10.0.0.236/trunk@81893 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:21:30 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
kmcclusk%netscape.com
6256e60cdb Added IsPainting method to return whether the viewmanager is currently painting. bug 56335 a=buster@netscape.com r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@81282 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 05:03:45 +00:00
kmcclusk%netscape.com
9f4886f121 Added new method to control whether ViewManager and ViewManager2 double-buffer when rendering. bug 49743 a=roc+moz@cs.cmu.edu r=peterl@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79960 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-26 05:04:53 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
roc+%cs.cmu.edu
e4d4e322a4 NOT PART OF THE BUILD. Bringing nsViewManager up to speed with nsViewManager2 changes. Also ensures all pixels are cleared even if some pixels are not covered by any opaque view. Bug 39621.
git-svn-id: svn://10.0.0.236/trunk@77032 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 02:35:00 +00:00
roc+%cs.cmu.edu
c53de61c00 NOT PART OF BUILD. Checking in nsViewManager2 semi-rewrite as nsViewManager. Bug 39621. r=kmcclusk,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76966 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 14:58:22 +00:00
roc+%cs.cmu.edu
dafb67d22b Adding new nsIView/nsIViewManager APIs so that a view can have a different parent for Z-order/clipping purposes than its geometric parent. Bug 39621. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76223 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:05:52 +00:00
saari%netscape.com
e1a79e8500 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner


git-svn-id: svn://10.0.0.236/trunk@75805 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:31:05 +00:00
pavlov%netscape.com
a0feb91521 changes all usages of NS_NewTimer to CreateInstance
git-svn-id: svn://10.0.0.236/trunk@70249 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:49:35 +00:00
kmcclusk%netscape.com
741be3a48f Clip now applies to child views. b=11660 r=buster@netscape.com
Prevent the invalidation of hidden views (1/2 patch from <Tomi.Leppikangas@oulu.fi> b=34466 r=buster@netscape.com
Prevent ViewManager1 from getting into endless loops (patch from <jst@citec.fi> b=25336 r=buster@netscape.com
tested=WINNT, Linux, Mac


git-svn-id: svn://10.0.0.236/trunk@65880 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:56:27 +00:00
evaughan%netscape.com
995d26d6bc 1) viewmanager2 optimizations -r troy, kevin
2) box fixes for Rod's gfx listbox
3) memory leak fixes
4) box fixes in prep for grid widget


git-svn-id: svn://10.0.0.236/trunk@64995 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 03:55:38 +00:00
kmcclusk%netscape.com
1bdb9de7c9 Added MOZ_PERF timer code to viewmanager to time rendering b=29308 r=attanasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@64238 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-27 22:00:19 +00:00
kmcclusk%netscape.com
c62cc9846a Added capability to view manager to offset its coordinate space b=32161 r=attanasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63930 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 23:49:18 +00:00
kmcclusk%netscape.com
e92c7a3168 Initialize the result value in nsViewManager::SetFrameRate b=32381 r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63620 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 21:47:50 +00:00
kmcclusk%netscape.com
876fb99ca4 #ifdef'ed out timer used to flush paints. It is not needed b=31407 r=attanasi@netscape.com
Changed mVMCount from PRUint32 to PRInt32 to make ASSERTION checking for a negative value in mWMCount valid
b=11674 r=attanasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@63326 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 22:27:26 +00:00
beard%netscape.com
846e3dedc9 bug 25050, fix incorrect usage of mPainting variable. r=jband
git-svn-id: svn://10.0.0.236/trunk@63174 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:55:42 +00:00
kmcclusk%netscape.com
4d0d56ea8d Added code to prevent invalidation of non-visible rectangles.
This is a performance enhancement for platforms where toolkit invalidate calls
are expensive. b=29847 r=rods@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@62960 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 01:20:07 +00:00
mkaply%us.ibm.com
53611f9e3a # 25555
r= beard@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61908 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 22:07:34 +00:00
beard%netscape.com
a876d9dda5 bug 25336, fixes incorrect usage of unsigned integer causing an infinite loop, r=jst@citec.fi (he originated the patch).
git-svn-id: svn://10.0.0.236/trunk@60940 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:11:31 +00:00
kmcclusk%netscape.com
31beeacc3d Prevent synchronous paints during reflows bug 20150; r=rods@netscape.com
Call SetTextAlign within SetupDC instead of in each DrawString on WIN32. bug 26973; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@60242 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 15:48:01 +00:00
waterson%netscape.com
21d5ec4c31 Undo the optimization: it breaks the addressing widget :-(.
git-svn-id: svn://10.0.0.236/trunk@59381 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:13:12 +00:00
waterson%netscape.com
ea2a5c3c7f Optimize MoveViewTo() to only move the view if aX != oldX and aY != oldY. This cuts out about 10% on large web pages that slam the status bar, because boxes seem to want to reposition the widget at the same place over and over. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@59337 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 01:14:49 +00:00
kmcclusk%netscape.com
5f7ac3effb Added support for widgetless viewmanager. Changed code pattern that assumed the root view
always has a nsIWidget instance to call viewmanager to get widget instance. b=22069; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@58838 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 23:04:40 +00:00
beard%netscape.com
c956c22a62 floating views. bug=21966, r=troy, rods, a=brendan
git-svn-id: svn://10.0.0.236/trunk@58504 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 01:53:34 +00:00
ftang%netscape.com
cfa1a18207 partial fix for bug 15533 (size part). 1. change the return value from nsPiont to nsRect. Change widget code to reflect the change. In Gtk, change XIM FontSet based on the rect height. r=cata a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56377 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 07:56:40 +00:00
ftang%netscape.com
199df01b45 add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550
git-svn-id: svn://10.0.0.236/trunk@55502 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 01:29:00 +00:00
beard%netscape.com
067dc9aa6f bug #20504: fix crash when printing. r=joki
git-svn-id: svn://10.0.0.236/trunk@55021 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 05:13:56 +00:00
beard%netscape.com
d2b4f7de3c bug #17574: fixed ResizeView() to generate an update for the bounding box of old and new bounds of the view, instead of the entire parent view (duh!). this can be optimized further by doing separate updates if old and new aren't overlapping. r=kin
git-svn-id: svn://10.0.0.236/trunk@54958 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:58:24 +00:00
beard%netscape.com
d8e63b5bf9 bug #13131, 18140: now accumulating paint requests into a region for each view that has a widget. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@54787 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 22:27:56 +00:00
tbogard%aol.net
081927560a Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*.
git-svn-id: svn://10.0.0.236/trunk@54391 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:10 +00:00
beard%netscape.com
c9334b0fcd partial reversion of view manager, to fix XP menu breakage on windows.
git-svn-id: svn://10.0.0.236/trunk@53448 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 05:47:00 +00:00