Commit graph

260 commits

Author SHA1 Message Date
roc+%cs.cmu.edu
c88233916b Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi 2001-12-01 14:31:45 +00:00
roc+%cs.cmu.edu
c26c9711f3 My cleanup checkin for bug 73382 caused 5% increase in page load times. Backing out. 2001-11-24 05:37:25 +00:00
roc+%cs.cmu.edu
04ab1d58c5 View manage interface cleanup. Bug 73382. r=kmcclusk, sr=attinasi 2001-11-22 05:26:32 +00:00
dbaron%fas.harvard.edu
157c017816 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
2001-10-25 01:08:40 +00:00
gerv%gerv.net
4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
karnaze%netscape.com
e908dd0313 bug 68998 - added extra param to Paint, PaintChild, PaintChildren used by tables in standard mode. sr=waterson, r=alexsavulov. 2001-09-19 12:35:19 +00:00
hyatt%netscape.com
b135c5b55a Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
hyatt%netscape.com
8130400b54 Fix for 77002. reviewers=jst,waterson,hixie,shaver,brendan,pavlov 2001-04-25 19:52:49 +00:00
sfraser%netscape.com
4db4964a91 Blue boxes be gone! Fixing 58121, r=jfrancis, sr=attinasi. 2001-04-12 01:26:57 +00:00
kmcclusk%netscape.com
a48e4337a0 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 2001-03-23 14:43:09 +00:00
pierre%netscape.com
9af01acf22 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. 2001-02-07 09:57:26 +00:00
mcafee%netscape.com
7ecf530933 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil 2001-01-25 02:58:12 +00:00
pierre%netscape.com
62bf433a35 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
rods%netscape.com
edb0c6270c removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson
2001-01-04 20:44:42 +00:00
dbaron%fas.harvard.edu
caa9658024 Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com 2000-12-30 19:22:22 +00:00
dbaron%fas.harvard.edu
63c72036b9 Paint backgrounds and borders for inline elements in the foreground layer. b=36710, 27757 r=buster@netscape.com 2000-09-04 21:45:47 +00:00
roc+%cs.cmu.edu
e48b1ae6a0 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 2000-08-12 19:44:11 +00:00
sfraser%netscape.com
9aa82a567b 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. 2000-08-08 23:38:00 +00:00
dcone%netscape.com
0ca85e6a01 Check to see if the view had been reparented.. b=44718 a=mcclusk 2000-08-08 14:11:09 +00:00
cmanske%netscape.com
b206aff8c8 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 2000-05-16 22:12:54 +00:00
troy%netscape.com
6b04c3b5fa Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem
2000-04-25 04:43:11 +00:00
putterman%netscape.com
42e26161e8 Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:15:55 +00:00
troy%netscape.com
7b7f5b686e 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
2000-04-23 04:55:27 +00:00
pierre%netscape.com
4d43de09aa 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. 2000-03-17 10:15:13 +00:00
troy%netscape.com
1bc0e305c9 b=5588. Added new function ReparentFrameViewList() that is much faster
then ReparentFrameView() when you have a list of child frames
2000-03-12 03:09:36 +00:00
troy%netscape.com
8a78d916a5 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
troy%netscape.com
c0644e2987 Changed to respect 'z-index' of 'auto' and call SetViewAutoZIndex() 1999-12-08 04:49:20 +00:00
pierre%netscape.com
97457e62bb 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. 1999-12-01 05:10:50 +00:00
pierre%netscape.com
ce15b0c85d 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. 1999-12-01 04:10:02 +00:00
tbogard%aol.net
af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +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
troy%netscape.com
87afecabc0 Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
peterl%netscape.com
cd5a8a17d1 manage view visibility better, hide collapsed views and hidden views with widgets 1999-09-29 03:37:02 +00:00
troy%netscape.com
9430750742 Fixes for bug #2552 and bug #10961 1999-09-26 20:40:29 +00:00
troy%netscape.com
46f7140270 In CreateViewForFrame() removed code that was hiding view if the 'visibility'
property is 'hidden'
1999-09-15 04:54:00 +00:00
troy%netscape.com
5c8341b9f0 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
1999-09-15 04:16:31 +00:00
troy%netscape.com
8ca21e9d4e Fixed compiler warning 1999-09-01 04:32:45 +00:00
troy%netscape.com
3688b0a7ce Fix for bug #12864. Changed CreateViewForFrame() so it respects the z-index
of relatively positioned elements
1999-09-01 01:10:24 +00:00
kipp%netscape.com
a990e6fdbf Don't paint frames that are unflowable 1999-08-27 21:48:21 +00:00
troy%netscape.com
46415e1c34 Reworked ReparentFrameView() to make it more efficient 1999-08-24 19:26:03 +00:00
rods%netscape.com
62ae1bfcf9 added PaintOutline to paint CSS outlines to paint method 1999-08-19 14:35:48 +00:00
peterl%netscape.com
7bf06a962e moved scrolled content pseudo to layout atoms 1999-08-08 01:15:30 +00:00
kipp%netscape.com
de21952346 Eliminate a warning 1999-07-14 17:28:00 +00:00
evaughan%netscape.com
a9d351ef30 Fixed some visibility bugs in order to make the tab widget work correctly. 1999-05-19 22:14:11 +00:00
troy%netscape.com
15e5859a59 Fixed a problem where CreateViewForFrame() was setting NS_VIEW_PUBLIC_FLAG_DONT_BITBLT
all the time
1999-04-24 04:53:42 +00:00
troy%netscape.com
ef791ed27c Changed the handling for fixed backgrounds a little 1999-04-21 22:08:01 +00:00
troy%netscape.com
7e9a5af5f7 Changed CreateViewForFrame() so it takes into account fixed background
attachments and sets NS_VIEW_PUBLIC_FLAG_DONT_BITBLT
1999-04-21 21:27:50 +00:00
troy%netscape.com
238ac2da4a Added ReparentFrameView() and changed the block and inline code
to call it when pushing/pulling frames
1999-04-11 04:22:00 +00:00
troy%netscape.com
634f3c9b44 Added a comment 1999-04-06 02:57:47 +00:00
kipp%netscape.com
60f52440cb Whacked paint methods to use new constants 1999-03-26 00:39:35 +00:00
peterl%netscape.com
32d3372e42 augmented ReResolveStyleContext to capture style change information 1999-03-25 06:43:38 +00:00
kipp%netscape.com
c9067260be Spanked to collapse inline-reflow with line-layout into line-layout; fixed bugs #1278, #1990, #3527, #1670, etc. 1999-03-18 21:03:25 +00:00
warren%netscape.com
4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
kipp%netscape.com
760dc4af42 Fixed remaining issues with operator new/delete 1999-02-26 19:26:29 +00:00
kipp%netscape.com
5fca6839f0 Removed MoveOutOfFlow 1999-02-26 17:07:01 +00:00
troy%netscape.com
da4193eab6 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
troy%netscape.com
03c5c1f520 Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
troy%netscape.com
da0991df28 Added CreateContinuingFrame() function to frame construction code 1999-02-24 04:03:50 +00:00
kipp%netscape.com
36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
troy%netscape.com
902190112d API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor 1999-02-11 15:56:23 +00:00
troy%netscape.com
034aa56b83 Changed GetNextSibling() to use a pointer argument instead of a reference 1999-02-10 06:13:38 +00:00
troy%netscape.com
9d570499cf Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy%netscape.com
b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
troy%netscape.com
78d4cd7331 More work-in-progress for fixed positioning 1999-01-28 17:14:13 +00:00
troy%netscape.com
b8e3d41dab Part of the fix for bug #2502. For the time being mark relative/absolute positioned
views as having transparent content
1999-01-23 05:47:55 +00:00
harishd%netscape.com
7daec328c6 Passing styleContext info. to PaintBorder(). 1999-01-22 22:25:58 +00:00
kipp%netscape.com
4243726f6a Switch to using nsFrameList for frame lists 1999-01-15 22:53:39 +00:00
troy%netscape.com
6d63084a70 Fix for bug #1998. Now we render the background image over the padding area and not over the border area 1999-01-15 18:25:58 +00:00
troy%netscape.com
036e6852f2 Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
troy%netscape.com
097f73ee6c Changed CreatePlaceholderFrame() to use a pseudo element style context
(:PLACEHOLDER-FRAME) for the placeholder frame. This way it looks like an
inline static frame with a specified size of (0, 0)
1999-01-02 20:51:43 +00:00
troy%netscape.com
7b5cc03059 Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
kipp%netscape.com
c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
troy%netscape.com
7e29c81e53 Changed CreateViewForFrame() to check whether the parent view is a scrolling
view and if so use SetScrolledView() instead of the view manager's InsertChild().
This ensures that the scrolled frame's view is inserted as a child of the clip
view during the view initialization stage
1998-12-18 05:25:36 +00:00
troy%netscape.com
205250b6c4 Moved view creation to frame construction code. Also moved wrapping of
floated and absolutely positioned elements to frame construction code
1998-12-04 19:03:44 +00:00
troy%netscape.com
90f35ce118 Changed view creation to occur when frame initialization occurs 1998-12-04 05:56:06 +00:00
troy%netscape.com
2a4b2c503f Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
troy%netscape.com
89d24c72ce Fixed it so that we don't ignore painting child frames of a parent frame
thas has "visibility:hidden", because child elements can override their
parent's visibility
1998-11-19 03:52:29 +00:00
joki%netscape.com
77fd9c2652 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
peterl%netscape.com
265c4ca8a7 cleaned up cursor style handling 1998-11-18 02:11:54 +00:00
troy%netscape.com
4f1b20b058 Fixed CreateWrapperFrame() so it resets the geometric and content parent pointers
of the frame being wrapped
1998-11-17 05:47:06 +00:00
kipp%netscape.com
973c0a528c Eliminated NewFrame 1998-11-14 19:28:34 +00:00
joki%netscape.com
d316927b48 Modify cursor setting code to check css cursor setting for containers. 1998-11-13 23:58:52 +00:00
troy%netscape.com
532ccd2885 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element
1998-11-12 23:03:35 +00:00
troy%netscape.com
527ee073f8 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
kipp%netscape.com
c9dcd9009c Added UpdateStyleContexts for support change-out of style contexts 1998-11-05 19:31:39 +00:00
peterl%netscape.com
cedec7bc27 sync to style resolution api changes 1998-11-03 20:33:43 +00:00
kipp%netscape.com
89b3c4cc7c Cleaned up Paint method 1998-10-30 22:12:19 +00:00
peterl%netscape.com
04a0fce0ba renamed cursor defines 1998-10-26 23:14:17 +00:00
michaelp%netscape.com
5afda242db changes to support opacity. 1998-10-23 17:54:23 +00:00
troy%netscape.com
afea3ec53b Fixed somecomments which had been copied from elsewhere and we not
completely accurate
1998-10-22 21:02:19 +00:00
buster%netscape.com
e081a8bbf6 added AddFrame and RemoveFrame as incremental reflow support methods 1998-10-20 17:44:02 +00:00
kipp%netscape.com
1c7a31aab5 Tweaked the isFloated variable computation to only support left and right floaters 1998-10-16 20:21:11 +00:00
troy%netscape.com
0b0f2c3e12 Changed CreateViewForFrame() to mark the view as having transparent content
iff the background-color is transparent
1998-10-14 21:31:41 +00:00
kipp%netscape.com
783eca0357 Create views when necessary 1998-10-14 20:10:36 +00:00
troy%netscape.com
713db072d6 Work in progress on scroll frame code 1998-10-12 22:13:23 +00:00
michaelp%netscape.com
999bf82ffa changes per-kipp to make views transparent. 1998-10-12 18:07:28 +00:00
kipp%netscape.com
6dceba716f Mork work on floaters; support for clear style property 1998-10-09 22:58:25 +00:00
troy%netscape.com
61be217b98 Removed reference to widgetSupports 1998-10-08 21:39:25 +00:00
kipp%netscape.com
3c84e9a593 Preliminary support for onPaint event handling 1998-10-06 21:01:41 +00:00
kipp%netscape.com
1283a4157a Use new body ctor api 1998-10-06 00:40:41 +00:00
peterl%netscape.com
7891e67337 moved attribute change code to style sheete
cleaned up content change api
1998-09-29 23:48:07 +00:00
troy%netscape.com
8c87a4ae92 Added back in support for absolutely positioned frames 1998-09-29 04:47:59 +00:00
kipp%netscape.com
261b8bd181 Changed factory method to parameterize the shrink wrapping behavior 1998-09-29 03:44:25 +00:00
troy%netscape.com
789fa70e40 Fixed some bustage I introduced with the factoring 1998-09-29 02:18:09 +00:00
troy%netscape.com
d83715df2a Partially enabled support for absolutely positioned elements 1998-09-28 23:24:37 +00:00
kipp%netscape.com
fff04dae01 Use modified css rendering API 1998-09-26 17:17:20 +00:00
vidur%netscape.com
9f8023578d Fixed memory leak in style change code 1998-09-26 00:06:26 +00:00
kipp%netscape.com
cfd12dbb91 Renamed style-changed reflow method; fixed implementation to generate a reflow command 1998-09-25 16:11:36 +00:00
troy%netscape.com
50795d8516 Moved ContentDeleted() document notification code to the style system which
generates the reflow command
1998-09-25 05:13:06 +00:00
peterl%netscape.com
31f87234c8 performance tweaks to apply style change 1998-09-25 01:49:10 +00:00
vidur%netscape.com
b4fc446c94 Added new style interfaces. Implemented getStyle() on HTMLElement. Moved DOM fields into side struct for nsGenericHTMLElement. Implemented style declaration interface on proxy. Added new entry point to CSSParser and new methods to style declaration. 1998-09-25 00:51:45 +00:00
kipp%netscape.com
bf54e184b3 Added methods for triggering style/rendering/reflow changes 1998-09-25 00:00:22 +00:00
troy%netscape.com
f54279e62f Removed mChildCount from nsContainerFrame 1998-09-24 17:56:35 +00:00
troy%netscape.com
5dac3c72a9 Removed IsPseudoFrame() from nsContainerFrame 1998-09-24 04:57:30 +00:00
troy%netscape.com
b31a3f0a5f Removed mFirstContentOffset, LastContentOffset, and mLastContentIsComplete
from nsContainerFrame
1998-09-24 03:36:52 +00:00
kipp%netscape.com
11b06203de Moved some methods from various places into this class 1998-09-23 02:29:31 +00:00
troy%netscape.com
62b1375f69 Removed farme enumeration member functions for indexed access, last child,
and child count
1998-09-19 03:24:26 +00:00
troy%netscape.com
f80fdc69aa Removed CreateFrame() from nsIHTMLContent 1998-09-18 18:04:42 +00:00
troy%netscape.com
29e5156e14 Removed nsIContentDelegate.h 1998-09-18 17:34:48 +00:00
troy%netscape.com
28c7cf540c Removed content delegates 1998-09-18 17:18:37 +00:00
kipp%netscape.com
8f2807a027 Removed css/layout directory 1998-09-15 00:19:49 +00:00
kipp%netscape.com
c6290fa577 XPCOM'ized nsIContent and nsIHTMLContent 1998-08-29 20:20:38 +00:00
michaelp%netscape.com
ca017f19d0 DeleteFrame() now takes a pres context. 1998-08-28 03:02:39 +00:00
troy%netscape.com
acaa6d2f0e Change to object lifetime management. Views are no longer ref counted 1998-08-08 04:23:33 +00:00
joki%netscape.com
9cb79b1687 Adding window.open method, fixing editormode in release builds, various event fixes 1998-08-07 04:45:03 +00:00
rods%netscape.com
cc8fe3270d Fixed: Links now work.
Fixed: Selection cursor no longer shows when clicking on a link.
(These are the same fixes as Stability branch bugs 312562 and 312563)
1998-08-06 16:29:45 +00:00
troy%netscape.com
048270ffb0 Changed PaintBorder() to use the (x,y) that's passed in 1998-07-22 05:02:07 +00:00
troy%netscape.com
789a2dbe45 Changed nsCSSRendering::PaintBorder() so the entire rect is used
and not just the width and height
1998-07-22 02:46:00 +00:00
joki%netscape.com
db560e8cac Adding new DOM stuff to handle JS event handlers 1998-07-17 04:52:12 +00:00
kipp
96ce66e91d Tweaked 1998-07-11 03:49:17 +00:00
kipp
dc09e8124d Implement ContentDeleted 1998-07-06 21:37:33 +00:00
kipp
05b511b5fd Reworked ContentInserted handling 1998-07-03 17:46:44 +00:00
kipp
f6483b60bd disabled calls to PropagateContentOffsets for now 1998-06-30 20:20:29 +00:00
kipp
b00f7215a5 Eliminated IRIX compiler warnings (and a bug) 1998-06-26 15:07:09 +00:00
kipp
1a446c2e3f New and improved (?) line layout 1998-06-25 16:33:10 +00:00
karnaze
0ccd357a8f initial support for <iframe> 1998-06-11 16:46:33 +00:00
troy
66b6882d23 Added nsIReflowCommand interface 1998-06-09 04:51:44 +00:00
joki
10ffd04c8c Adding new event handling mechanism into raptor. 1998-06-08 00:57:15 +00:00
peterl
91c5893512 sync up to new style data apis 1998-06-05 06:09:09 +00:00
kipp
b6726ddcb7 Draw a different colored border when showing visual frame boundaries if the frame has a view; only draw if rectangle has area; create scroll frame when requested stylistically 1998-06-04 17:50:19 +00:00
kipp
00e2688516 disable notifies during synthetic content insertion 1998-06-03 15:55:49 +00:00
kipp
4222da36de Support nsILinkHandler::OnOverLink 1998-06-01 20:55:10 +00:00
kipp
8bb1a77086 Added initial reflow hook; setup list bullets using it 1998-05-29 02:13:25 +00:00
troy
fa0cc22098 Changed Paint() to not check if the frame is a pseudo frame 1998-05-28 04:38:28 +00:00
troy
4910a3a407 Added 'ns' prefix to class name 1998-05-28 02:37:37 +00:00
peterl
9067bd0670 added visibility style attribute
moved attributes from position to display struct
1998-05-26 23:15:47 +00:00
peterl
7168f94691 Changed GetStyleData to use an enum instead of an nsID 1998-05-21 02:34:13 +00:00
peterl
9bc80be166 sync to new spacing apis 1998-05-12 22:28:01 +00:00
troy
5b69e1f043 Change to nsIFrame API 1998-05-12 04:17:56 +00:00
troy
4bbddb48b7 Moved ContentChanged() logic to nsFrame since it was completely generic and
serves as reasonable default behavior for all frames
1998-05-08 16:34:27 +00:00