Commit Graph

102 Commits

Author SHA1 Message Date
kmcclusk%netscape.com
31beeacc3d 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


git-svn-id: svn://10.0.0.236/trunk@60242 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 15:48:01 +00:00
beard%netscape.com
5c1741c2f8 added Set/GetCompositorFlags(), which will eventually replace GetScratchPoint().
git-svn-id: svn://10.0.0.236/trunk@59453 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:58:22 +00:00
kmcclusk%netscape.com
62e366a2dc Added missing nsIViewManager methods to nsViewManager2.h and nsViewManger2.cpp.
bug=22069; r=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@58866 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 02:23:34 +00:00
kmcclusk%netscape.com
5f7ac3effb 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


git-svn-id: svn://10.0.0.236/trunk@58838 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 23:04:40 +00:00
beard%netscape.com
c956c22a62 floating views. bug=21966, r=troy, rods, a=brendan
git-svn-id: svn://10.0.0.236/trunk@58504 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 01:53:34 +00:00
rods%netscape.com
99432f125e temprary fix for combobox dropdowns that jump all around.
r=beard a=chofmann bug 19416


git-svn-id: svn://10.0.0.236/trunk@55990 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 22:21:58 +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
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
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
evaughan%netscape.com
b6c93b5c5c Integrated Gfx scrollbars.
git-svn-id: svn://10.0.0.236/trunk@50385 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:16:06 +00:00
beard%netscape.com
0193ba8474 bug #7774: added new bit NS_VIEW_PUBLIC_FLAG_AUTO_ZINDEX, SetAutoZIndex/GetAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48937 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:54 +00:00
beard%netscape.com
5ead22a8f0 bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48935 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:47 +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
bed21decdf bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager.
git-svn-id: svn://10.0.0.236/trunk@48231 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:51:41 +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
beard%netscape.com
6d185a4226 Added nsIScrollPositionListener.h
git-svn-id: svn://10.0.0.236/trunk@48172 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:39:03 +00:00
beard%netscape.com
3c26e02bfe First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48171 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:34:49 +00:00
beard%netscape.com
98dbc40cfb switched to NS_DEFINE_STATIC_IID_ACCESSOR
git-svn-id: svn://10.0.0.236/trunk@47086 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 03:04:17 +00:00
beard%netscape.com
64698597cc switched to NS_DEFINE_STATIC_IID_ACCESSOR, removed extraneous AddRef, Release declarations.
git-svn-id: svn://10.0.0.236/trunk@47085 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 03:03:42 +00:00
briano%netscape.com
e0bf25c550 Cleaned it up and eliminated the pointless #!gmake.
git-svn-id: svn://10.0.0.236/trunk@45591 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 00:30:07 +00:00
cyeh%netscape.com
e066f641bc Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
git-svn-id: svn://10.0.0.236/trunk@45411 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:24:51 +00:00
beard%netscape.com
39cdb750f7 Changed GetIID() to NS_DEFINE_STATIC_IID_ACCESSOR.
git-svn-id: svn://10.0.0.236/trunk@44974 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-28 03:01:32 +00:00
rods%netscape.com
08086bda14 The method nsIView::CreateView has parameter that indicates whether D&D for the widget
should be turned on or not. This make it configurable from the outside,
it is needed for the editor


git-svn-id: svn://10.0.0.236/trunk@44673 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 14:41:18 +00:00
warren%netscape.com
411f68d823 More necko changes.
git-svn-id: svn://10.0.0.236/trunk@36817 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 01:53:22 +00:00
buster%netscape.com
bd1a695a05 added GetIID static methods to public interfaces. Code-reviewed by Kevin M.
git-svn-id: svn://10.0.0.236/trunk@36751 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 22:40:53 +00:00
kin%netscape.com
18516ebae7 Added implementation of BeginUpdateViewBatch() and
EndUpdateViewBatch() to nsIViewManager and nsViewManager.


