Граф коммитов

435 Коммитов

Автор SHA1 Сообщение Дата
evaughan%netscape.com 6b5c2cada7 Turned on widget move coelescing in view manager.
-r troy, kevin m
2000-04-03 04:57:42 +00:00
evaughan%netscape.com 21e503b111 1) viewmanager2 optimizations -r troy, kevin
2) box fixes for Rod's gfx listbox
3) memory leak fixes
4) box fixes in prep for grid widget
2000-04-03 03:55:38 +00:00
beard%netscape.com 3f7112917f bug #33219: blendRect was incorrect, damageRect is sufficient. r=pavlov 2000-03-29 00:58:11 +00:00
kmcclusk%netscape.com 2ff8088a3e Added MOZ_PERF timer code to viewmanager to time rendering b=29308 r=attanasi@netscape.com 2000-03-27 22:00:19 +00:00
beard%netscape.com b529051831 bug #33091, be more conservative about blend buffer dimensions, r=kmcclusk 2000-03-24 21:35:07 +00:00
kmcclusk%netscape.com 6131fcdb0b Added capability to view manager to offset its coordinate space b=32161 r=attanasi@netscape.com 2000-03-23 23:49:18 +00:00
dbaron%fas.harvard.edu 87e19c9cef 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. 2000-03-22 02:43:08 +00:00
kmcclusk%netscape.com 498a49a30a Initialize the result value in nsViewManager::SetFrameRate b=32381 r=rods@netscape.com 2000-03-21 21:47:50 +00:00
kmcclusk%netscape.com 806bd65dd6 #ifdef'ed out timer used to flush paints. It is not needed b=31407 r=attanasi@netscape.com
Changed mVMCount from PRUint32 to PRInt32 to make ASSERTION checking for a negative value in mWMCount valid
b=11674 r=attanasi@netscape.com
2000-03-17 22:27:26 +00:00
beard%netscape.com b5a02ce574 bug 25050, fix incorrect usage of mPainting variable. r=jband 2000-03-16 22:55:42 +00:00
dcone%netscape.com 051d4fda39 Support for Blending added. r=beard 2000-03-16 05:05:12 +00:00
kmcclusk%netscape.com 619c64eaa3 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.
2000-03-15 01:20:07 +00:00
mkaply%us.ibm.com 3958555311 # 25555
r= beard@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-02-29 22:07:34 +00:00
beard%netscape.com f3eb29ca26 bug 20185 [PDT+], landing nsViewManager2, r=sfraser 2000-02-16 05:52:44 +00:00
beard%netscape.com 56f2be9125 bug 25336, fixes incorrect usage of unsigned integer causing an infinite loop, r=jst@citec.fi (he originated the patch). 2000-02-15 22:11:31 +00:00
kmcclusk%netscape.com cd6f5d237b Prevent synchronous paints during reflows bug 20150; r=rods@netscape.com
Call SetTextAlign within SetupDC instead of in each DrawString on WIN32. bug 26973; r=rods@netscape.com
2000-02-09 15:48:01 +00:00
beard%netscape.com b8e6b2f9ba added blending logic 2000-02-09 02:53:09 +00:00
beard%netscape.com cebe1b5b9a OptimizeDisplayList() changes. 2000-02-08 03:05:00 +00:00
scc%netscape.com 73802d6f2e Pro5 update 2000-02-07 23:06:04 +00:00
beard%netscape.com d174fca4fc removed unused enums, turned double buffering back on, added test for opaque views that occlude other views. r=pavlov 2000-02-05 04:13:29 +00:00
beard%netscape.com 54cd7346f1 changed test of mClip from (left == right) && (top == bottom) to (left == 0) && (right == 0) && (top == 0) && (bottom == 0). Added test for empty clip rect, to avoid painting. Added an assert to make sure mClip is set to reasonable values. r=pavlov 2000-02-05 04:11:55 +00:00
beard%netscape.com f572ef11fb made using nsViewManager2 depend on the preference "nglayout.view.useViewManager2". r=pavlov, kmcclusk 2000-02-05 03:02:10 +00:00
brade%netscape.com 27ca515c4c fix access paths for move to CW5 (bug #25949) 2000-02-02 22:45:39 +00:00
beard%netscape.com afaf5c36e3 added IsClipView() predicate, preliminary support for the new front-to-back display list partitioner. 2000-02-02 01:00:23 +00:00
beard%netscape.com e9c67d9729 added Set/GetCompositorFlags(), which will eventually replace GetScratchPoint(). 2000-02-02 00:58:22 +00:00
waterson%netscape.com 1f469a689a Undo the optimization: it breaks the addressing widget :-(. 2000-02-01 08:13:12 +00:00
waterson%netscape.com 92a8f5fb23 Optimize MoveViewTo() to only move the view if aX != oldX and aY != oldY. This cuts out about 10% on large web pages that slam the status bar, because boxes seem to want to reposition the widget at the same place over and over. r=pavlov 2000-02-01 01:14:49 +00:00
jdunn%netscape.com d873ae6b92 changing static_cast to use NS_STATIC_CAST instead... 2000-01-31 15:37:51 +00:00
dbaron%fas.harvard.edu 1946b31471 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
2000-01-31 02:44:10 +00:00
kmcclusk%netscape.com 1996c7ecd8 Added missing nsIViewManager methods to nsViewManager2.h and nsViewManger2.cpp.
bug=22069; r=attinasi@netscape.com
2000-01-27 02:23:34 +00:00
kmcclusk%netscape.com eeeb109f4c Added support for widgetless viewmanager. Changed code pattern that assumed the root view
always has a nsIWidget instance to call viewmanager to get widget instance. b=22069; r=rods@netscape.com
2000-01-26 23:04:40 +00:00
beard%netscape.com 7226bc7257 floating views. bug=21966, r=troy, rods, a=brendan 2000-01-25 01:53:34 +00:00
dougt%netscape.com 0b0346079c Landing nsIFile. 2000-01-24 21:28:28 +00:00
michael.lowe%bigfoot.com 6696fa133b 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 2000-01-21 21:56:09 +00:00
beard%netscape.com f74e58124f USE_NEW_COMPOSITOR=1 for M13. r=vidur,troy a=jar 2000-01-21 02:06:22 +00:00
joki%netscape.com c01356f9ea Fix bug 24310 by backing out fix for 21304. a:chofmann 2000-01-19 22:34:47 +00:00
joki%netscape.com a20a8e867b fix bug 21304, hidden views stealing events. r:rods 2000-01-18 15:15:23 +00:00
beard%netscape.com fc4e9ce477 turned on usage of nsViewManager2, which seems to fix some important bugs on linux, such as #20185, and definitely #21405. r=pavlov 2000-01-17 00:52:39 +00:00
pavlov%netscape.com 8dbe181464 build nsViewManager2.cpp on windows r=beard 2000-01-17 00:45:51 +00:00
pavlov%netscape.com 29fdfdb559 build nsViewManager.cpp on linux r=beard 2000-01-17 00:43:57 +00:00
beard%netscape.com 639bcc28ec cleaned up, removed NSGetFactory, added conditional usage of nsViewManager2, which will be turned on soon. r=pavlov 2000-01-17 00:43:36 +00:00
beard%netscape.com f03825bf41 forward declaring nsIViewManager rather than including nsViewManager.h. r=pavlov 2000-01-17 00:43:02 +00:00
beard%netscape.com 0a5199b6ca Added nsViewManager2.cpp. r=sfraser 2000-01-16 23:08:50 +00:00
beard%netscape.com f2501edaff Simple back to front compositor. 2000-01-16 22:28:28 +00:00
pp%ludusdesign.com 698852a4f4 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
rods%netscape.com 9bfe69e935 edge case PR_MAx should be against the insets sizes instead of zero
r=kmcclusk
1999-12-22 19:55:20 +00:00
ftang%netscape.com 982fa55c82 partial fix for bug 15533 (size part). 1. change the return value from nsPiont to nsRect. Change widget code to reflect the change. In Gtk, change XIM FontSet based on the rect height. r=cata a=chofmann 1999-12-22 07:56:40 +00:00
rods%netscape.com 4cf3515a9b temprary fix for combobox dropdowns that jump all around.
r=beard a=chofmann bug 19416
1999-12-14 22:21:58 +00:00
evaughan%netscape.com 29c18fc081 1) created an nsIScrollableFrame interface make it possible for Chris K to fix PDP+ bug #12122
-r Troy
1999-12-07 03:36:05 +00:00
ftang%netscape.com 5d9824b4bd add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550 1999-12-07 01:29:00 +00:00
beard%netscape.com aaf92bbeb3 bug #20504: fix crash when printing. r=joki 1999-12-02 05:13:56 +00:00
beard%netscape.com 7ec4e61f10 bug #17574: fixed ResizeView() to generate an update for the bounding box of old and new bounds of the view, instead of the entire parent view (duh!). this can be optimized further by doing separate updates if old and new aren't overlapping. r=kin 1999-12-01 22:58:24 +00:00
beard%netscape.com 77bb44b0a4 bug #13131, 18140: now accumulating paint requests into a region for each view that has a widget. r=pavlov 1999-11-30 22:27:56 +00:00
tbogard%aol.net 4b3666e214 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. 1999-11-24 06:03:10 +00:00
evaughan%netscape.com d39dc9f975 Turned gfx scrollbars on by default. -r Mcaffe 1999-11-24 00:21:12 +00:00
kmcclusk%netscape.com 950dcf2670 Removed build warning in nsCornerView::Paint on Linux by overriding both overloaded Paints. r=buster@netscape.com 1999-11-22 21:11:46 +00:00
kin%netscape.com 9ce2f08c0b Fix for bug #17989: Selection AutoScrolling broken when using GFX Scrollbars
layout/base/src/nsRangeList.cpp
        - Added ConstrainFrameAndPointToAnchorSubtree() and various utility
          methods.
        - Modified HandleDrag() to call ConstrainFrameAndPointToAnchorSubtree().

    layout/html/base/src/nsFrame.cpp
        - Modified GetContentAndOffsetFromPoint() to skip over generated
          and anonymous content frames.

    layout/html/base/src/nsGfxScrollFrame.cpp
    layout/html/base/src/nsGfxScrollFrame.h
        - Override the default nsFrame::GetContentAndOffsetsFromPoint()
          implementation with a version that calls
          mInner->GetContentAndOffsetsFromPoint(). This prevents the
          scrollbar frames from being included in the search.

    view/src/nsScrollPortView.cpp
        - Fixed bug where GetContainerSize() was returning the size of the
          ScrollPortView instead of the ScrolledView.

r=evaughan@netscape.com
1999-11-18 19:40:52 +00:00
jdunn%netscape.com e871be6de2 Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
beard%netscape.com 049ea93493 partial reversion of view manager, to fix XP menu breakage on windows. 1999-11-14 05:47:00 +00:00
beard%netscape.com 7b5640c230 fix VC5 bustage, needed to add const qualifiers to GetWidgetView, ViewToWidget. 1999-11-14 03:53:51 +00:00
beard%netscape.com 65a3476676 pork jockey paint fixes. bug=18140, r=kmcclusk,pavlov 1999-11-14 02:51:25 +00:00
beard%netscape.com 86fab6c4bc update just a touch more when resizing views. bug=17574, r=pavlov, a=chofmann 1999-11-08 04:06:59 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
waterson%netscape.com 230c1759f0 Don't enable drag & drop on scrollbars. r=pink,hyatt 1999-11-02 21:03:46 +00:00
ramiro%fateware.com b1fdfd6b17 Link in raptorgfx dynamically to make the component properly loadable.
regxpcom was breaking on this one.  r=valeski
1999-10-22 05:06:39 +00:00
kin%netscape.com 6762dd27f5 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
1999-10-15 04:29:30 +00:00
mcafee%netscape.com 686fad008b Better warning messages. r=pavlov. 1999-10-14 23:13:39 +00:00
waterson%netscape.com 5dfc8de829 Add nsScrollPortView.cpp to the build to get around undefined symbols at startup: looks like it got missed on Unix. 1999-10-12 04:41:07 +00:00
waterson%netscape.com 8241422540 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 02:10:08 +00:00
evaughan%netscape.com 05d9fa061b added files: mozilla/view/src/nsScrollPortView.cpp 1999-10-12 00:16:34 +00:00
evaughan%netscape.com f3a2112f38 Integrated Gfx scrollbars. 1999-10-12 00:16:06 +00:00
dveditz%netscape.com ff01d5e8f4 Fixing 8.3 library name problems, bugs 10355, 10359,10364, 10365, 10372, 11796, 11791. Checking in for cathleen, r=dveditz 1999-10-10 01:32:59 +00:00
kipp%netscape.com 65f6ba5343 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
warren%netscape.com 8c71c45537 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
kipp%netscape.com 45062bc473 r=beard; Added in ctor/dtor counting 1999-10-05 14:52:53 +00:00
beard%netscape.com 9eae33066d changed from directly using "MSL DropInRuntime.Lib" to using "NSComponentStartup.o" to enable GC leak detector. r=smfr 1999-10-03 20:46:23 +00:00
peterl%netscape.com c32fdd9ce6 when hiding a view, invalidate the parent view since the hidden view will reject the invalidate 1999-09-29 03:29:21 +00:00
pinkerton%netscape.com 1de56fc7bf don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf. 1999-09-28 21:23:32 +00:00
pavlov%netscape.com 9018ba8840 work to get drawing done based on regions and not rects a=shaver r=beard 1999-09-28 01:28:03 +00:00
dp%netscape.com 204a794ed9 raptorview into component 1999-09-28 00:58:35 +00:00
dp%netscape.com 5e1a489b0a raptorview into component 1999-09-28 00:52:36 +00:00
dp%netscape.com 4b2dd031d4 Converting ViewFactory to nsIModule. 1999-09-27 23:55:05 +00:00
beard%netscape.com ff9ac41de5 leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr. 1999-09-27 17:48:33 +00:00
beard%netscape.com 568fe5021e bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy 1999-09-23 23:26:57 +00:00
beard%netscape.com a725e87b49 bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. bug# 14601: assertion cleanup, using #ifdef instead of if (gsDebug). a=leaf, r=troy 1999-09-23 23:26:55 +00:00
beard%netscape.com 9ce828e930 bug #7774: added new bit NS_VIEW_PUBLIC_FLAG_AUTO_ZINDEX, SetAutoZIndex/GetAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy 1999-09-23 23:26:54 +00:00
beard%netscape.com 0cc9f5ea7f bug #10503: override SetZIndex to propagate to child views. a=leaf, r=troy 1999-09-23 23:26:49 +00:00
beard%netscape.com 331a31bd12 bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. a=leaf, r=troy 1999-09-23 23:26:47 +00:00
joki%netscape.com b4f1ed1265 Add new scroll method to allow scrolling to top or bottom of doc. 1999-09-21 14:15:53 +00:00
beard%netscape.com 211161b53d bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. 1999-09-19 00:51:41 +00:00
beard%netscape.com 4ba19f3a53 nsIScrollPositionListener support. 1999-09-18 04:42:11 +00:00
beard%netscape.com 4fca2fc2b8 Added nsIScrollPositionListener.h 1999-09-18 04:39:03 +00:00
beard%netscape.com bb1ebef81d First Checked In. 1999-09-18 04:34:49 +00:00
warren%netscape.com 30cbaf7840 Added missing rv initialization which was causing the component manager to fail under purify. Submitted bug #14130 to dp about the component manager problem. 1999-09-17 07:09:42 +00:00
briano%netscape.com 49a9c60d81 General cleanup. 1999-09-15 23:36:43 +00:00
kin%netscape.com af323a9056 Fix for bug #13439: SelectAll Delete does not repaint entire edit area
- Removed all references to mUpdateBatchCnt
    in nsViewManager::UpdateView().

  - The methods Enable/DisableRefresh() now check to
    see if we are batching before executing their code.
    This will prevent any layout/parser code from turning
    on refresh before all Begin/EndUpdateViewBatch() calls
    are unwound.
1999-09-15 20:39:03 +00:00
kin%netscape.com 8d6fbf7f64 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.
1999-09-15 20:38:53 +00:00
ramiro%netscape.com e8ba593918 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
danm%netscape.com c16e63e306 reorder treatment of refcount during release. fixes bug 13556 1999-09-15 00:15:25 +00:00
beard%netscape.com 066b7b0cfe using generic factory for nsViewManager creation, removed extraneous calls to AddRef/Release of created views. 1999-09-13 03:34:56 +00:00