159 Commits

Author SHA1 Message Date
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
dbaron%fas.harvard.edu
8b3489a026 Bug 86947:
Make the line list doubly linked and access it through a list class and iterators.
Stop recomputing margins on all of the children of each block in the reflow chain (which causes O(N^2) state recovery during incremental reflow).  Instead, add a second dirty bit to the lines and walk backwards through the line list to recompute vertical margins only when either dirty bit is set and the previous line was not reflowed.  Add nsIFrame::IsEmpty to identify frames through which margins collapse.
Fix O(N^2) propagation of float damage by maintaining a set of intervals damaged by floats (bug 61962) and be sure to damage the correct areas (bug 48138).
Introduce nsCollapsingMargin to do correct collapsing of combinations of positive and negative margins (bug 50142).
Clean up some odds and ends and fix another smaller O(N^2) problem in nsBlockFrame::AddFrames.
r=attinasi, rbs  sr=waterson


git-svn-id: svn://10.0.0.236/trunk@106224 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 01:08:40 +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
karnaze%netscape.com
1540a4c12e bug 68998 - added extra param to Paint, PaintChild, PaintChildren used by tables in standard mode. sr=waterson, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@103193 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 12:35:19 +00:00
hyatt%netscape.com
b7b1cb3691 Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson
git-svn-id: svn://10.0.0.236/trunk@96136 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 22:19:43 +00:00
hyatt%netscape.com
c51a96b825 Fix for 77002. reviewers=jst,waterson,hixie,shaver,brendan,pavlov
git-svn-id: svn://10.0.0.236/trunk@93083 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-25 19:52:49 +00:00
sfraser%netscape.com
a9ca071a88 Blue boxes be gone! Fixing 58121, r=jfrancis, sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@92045 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-12 01:26:57 +00:00
kmcclusk%netscape.com
631e1e02b3 Removed code which prevented reparenting of views + added code to check floating child list when reparenting views bug 71032; sr = waterson@netscape.com; r=dcone@netscape.com
git-svn-id: svn://10.0.0.236/trunk@90254 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 14:43:09 +00:00
pierre%netscape.com
8944a57fe0 Reinstate my changes that were backed out 10 days ago. #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. r=attinasi,sr=buster.
git-svn-id: svn://10.0.0.236/trunk@86533 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 09:57:26 +00:00
mcafee%netscape.com
644a6ffc68 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil
git-svn-id: svn://10.0.0.236/trunk@85463 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 02:58:12 +00:00
pierre%netscape.com
148e913722 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster.
git-svn-id: svn://10.0.0.236/trunk@85210 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-20 22:46:54 +00:00
rods%netscape.com
a6e0d47c5a removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
dbaron%fas.harvard.edu
b4de65c19e Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@84233 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 19:22:22 +00:00
dbaron%fas.harvard.edu
71c441c81a Paint backgrounds and borders for inline elements in the foreground layer. b=36710, 27757 r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78110 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 21:45:47 +00:00
roc+%cs.cmu.edu
91d3cb9ba7 Adding call to new view API so that the view of a fixed-position frame has a Z-order/clipping parent which is not its geometric parent. Bug 39621. r,a=waterson
git-svn-id: svn://10.0.0.236/trunk@76224 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 19:44:11 +00:00
sfraser%netscape.com
7726da891c Fix for bug 25161 -- allow editor to handle pages with forms by implementing user-select and user-input for form controls. r=rods, pierre, mjudge.
git-svn-id: svn://10.0.0.236/trunk@75830 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:38:00 +00:00
dcone%netscape.com
e217756243 Check to see if the view had been reparented.. b=44718 a=mcclusk
git-svn-id: svn://10.0.0.236/trunk@75786 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:11:09 +00:00
cmanske%netscape.com
ca87bdf4d5 Add code to paint selection border around Named Anchor frames when rect is not null - used only in Editor when Named Anchor is represented by an image. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@70116 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:12:54 +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
97e6e61f3c Backing out troy's changes to fix various UI blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@66999 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:15:55 +00:00
troy%netscape.com
e5cd366545 Fixed CreateViewForFrame() to check for a block-level frame with
'overflow' set to 'hidden' and force the frame to have a view. This
way child frames with views are clipped correctly


git-svn-id: svn://10.0.0.236/trunk@66905 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:55:27 +00:00
pierre%netscape.com
c84deb6d8c Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.

In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.


git-svn-id: svn://10.0.0.236/trunk@63284 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 10:15:13 +00:00
troy%netscape.com
53dff23713 b=5588. Added new function ReparentFrameViewList() that is much faster
then ReparentFrameView() when you have a list of child frames


git-svn-id: svn://10.0.0.236/trunk@62683 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 03:09:36 +00:00
troy%netscape.com
60471abd92 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.


