Commit Graph

433 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
d5d96cdbbf Fix invalidation regression when scrolling. When we bit-blit, we need to
make copies of existing dirty regions, offset them by the scroll amount, and
add to our dirty region on the scrolling view.  Bug 280041, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168740 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 05:01:54 +00:00
bzbarsky%mit.edu
7572605e3c Add a way for IME to query the caret position. Bug 278061, patch by
Masayuki Nakano (Mozilla Japan) <masayuki@d-toybox.com>, r=smontagu,glazou,
sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168653 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 19:24:59 +00:00
bzbarsky%mit.edu
3a76aa2079 Repost invalidate events that fire in the middle of a view update batch. Bug
280214 partial fix, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168586 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 22:41:19 +00:00
roc+%cs.cmu.edu
19c46ac733 Bug 261238. Make widget z-ordering a closer approximation to what CSS2 wants. Also make GTK2 actually implement widget z-ordering. r=bzbarsky,blizzard sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168415 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 20:49:47 +00:00
bzbarsky%mit.edu
33e1222b27 Use the right view observer for events. Fixes some crashes. Bug 279205, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@168205 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-23 20:55:53 +00:00
bzbarsky%mit.edu
8489f8d24b Flush out reflows before processing invalidates and paint events. Fixes a
variety of flicker issues of various sorts, especially when we're not quite
keeping up with the rate of updates in DHTML or in editor.  Bug 244366 and
various dependencies, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168044 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 03:39:09 +00:00
bzbarsky%mit.edu
1a63cd9316 Add a kungFuDeathGrip to make sure our synthetic mouse events don't kill us,
and make sure to RevokeEvent on all viewmanagers.  Bug 277234, r=dbaron,
sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@167378 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-07 03:23:34 +00:00
timeless%mozdev.org
d18903be1c Bug 273808 nsViewManager::CreateBlendingBuffers should null mBlender if it fails to init
r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@166897 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-20 19:43:31 +00:00
ere%atp.fi
351a79f7c6 Optimization patch for bug 228399 (background-color is mishandled when -moz-opacity is less than 1.0)
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@165830 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-27 08:22:22 +00:00
bzbarsky%mit.edu
39530b8cec Don't clear the root view manager pointer when the root view is destroyed. Bug
269402, r+sr=roc, a=asa


git-svn-id: svn://10.0.0.236/trunk@165566 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-22 03:06:14 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
dbaron%dbaron.org
984d2d3d5f Attempt to fix pageload regression/oscillation from bug 20022. r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@158330 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-22 22:30:18 +00:00
dbaron%dbaron.org
41ff3ad83f Update :hover state and mouse cursor and send mouse events when the position of the pointer changes due to scrolling or reflow. b=20022 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@158287 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-22 04:32:52 +00:00
roc+%cs.cmu.edu
50cd69aed6 Bug 239201. Anonymous views (views without frames) should inherit their visibility from their parent. Then visibility:hidden IFRAMEs will hide their widgets. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@157191 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-31 20:01:58 +00:00
bzbarsky%mit.edu
e43701bf5e Making desperate attempt to reland with a couple crash-proofing changes. Bug
243724, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@156783 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 20:54:40 +00:00
bzbarsky%mit.edu
a25eaed36b Backing out to try and fix mac orange. Bug 243724
git-svn-id: svn://10.0.0.236/trunk@156782 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 20:04:59 +00:00
roc+%cs.cmu.edu
e0992afdd6 Bug 243757. Handle cases where this view manager's root view is not an ancestor of the view grabbing the mouse. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@156779 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 19:55:01 +00:00
bzbarsky%mit.edu
457174619e deCOMtaminate nsIWidget::GetChildren. Bug 243724, r+sr=roc (with sr=blizzard
on a previous-but-similar iteration of the patch).


git-svn-id: svn://10.0.0.236/trunk@156767 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 16:47:13 +00:00