72 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
tor%cs.brown.edu
fba58fbb27 Bug 240274 - remove unused argument of SetClip{Rect,Region}.
r=blizzard, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@155393 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 15:21:24 +00:00
tor%cs.brown.edu
996688b00b Bug 240274 - remove PopState() argument. r=blizzard, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@155061 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:13:35 +00:00
gerv%gerv.net
8419e1650f Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155030 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 16:52:41 +00:00
roc+%cs.cmu.edu
8a8e4a6529 Bug 232469. Rework view clipping to handle three kinds of clip: clip to arbitrary rect, clip containing block children to bounds, clip all children to boudns. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@153854 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-11 00:32:01 +00:00
roc+%cs.cmu.edu
e7cedf35f7 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@153009 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 05:26:57 +00:00
roc+%cs.cmu.edu
3c4c9422cd Bug 232951. Make scrolling of scrolling-views-without-widgets work properly even when there are child widgets. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153004 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 04:31:20 +00:00
dbaron%dbaron.org
18c65e7769 Back out bug 20022. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@152780 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-14 20:29:19 +00:00
bryner%brianryner.com
e6a225b469 Inline getters and setters for scaling factors on nsIDeviceContext. Bug 233103, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152326 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 01:57:10 +00:00
dbaron%dbaron.org
b7508c936c 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=roc sr=bryner
git-svn-id: svn://10.0.0.236/trunk@152252 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 00:11:59 +00:00
roc+%cs.cmu.edu
0456e20a91 Bug 109772. Some nsIView deCOMtamination. Fixed the API for GetNeearestWidget to be sensible. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152067 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 03:20:41 +00:00
roc+%cs.cmu.edu
d5d034c2c0 Bug 229583. initialize line height in scrolling views. patch by Asko Tontti. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151144 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 16:21:45 +00:00
roc+%cs.cmu.edu
986d8acdaa Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151139 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 05:36:32 +00:00
timeless%mozdev.org
8b3ba53ac7 Bug 218832 [W] UMR: Uninitialized memory read in nsView::ConvertToParentCoords(int *,int *)const
r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@146717 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 02:44:40 +00:00
dbaron%dbaron.org
20a7c5ebb1 Remove unused content quality stubs. b=111346 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@145076 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 18:38:08 +00:00
jaggernaut%netscape.com
f34216bf2d Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144992 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:47:59 +00:00
roc+%cs.cmu.edu
62a66263bd Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144428 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 13:05:57 +00:00
roc+%cs.cmu.edu
b023404ef9 Bug 109772. Cleanup views. Promote certain members of nsView and nsViewManager to stack variables. Provide non-COM versions of, and deprecate COM usage of, nsIView methods HasWidget, GetWidget, GetFloating, GetParent, GetFirstChild, GetNextSibling, GetOpacity, GetClientData, GetVisibility, GetViewManager, GetZIndex, GetPosition, and GetBounds. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144076 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:00:46 +00:00
bryner%netscape.com
6d58bc1d0d Remove now-unused nsScrollingView and nsIScrollbar implementations. Removed unused widget/public/nsWidgetSupport.h. Bug 201624, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141538 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:01:36 +00:00
timeless%mozdev.org
e5d9b8f8b4 Bug 201596 nsScrollPortView::ScrollTo could trigger a crash if new PRInt32[SMOOTH_SCROLL_FRAMES*2]; failed
r=roc+moz sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@141264 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 21:32:31 +00:00
roc+%cs.cmu.edu
97549634ee Bug 198987. Prevent smooth scrolling rounding small partial increments down to 0. Add scrollMaxX/scrollMaxY properties to JS window object so mailnews can use a more robust way to detect when the message is scrolled to the bottom of its window. r=bzbarsky,sr=jst
git-svn-id: svn://10.0.0.236/trunk@141176 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 13:40:46 +00:00
roc+%cs.cmu.edu
941938fa81 Bug 199607. Fix smoothscrolling bugs. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140747 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 11:41:19 +00:00
roc+%cs.cmu.edu
a70c7ce7b7 Bug 174049. Smooth scrolling. Original patch by Neil cronin. r+sr=kin
git-svn-id: svn://10.0.0.236/trunk@140133 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 05:29:45 +00:00
roc+%cs.cmu.edu
071d5592f4 Bug 183905. Allow horizontal scrolling with mouse sticks. Patch by Dainis_Jonitis, r+sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139310 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 03:22:11 +00:00
roc+%cs.cmu.edu
f57491a922 Bug 152373. Fix background-attachment:fixed regression by eliminating last remaining use of bogus ALWAYS_BLIT flags, replacing them with a less odious hack which makes smarter scroll decisions by checking for the presence of fixed-position elements. r=kmcclusk,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128729 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 21:36:28 +00:00
mjudge%netscape.com
a03311b9c2 4302. left this out of checking. fixing bustage
git-svn-id: svn://10.0.0.236/trunk@128170 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:46:13 +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
rods%netscape.com
c73a8a4ad0 This backs out the previous patch and just check to see if it is also a
listControlFrame to see if it should set the visibility to false in
nsContainerFrame
Bug 92333 r=dcone sr=attinasi a=asa adt=jaime


git-svn-id: svn://10.0.0.236/trunk@118246 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 12:13:23 +00:00
rods%netscape.com
f6de1dd3b4 Add SetVisibility method to Scroll Views
Bug 92333 r=kmcclusk sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@117561 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 02:56:27 +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
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
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
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
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