19 Commits

Author SHA1 Message Date
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
pollmann%netscape.com
61d0f30aec Bug 42686: Remove an assertion which was preventing dogfood use on Mac. r=jst@netscape.com (thanks!)
git-svn-id: svn://10.0.0.236/trunk@74526 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 06:02:41 +00:00
sspitzer%netscape.com
a092cc2d34 workaround for smoketest blocker #42686
now we assert and gracefully continue, instead of crashing.
I'll go give this bug to a better owner.  a=brade, r=mscott


git-svn-id: svn://10.0.0.236/trunk@72323 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 21:20:19 +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
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
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
evaughan%netscape.com
edbfd05a90 1) created an nsIScrollableFrame interface make it possible for Chris K to fix PDP+ bug #12122
-r Troy


git-svn-id: svn://10.0.0.236/trunk@55520 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 03:36:05 +00:00
evaughan%netscape.com
cd59b4628b Turned gfx scrollbars on by default. -r Mcaffe
git-svn-id: svn://10.0.0.236/trunk@54347 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 00:21:12 +00:00
kin%netscape.com
53798ca2b2 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


git-svn-id: svn://10.0.0.236/trunk@53893 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 19:40:52 +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
mcafee%netscape.com
8ebe80d3dc Better warning messages. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@50707 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:13:39 +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