git-svn-id: svn://10.0.0.236/trunk@32710 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:13:06 +00:00
evaughan%netscape.com
e737c85970 Fixed some visibility bugs in order to make the tab widget work correctly.
git-svn-id: svn://10.0.0.236/trunk@32341 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 22:14:11 +00:00
troy%netscape.com
9a1dc08b89 Removed #define ALL_VIEW_FLAGS which is no longer used
git-svn-id: svn://10.0.0.236/trunk@29087 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 22:58:14 +00:00
troy%netscape.com
d40fa73ba2 Added function GetClipView()
git-svn-id: svn://10.0.0.236/trunk@29020 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 02:52:58 +00:00
troy%netscape.com
670ba61106 Made a bunch of nsIView member functions "const"
git-svn-id: svn://10.0.0.236/trunk@28890 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 17:44:48 +00:00
troy%netscape.com
a61ea51499 Changed a comment a little
git-svn-id: svn://10.0.0.236/trunk@28528 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:22:22 +00:00
troy%netscape.com
85cdb24b54 Added NS_VIEW_FLAG_DONT_BITBLT flag
git-svn-id: svn://10.0.0.236/trunk@28527 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:08:27 +00:00
michaelp%netscape.com
303a27ec58 a parting shot.
git-svn-id: svn://10.0.0.236/trunk@27912 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 21:22:45 +00:00
michaelp%netscape.com
5669c172c3 added GetExtents().
git-svn-id: svn://10.0.0.236/trunk@27822 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 04:50:02 +00:00
michaelp%netscape.com
d8c7e182c0 cleaned up view flags stuff.
git-svn-id: svn://10.0.0.236/trunk@27817 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 04:23:43 +00:00
michaelp%netscape.com
ed7c96c44c added Set/GetLineHeight().
git-svn-id: svn://10.0.0.236/trunk@24524 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 01:25:37 +00:00
michaelp%netscape.com
bc79a637e9 added APIs for scrolling by page or line.
git-svn-id: svn://10.0.0.236/trunk@24504 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:11:35 +00:00
michaelp%netscape.com
53ce63ea80 fixed bug where out of order computation of child view positions and scroll
offsets in layout, widgets could be in different places than their views.
made nsView::List() print out all units in app units.


git-svn-id: svn://10.0.0.236/trunk@24322 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-18 21:04:00 +00:00
michaelp%netscape.com
81f9258975 added nsIClipView.h
added support for getting/setting scroll properties in scrollable view so
that the app can control whether scrolling should be accomplished via
blitting or painting.
more work in progress for the new compositor.


git-svn-id: svn://10.0.0.236/trunk@23381 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 22:10:31 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
joki%netscape.com
c41dbba1c6 Fix for frames not resizing.
git-svn-id: svn://10.0.0.236/trunk@22676 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 01:59:50 +00:00
michaelp%netscape.com
d1f2203c7c added unknown content quality. fixed potential crash because of bug in timer
code. now uses rootscrollable for all scrollable view notifications.


git-svn-id: svn://10.0.0.236/trunk@20823 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:57:45 +00:00
michaelp%netscape.com
1b2aa59d45 added Get/SetScrollableRoot() to nsIViewManager. fixed bug where maximizing
window would cause junk to be shown below/to the right of the real content
if the document was scrolled towards bottom/right. fixed flashing scrollbar
problem. made quality control work again.


git-svn-id: svn://10.0.0.236/trunk@20751 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:57:06 +00:00
troy%netscape.com
832f79717f Added GetScrollbarVisibility()
git-svn-id: svn://10.0.0.236/trunk@19409 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:31 +00:00
michaelp%netscape.com
9548d7fa85 work in progress for new compositor. not currently enabled, so it won't
affect anyone else. killed Paint() method of scrolling view since it
no longer does anything useful. made view manager destructor protected to
eliminate gcc warnings.


git-svn-id: svn://10.0.0.236/trunk@19406 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:12:21 +00:00
joki%netscape.com
f85ee98763 Modifying view event flow to always start processing from top view, not enter at children
git-svn-id: svn://10.0.0.236/trunk@19215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:45:59 +00:00
troy%netscape.com
dcfe7f9e75 Added additional parameter to Display() for specifying which view
should be displayed


git-svn-id: svn://10.0.0.236/trunk@15902 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:44:57 +00:00
cyeh%netscape.com
79654fb86d Removing static makefiles as a part of the transition to Autoconf. I have taken great
care to only remove makefiles affailiated with building nglayout. I have also verified that
the build at this point in time succesfully builds with autoconf.

If you must recover one of these makefiles, you can use the static tag STATIC_MAKEFILES.
If I removed a makefile that you need, please e-mail cyeh@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@15084 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:34:32 +00:00
michaelp%netscape.com
1f112558cd changes to support printing.
git-svn-id: svn://10.0.0.236/trunk@14649 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:58:34 +00:00