mark%moxienet.com
ddab7ffe6e
319078 Handle smooth mousewheel (and two-finger touchpad) scrolling. r=josh sr=darin r,sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@203254 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-20 15:38:43 +00:00
dbaron%dbaron.org
8cfdd67955
Change our scrolling code so that it is capable of scrolling above and to the left of the viewport, and then use that capability for nsHTMLScrollFrames with RTL directionality. This removes the invariant that the child of a scrollframe (::scrolled-canvas canvas or ::scrolled-content block) will be stretched to fill the entire scrollable area and stops enforcing it, a change that's likely to cause some regressions not yet fixed within the patch. This also fixes directionality detection for the scrollframe holding the canvas (changing which side the scrollbar appears on) and fixes an old bug in the code that paints the focus ring around the canvas (so it's now again visible on all sides, even when the canvas is scrollable). b=192767 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@192422 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 16:55:19 +00:00
roc+%cs.cmu.edu
59c8c3c53b
Bug 324883. Be sure to initialize variables! Fix some cases where we weren't scrolling with bitblit when we could be. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@188992 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-06 02:41:51 +00:00
roc+%cs.cmu.edu
df8627e29b
Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
...
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
timeless%mozdev.org
dae7b0629a
Bug 106386 Correct misspellings in source code
...
patch by unknown@simplemachines.org r=timeless rs=brendan
git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
masayuki%d-toybox.com
53fbb10ba3
Bug 299748 On listbox, Sometimes, We cannot scroll the page to bottom by mouse wheel r+sr=roc, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@175753 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 15:53:07 +00:00
roc+%cs.cmu.edu
e05c85a204
Bug 296315. Remove unimplemented nsIScrollableView::GetScrollbarVisibility, implement nsDocShell::GetScrollbarVisibiilty to use nsIScrollableFrame::GetActualScrollbarSizes, which actually works. r+sr=bzbarsky,a=asa
...
git-svn-id: svn://10.0.0.236/trunk@174751 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-17 02:48:29 +00:00
roc+%cs.cmu.edu
5bf3780f30
Bug 286955. Force the entire subtree of widgets to redraw when we scroll a view that doesn't have an associated scrolling widget. r+sr=bzbarsky,a=shaver
...
git-svn-id: svn://10.0.0.236/trunk@174045 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 08:53:26 +00:00
roc+%cs.cmu.edu
131435cb9a
Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa
...
git-svn-id: svn://10.0.0.236/trunk@172836 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:57:22 +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
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