git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
troy%netscape.com
2ea5ceca9c Changed to respect 'z-index' of 'auto' and call SetViewAutoZIndex()
git-svn-id: svn://10.0.0.236/trunk@55713 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:49:20 +00:00
pierre%netscape.com
1b8f60a970 Backing-out previous change which had the effect of getting rid of the widgets for *all* fixed positioned elements. Removing widgets is a goal at term but it's something that we want to leave to the View Manager folk(s) or at least do in sync with them.
git-svn-id: svn://10.0.0.236/trunk@54869 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 05:10:50 +00:00
pierre%netscape.com
ebcb5ad836 18163 "Use of fixed positioning in style sheet corrupts display". Don't create empty widgets for fixed positioned elements in order to avoid problems in the View Manager (GetDrawingSurface) where we end up copying uninitialized bitmaps to the screen. The main reason for fixing the bug here instead of within the View Manager is that we'll get rid of widgets altogether over time.
git-svn-id: svn://10.0.0.236/trunk@54860 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 04:10:02 +00:00
tbogard%aol.net
ae5a81e394 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +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
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
peterl%netscape.com
12c3349911 manage view visibility better, hide collapsed views and hidden views with widgets
git-svn-id: svn://10.0.0.236/trunk@49293 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:37:02 +00:00
troy%netscape.com
e5689ac462 Fixes for bug #2552 and bug #10961
git-svn-id: svn://10.0.0.236/trunk@49106 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 20:40:29 +00:00
troy%netscape.com
0ab7c093cb In CreateViewForFrame() removed code that was hiding view if the 'visibility'
property is 'hidden'


git-svn-id: svn://10.0.0.236/trunk@47531 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 04:54:00 +00:00
troy%netscape.com
98eca67db2 Removed code in CreateViewForFrame() that always forced relatively positioned
and absolutely positioned frames to have transparent views. It's not needed
now that bug #11637 is fixed


git-svn-id: svn://10.0.0.236/trunk@47520 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 04:16:31 +00:00
troy%netscape.com
24ca350dea Fixed compiler warning
git-svn-id: svn://10.0.0.236/trunk@45434 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 04:32:45 +00:00
troy%netscape.com
e5df81af3d Fix for bug #12864. Changed CreateViewForFrame() so it respects the z-index
of relatively positioned elements


git-svn-id: svn://10.0.0.236/trunk@45404 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:10:24 +00:00
kipp%netscape.com
eccd6aa43e Don't paint frames that are unflowable
git-svn-id: svn://10.0.0.236/trunk@44925 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 21:48:21 +00:00
troy%netscape.com
d4fd1d71b2 Reworked ReparentFrameView() to make it more efficient
git-svn-id: svn://10.0.0.236/trunk@44323 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 19:26:03 +00:00
rods%netscape.com
828bda63fb added PaintOutline to paint CSS outlines to paint method
git-svn-id: svn://10.0.0.236/trunk@43619 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:35:48 +00:00
peterl%netscape.com
20d229264a moved scrolled content pseudo to layout atoms
git-svn-id: svn://10.0.0.236/trunk@42680 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 01:15:30 +00:00
kipp%netscape.com
d1764fc8aa Eliminate a warning
git-svn-id: svn://10.0.0.236/trunk@39302 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 17:28:00 +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
42adb09633 Fixed a problem where CreateViewForFrame() was setting NS_VIEW_PUBLIC_FLAG_DONT_BITBLT
all the time


git-svn-id: svn://10.0.0.236/trunk@29033 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 04:53:42 +00:00
troy%netscape.com
5e6d93b0e1 Changed the handling for fixed backgrounds a little
git-svn-id: svn://10.0.0.236/trunk@28552 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 22:08:01 +00:00
troy%netscape.com
e6f57956c0 Changed CreateViewForFrame() so it takes into account fixed background
attachments and sets NS_VIEW_PUBLIC_FLAG_DONT_BITBLT


git-svn-id: svn://10.0.0.236/trunk@28529 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:27:50 +00:00
troy%netscape.com
a40295762e Added ReparentFrameView() and changed the block and inline code
to call it when pushing/pulling frames


git-svn-id: svn://10.0.0.236/trunk@27086 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-11 04:22:00 +00:00
troy%netscape.com
d98d250538 Added a comment
git-svn-id: svn://10.0.0.236/trunk@26412 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 02:57:47 +00:00
kipp%netscape.com
9e4c4cb1e3 Whacked paint methods to use new constants
git-svn-id: svn://10.0.0.236/trunk@25154 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 00:39:35 +00:00
peterl%netscape.com
233822bc0d augmented ReResolveStyleContext to capture style change information
git-svn-id: svn://10.0.0.236/trunk@25093 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 06:43:38 +00:00