781 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
c10d27a704 Bug 285996C. Ensure that object frames create the widget for their view correctly the first time, and don't let them try to create a widget again when there already is one. r+sr=dbaron,a=asa.
git-svn-id: svn://10.0.0.236/trunk@171843 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 03:59:02 +00:00
bzbarsky%mit.edu
f8a2cb0fe2 Do a sync invalidate of the areas dirtied by the reflow we do before painting,
not an async one.  This will keep us from dropping animation frames quite as
much if events take a long time to process.  Bug 288369, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@171433 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-31 20:42:30 +00:00
roc+%cs.cmu.edu
9a95487365 Bug 288222. fixing up variable name as Boris requested.
git-svn-id: svn://10.0.0.236/trunk@171404 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 20:26:54 +00:00
roc+%cs.cmu.edu
c3e197c008 Bug 288222. resync widgets with views before trying to paint. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171403 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 20:25:15 +00:00
aaronleventhal%moonset.net
6d9d039e4c Bug 274600. Fix erratic rendering of applets in iframes. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@170700 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-15 15:24:08 +00:00
roc+%cs.cmu.edu
8236d1c5c5 Bug 265566. Fix clipping of fixed-pos elements again. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@170324 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 22:12:53 +00:00
roc+%cs.cmu.edu
1815e9c7f2 Fixing missing return value. r+sr=me
git-svn-id: svn://10.0.0.236/trunk@170311 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 19:23:44 +00:00
roc+%cs.cmu.edu
cc672861f0 Fix build bustage AGAIN.
git-svn-id: svn://10.0.0.236/trunk@170261 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 02:51:15 +00:00
roc+%cs.cmu.edu
7716d7e3ef Fixing build bustage on Windows.
git-svn-id: svn://10.0.0.236/trunk@170258 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 02:31:42 +00:00
roc+%cs.cmu.edu
80ebc8eca4 Bug 285038. Support offscreen rendering API in nsIViewManager and provide MOZ_FORCE_PAINT_AFTER_ONLOAD environment variable hack to dump loaded documents to image files. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@170255 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-07 01:24:22 +00:00
roc+%cs.cmu.edu
de12315c65 Bug 125386. Turn MOUSE_EXIT events into MOUSE_MOVEs when the mouse didn't actually leave the top level widget. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169684 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 21:46:43 +00:00
bzbarsky%mit.edu
25e5677b69 Followup to bug 281173 -- scrolling in an iframe will in fact cause us to
effectively have nested scrolls...  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@169354 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 06:11:36 +00:00
bzbarsky%mit.edu
26f777e115 Don't flush out reflow while scrolling. Possible fix for crash bug 281173,
r+sr=roc, a=caillon.


git-svn-id: svn://10.0.0.236/trunk@169106 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-11 16:23:57 +00:00
bzbarsky%mit.edu
83052a8538 Make sure to not reenter painting while the mRecursiveRefreshPending flag is
still set.  Bug 278811, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168831 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-05 02:47:26 +00:00
bryner%brianryner.com
9861051f37 Clean up unneeded REQUIRES (bug 73353). r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@168768 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 23:01:54 +00:00
bzbarsky%mit.edu
306c5b60d3 Fix win32 build bustage
git-svn-id: svn://10.0.0.236/trunk@168745 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 06:26:20 +00:00
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
bsmedberg%covad.net
3edf9d37c8 Bug 275605 - libxul step 3 (all of tier 9, except libmozjs.so which will remain separate indefinitely) r=darin
git-svn-id: svn://10.0.0.236/trunk@166737 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 04:07:01 +00:00
aaronleventhal%moonset.net
e4663eedaa Bug 163562. Home/end keys should not affect horizontal scrolling. Patch by dmitry@kirsanov.com. r=aaronleventhal, sr=roc
git-svn-id: svn://10.0.0.236/trunk@166060 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 16:21:20 +00:00
timeless%mozdev.org
8bbaa8a03e Bug 271293 Crash in [@ nsView::DropMouseGrabbing ]
r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@166001 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 03:04:17 +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
bryner%brianryner.com
e1daca3ce3 Reduce do_GetService code bloat further by adding specialized assignment to nsCOMPtr and providing a version with no error pointer. Also make CallGetService work the same way as CallGetComponent does, as far as using frozen/non-frozen interface to service manager. Bug 264456, r=darin.
git-svn-id: svn://10.0.0.236/trunk@165757 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 22:48:45 +00:00
dbaron%dbaron.org
7a4b3c8ec0 Make page up and page down leave at most two lines in common between pages. b=175380 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@165753 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 22:05:36 +00:00
neil%parkwaycc.co.uk
df2668e776 Don't use QueryInterface to get a scrollable view from a view b=258521 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@165693 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 00:19:21 +00:00
bzbarsky%mit.edu
067c70d127 Add methods to get screen coordinates of frames and views. Bug 268576,
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@165642 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-23 17:26:19 +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
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