159 Commits

Author SHA1 Message Date
dougt%netscape.com
db8cc9c7ec Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129037 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 05:38:16 +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
kmcclusk%netscape.com
a1abaaf6e3 Place position:absolute, fixed, relative elements above non positioned elements. b=137853 r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@124486 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 12:50:14 +00:00
kmcclusk%netscape.com
0c52be1f09 backing out change to see if pageload times go back to normal (Don't place position:absolute, fixed, relative elements above non positioned elements) b=137853
git-svn-id: svn://10.0.0.236/trunk@124472 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:38:35 +00:00
kmcclusk%netscape.com
16fa19c5d5 Place position:absolute, fixed, relative elements above non positioned elements. b=137853 r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@124460 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:53:35 +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
6e50de9fe3 Bug 96832. Reorganize event handling in the view manager to use the display list code. This means we take account of z-index properly. r=kmcclusk,sr=brendan
git-svn-id: svn://10.0.0.236/trunk@114242 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 03:46:35 +00:00
bzbarsky%mit.edu
ec01351fa8 Make scrollbar thumbs for selects size correctly in GTK builds. Bug
45731, patch by Michiel van Leeuwen <hmvleeuwen@altavista.com>,
r=blizzard, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@114081 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 23:16:43 +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
roc+%cs.cmu.edu
a38af362a7 Bug 73382. Let the view code work with nsView*/nsViewManager* internally and migrate some methods from public to private to the view module. Also deCOMify those methods for speed. r=kmmclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107555 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:05:38 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
kmcclusk%netscape.com
86a48adb0f Check for null scrolled view before accessing it. b=98270 patch from duraid@fl.net.au. r=karnaze@netscape.com, sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@103908 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 01:05:14 +00:00
bryner%netscape.com
bf9fa1fa2f Bug 66617 - if tabbing scrolls page, focus outline doesn't leave first link (second try). r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@101405 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-18 07:25:52 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mkaply%us.ibm.com
94c5a3c1b7 #56164
r=kmcclusk, a,sr=roc+moz@cs.cmu.edu
Comboboxes positioning incorrect on OS/2


git-svn-id: svn://10.0.0.236/trunk@81290 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 14:54:03 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
roc+%cs.cmu.edu
2c4e622f22 Bug 49175. Change O(n^2) child view traversal to O(n). Trim unused view painting code. O(n^2)->O(n) change submitted by alex@cendio.se. r=kmmclusk,a=brendan
git-svn-id: svn://10.0.0.236/trunk@77102 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 19:54:46 +00:00
roc+%cs.cmu.edu
dafb67d22b Adding new nsIView/nsIViewManager APIs so that a view can have a different parent for Z-order/clipping purposes than its geometric parent. Bug 39621. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76223 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:05:52 +00:00
saari%netscape.com
e1a79e8500 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner


git-svn-id: svn://10.0.0.236/trunk@75805 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:31:05 +00:00
bryner%uiuc.edu
45f772555a Fix bug 41270 - problems with the bounds checks for nsScrollingView. This
was causing mousewheel scrolling to "wrap around" in list boxes. r=pavlov.


git-svn-id: svn://10.0.0.236/trunk@71555 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 21:57:44 +00:00
evaughan%netscape.com
e32f5aa5dd fix for [beta2] bugs:
37835
39085
32920

-r pinkerton, rods, hyatt


git-svn-id: svn://10.0.0.236/trunk@70910 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 06:42:29 +00:00
pavlov%netscape.com
a0feb91521 changes all usages of NS_NewTimer to CreateInstance
git-svn-id: svn://10.0.0.236/trunk@70249 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:49:35 +00:00
joki%netscape.com
ec91adc761 Updating mozilla to DOM Level 2 events support. Fixes for bug 34722, 35378, 8411, 10330, plus some others that weren't filed.
git-svn-id: svn://10.0.0.236/trunk@70028 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 11:35:12 +00:00
troy%netscape.com
2831676fb5 Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem


git-svn-id: svn://10.0.0.236/trunk@67078 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:43:11 +00:00
putterman%netscape.com
a27f77816e backing out troy's changes to fix various ui not working blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@66998 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:05:39 +00:00
troy%netscape.com
e90db6dfb9 Changes to bring clipping inline with upcoming CSS2 errata
git-svn-id: svn://10.0.0.236/trunk@66887 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 00:56:16 +00:00
dbaron%fas.harvard.edu
0936aaafab Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161.
git-svn-id: svn://10.0.0.236/trunk@63689 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:43:08 +00:00
kmcclusk%netscape.com
4d0d56ea8d Added code to prevent invalidation of non-visible rectangles.
This is a performance enhancement for platforms where toolkit invalidate calls
are expensive. b=29847 r=rods@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@62960 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 01:20:07 +00:00
dbaron%fas.harvard.edu
3c373934a0 Fix bug 16200 (mostly) for both GFX and native scrollbars by rounding scroll requests to the nearest pixel and, from then on, only using that rounded value. Previously, disagreements (of a fraction of a pixel) between what was on the screen and what was supposed to be there caused rounding problems (particularly at less common logical resolutions). There is a chance this may not be necessary in the future, because transform changes may fix this.
r=dcone


git-svn-id: svn://10.0.0.236/trunk@59242 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 02:44:10 +00:00
michael.lowe%bigfoot.com
6856aa06f0 Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan
git-svn-id: svn://10.0.0.236/trunk@58358 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 21:56:09 +00:00
rods%netscape.com
2b7a1b6ca2 edge case PR_MAx should be against the insets sizes instead of zero
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@56401 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 19:55:20 +00:00
tbogard%aol.net
081927560a Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*.
git-svn-id: svn://10.0.0.236/trunk@54391 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:10 +00:00
kmcclusk%netscape.com
b383e76259 Removed build warning in nsCornerView::Paint on Linux by overriding both overloaded Paints. r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@54166 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 21:11:46 +00:00
beard%netscape.com
9a5f66247d pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov
git-svn-id: svn://10.0.0.236/trunk@53444 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 02:51:25 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
waterson%netscape.com
2fa1de35a2 Don't enable drag & drop on scrollbars. r=pink,hyatt
git-svn-id: svn://10.0.0.236/trunk@52574 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 21:03:46 +00:00
kin%netscape.com
9af25b17a4 Fix for bug #15360: Drag Selecting, Clicking, then Clicking leaves caret cruft.
r=troy@netscape.com,kipp@netscape.com,evaughan@netscape.com,beard@netscape.com

layout/html/base/src/nsGfxScrollFrame.cpp
    - Renamed all occurrences of ScrollPositionChanged() to
      to ScrollPositionDidChange() to match changes made
      to nsIScrollPositionListener.
    - Added ScrollPositionWillChange() stub method.

layout/html/base/src/nsPresShell.cpp
    - Added PresShellViewEventListener class that implements the
      nsIScrollPositionListener and nsICompositeListener view
      interfaces. This allows us to turn caret rendering on and off
      when scrolling and repainting to prevent leaving caret cruft
      on the screen.
    - PresShellViewEventListener is created in InitialReflow(), and
      released in ~PresShell().

view/public/Makefile.in
view/public/makefile.win
view/public/MANIFEST
    - Added nsICompositeListener to list of files to be exported.

view/public/nsICompositeListener.h
    - New file. Implementers of this interface can register themselves
      with the view manager to receive notification before and after
      a view is composited/refreshed.

view/public/nsIScrollPositionListener.h
    - Added a ScrollPositionWillChange() method.
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().

view/public/nsIViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener methods.

view/src/nsScrollingView.cpp
view/src/nsScrollingView.h
    - Added NotifyScrollPositionWillChange() and
      NotifyScrollPositionDidChange() methods.
    - Modified HandleScrollEvent() to call NotifyScrollPositionWill/DidChange()
      methods. Added temporary offsetX and offsetY variables to allow us
      to calculate new offsets without changing mOffsetX and mOffsetY before
      notifications are sent out.

view/src/nsScrollPortView.cpp
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().
    - Modified ScrollTo() to call the listener's ScrollPositionWillChange()
      method.

view/src/nsViewManager.cpp
view/src/nsViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener() methods.
    - Added support for CompositeListener notifications in the Refresh()
      methods for regions and rects.
    - Fix for bug #15901: [DOGFOOD] Selected text does not clear when you type
      Modified UpdateView() so that rects with zero width and height are
      no longer added to our damage region.
      r=beard@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50786 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:29:30 +00:00
pavlov%netscape.com
b5bbc1919b work to get drawing done based on regions and not rects a=shaver r=beard
git-svn-id: svn://10.0.0.236/trunk@49179 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:28:03 +00:00
beard%netscape.com
82a6ffbec0 bug #10503: override SetZIndex to propagate to child views. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48936 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:49 +00:00
joki%netscape.com
2fd324ac84 Add new scroll method to allow scrolling to top or bottom of doc.
git-svn-id: svn://10.0.0.236/trunk@48571 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:15:53 +00:00
beard%netscape.com
5d0b4bdd82 nsIScrollPositionListener support.
git-svn-id: svn://10.0.0.236/trunk@48173 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:42:11 +00:00
kin%netscape.com
d0370bd7bf Fix for bug #13440: Repaint problems when typing at the end of a document.
- modified nsScrollingView::ComputeScrollOffsets()
    so that it doesn't change the scrolled offsets
    just because the document size changed.


git-svn-id: svn://10.0.0.236/trunk@47644 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:53 +00:00
beard%netscape.com
58c9773eba switched to NS_GET_IID() where possible. fixed clipping bugs by making all widgets clip children and siblings.
git-svn-id: svn://10.0.0.236/trunk@47009 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 03:24:01 +00:00