748 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
9acfc37ddf Don't invalidate areas in hidden widgets, and don't subtract hidden widgets or
widgets without views or widgets in different viewmanagers out of the area we
need to invalidate.  Bugs 268090, 269736, 268252.  r+sr=roc, a=asa


git-svn-id: svn://10.0.0.236/trunk@165476 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-18 20:47:42 +00:00
timeless%mozdev.org
d046585f1b Bug 106386 Correct misspellings in source code
patch by ajvincent@gmail.com r=dbradley rs=brendan


git-svn-id: svn://10.0.0.236/trunk@165193 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-10 07:27:11 +00:00
roc+%cs.cmu.edu
a4d530281c Bug 243726. Fix up child-covering calculations. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@165003 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-05 13:59:33 +00:00
neil%parkwaycc.co.uk
cac6323ab4 Bug 267302 Views should be created by the view manager r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@164915 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-04 15:36:49 +00:00
neil%parkwaycc.co.uk
18c53f2f32 Bug 267302 Views should be created by the view manager r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@164914 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-04 15:06:50 +00:00
bzbarsky%mit.edu
f53f98f7f3 Create an api for easily converting between the coordinate systems of two
frames or two views.  Use this to fix the auto-positioning of abs pos boxes to
work no matter how their containing block and the block their placeholder lives
in are related, and convert various other callers to the new API.  Bug 266968,
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@164857 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-03 16:16:57 +00:00
roc+%cs.cmu.edu
cbb6297ddd Bug 243726. Make Invalidate/UpdateView *much* cheaper by delaying propagating damage over the widget tree until EndUpdateViewBatch. Also adds SimplifyInward/SimplifyOutward methods to nsRegion to avoid region complexity getting out of hand and killing our performance. r=Dainis_Jonitis,bzbarsky, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@164828 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-03 02:37:21 +00:00
roc+%cs.cmu.edu
5376e448a8 Bug 265983. GTK1 needs GetNativeData(NS_NATIVE_WIDGET) to be passed as the native parent, not NS_NATIVE_WINDOW. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@164667 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-30 12:57:46 +00:00
bzbarsky%mit.edu
3a053f56de Push view update batching up to the root view manager. Make all associated
members only be accessed by the root view manager.  Document the invalidation
setup a bit.  Bug 244290, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@164628 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-29 20:47:25 +00:00
roc+%cs.cmu.edu
a5b948fd1a Bug 264245. Make all popups have no nsIWidget parent to avoid the hassles of various widget implementations not keeping their position consistent with their parent. Also, aggressively invalidate cached screen coordinates in GTK1 to avoid bugs. r=bzbarsky,sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@164150 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-21 18:35:35 +00:00
dbaron%dbaron.org
98d1814fec Fix Windows regression (view for paints can vary across platforms). b=227361 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@164056 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-19 22:04:47 +00:00
dbaron%dbaron.org
c50c822440 Null-check view observer. b=264683 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@163948 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-18 02:41:56 +00:00
dbaron%dbaron.org
8dd6cc7e13 Commenting out assertion that I added yesterday. b=227361
git-svn-id: svn://10.0.0.236/trunk@163853 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 21:39:37 +00:00
dbaron%dbaron.org
9d38a27e2e Don't do resize reflows for view managers that aren't visible. (Improve window resizing and find toolbar performance when multiple tabs are open.) b=227361 r+sr=roc (Relanding since this doesn't seem to be the cause of the Tp regression.)
git-svn-id: svn://10.0.0.236/trunk@163767 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 21:51:00 +00:00
dbaron%dbaron.org
acff620604 Back out 227361 to fix pageload time regression.
git-svn-id: svn://10.0.0.236/trunk@163716 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 05:49:10 +00:00
dbaron%dbaron.org
5a4279b19b Bustage fix. b=227361
git-svn-id: svn://10.0.0.236/trunk@163689 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 23:06:39 +00:00
dbaron%dbaron.org
cfcacefff2 Don't do resize reflows for view managers that aren't visible. (Improve window resizing and find toolbar performance when multiple tabs are open.) b=227361 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@163685 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 22:37:32 +00:00
dbaron%dbaron.org
bcd027f41d Remove unneeded dependency on layout. b=227361 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@163678 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 22:08:00 +00:00
dbaron%dbaron.org
4788c0f03d Remove unneeded dependency on layout. b=227361 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@163677 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 22:05:00 +00:00
roc+%cs.cmu.edu
8ff367d401 Bug 238493. BeginUpdateViewBatch should suppress widget geometry changes and make them happen when the batch ends. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@163540 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 20:35:51 +00:00
roc+%cs.cmu.edu
1df6a398e4 Bug 262760. Do Begin/EndUpdateViewBatch around all reflows and restyling. Also, make the refresh flags in EndUpdateViewBatch mean the same thing as they do in UpdateView. In particular we introduce NS_VMREFRESH_DEFERRED. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@163455 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 01:39:21 +00:00
dbaron%dbaron.org
d6f7a82538 Fix Sun Forte bustage. b=262596,261310
git-svn-id: svn://10.0.0.236/trunk@163141 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-02 18:27:37 +00:00
dbaron%dbaron.org
8552a17451 Add helper functions that make it easier to cache factories. b=261310 r=darin
git-svn-id: svn://10.0.0.236/trunk@163132 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-02 00:44:13 +00:00
roc+%cs.cmu.edu
02d5f9491e Bug 160095. Don't crash trying to print documents using -moz-opacity. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@162927 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 01:36:46 +00:00
dbaron%dbaron.org
de1ba08283 Untabify.
git-svn-id: svn://10.0.0.236/trunk@162892 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 20:49:25 +00:00
neil%parkwaycc.co.uk
7903ea1651 Don't use QueryInterface to get a view from a scrollable view b=258521 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162561 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 22:25:07 +00:00
cbiesinger%web.de
7e24ddb14b bug 259803 get views using GetInterface from a widget's client data, rather than
by queryinterface, r=pinkerton sr=roc


git-svn-id: svn://10.0.0.236/trunk@162549 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 12:51:31 +00:00
cbiesinger%web.de
49a0c9fc4b Bug 258411 - fixing regression from bug 250342: wrong z-order for frames
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@162450 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-16 13:02:54 +00:00
dbaron%dbaron.org
7d40175fee Remove effectively-unused Set/GetScrollPreference API on nsIScrollableView.h. b=259617 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162387 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-15 19:16:43 +00:00
cbiesinger%web.de
47104955d7 fixing ViewWrapper leaks introduced by bug 250342 checkin, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@161770 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 21:30:18 +00:00
jst%mozilla.jstenback.com
809b317cb3 Fixing bug 252326. Fixing some popup blocker problems. Making sure only trusted events get mark trusted, and only allow popups while processing trusted (initiated by the user) events. Patch by trev@gtchat.de and jst@mozilla.org, r=bzbarsky@mit.edu, rs=brendan@mozilla.org, bryner@biranryner.com
git-svn-id: svn://10.0.0.236/trunk@161765 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 19:28:46 +00:00
cbiesinger%web.de
aebea73882 fixing gcc 3.4 bustage (removing extra semicolon)
git-svn-id: svn://10.0.0.236/trunk@161760 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 17:20:00 +00:00
cbiesinger%web.de
0be99300a4 Bug 250342 Views should not inherit from nsISupports
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@161754 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 15:49:20 +00:00
cbiesinger%web.de
470d2e0074 Bug 257920 remove unused nsIClipView
patch by Chris Thomas <cst@andrew.cmu.edu> r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@161753 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 15:45:02 +00:00
roc+%cs.cmu.edu
10eeb9e05b Bug 228780. Fix unused variable warning. r=roc,sr=dbaron, patch by Serge GAUTHERIE
git-svn-id: svn://10.0.0.236/trunk@161413 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-28 02:22:06 +00:00
timeless%mozdev.org
cb066a25ca Bug 256610 Crash [ @ nsViewManager::GetMouseEventGrabber]
patch by cst@andrew.cmu.edu r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@161145 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-23 19:01:39 +00:00
bzbarsky%mit.edu
48abc3f2ac Comment-only spelling fix. a=asa
git-svn-id: svn://10.0.0.236/trunk@160675 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 19:33:05 +00:00
bzbarsky%mit.edu
7735a0fea2 Stop building up the opaque region if it gets too complicated. Bug 253001,
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@160653 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 05:12:43 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
dbaron%dbaron.org
46bbadb4bd Remove the nsDrawingSurface typedef and replace it with nsIDrawingSurface*. b=64023 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@159427 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-18 17:36:03 +00:00
jim_nance%yahoo.com
3abd533652 Bug 249810 - Add calls to PL_FreeArenaPool() so Arena memory ends up on the
global Arena free list.  This is good because these arenas get created and
destroyed quickly. r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@159330 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 14:44:10 +00:00
jim_nance%yahoo.com
9f9afa438c Backing out last change. I didn't realize the tree was frozen
git-svn-id: svn://10.0.0.236/trunk@158940 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-09 03:39:28 +00:00
jim_nance%yahoo.com
b1da4ff303 Fix bug 152596 - Add calls to PR_FreeArenaPool() before PR_FinishArenaPool()
so that memory is added to the global free lists.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@158938 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-09 03:32:56 +00:00
jim_nance%yahoo.com
f2c7f58af2 Fix but 249923
- Remove hashtable from nsViewManager.  It is now created on the stack when
  it is needed.
- Remove DestroyZTreeNode().  It only removes things from the above hashtable
  and that is going to be destroyed shortly after the call.


git-svn-id: svn://10.0.0.236/trunk@158776 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-06 02:09:47 +00:00
roc+%cs.cmu.edu
972134bbf4 Remove nsIScrollingView::Get/SetControlInsets, since it's unused.
git-svn-id: svn://10.0.0.236/trunk@158764 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 16:53:10 +00:00
jim_nance%yahoo.com
8ef1ce1723 Attempt 2 at fixing build problem.
git-svn-id: svn://10.0.0.236/trunk@158761 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 15:09:57 +00:00
jim_nance%yahoo.com
6a1cdac1d3 Attempt to fix Firefox build bustage resulting from my last checkin.
git-svn-id: svn://10.0.0.236/trunk@158757 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 14:46:16 +00:00
jim_nance%yahoo.com
21087b68e5 Fix bug 249810 - Reduce allocations by nsViewManager. r+sr = roc
git-svn-id: svn://10.0.0.236/trunk@158755 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 13:10:25 +00:00
dbaron%dbaron.org
c3bd695888 Fix coordinate transformations used for computing mMouseLocation so they're relative to the root view rather than the end of the parent chain (which differ for, e.g., frames). Add some debugging code (turned off). b=248606 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@158497 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-25 19:02:37 +00:00
dbaron%dbaron.org
9897041a64 Don't treat mouse exit and enter events as user events for purposes of content sink frequency tuning, since they're often caused by widget creation/destruction, and if the user moves the mouse we'll get real mousemove events. I'm hoping this will smooth pageload times. b=248226 r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@158367 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-23 17:31:29 +00:00