124 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
721fd4b402 Don't set NS_BLOCK_SPACE_MGR and NS_BLOCK_WRAP_SIZE on relatively positioned blocks, by default. Use |ConstructBlock| for them rather than duplicating it, slightly incorrectly. b=180711 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@135259 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 20:13:17 +00:00
karnaze%netscape.com
ca5804764b bug 180805 - Added GetAdjustedParentFrame to handle fieldsets. Moved inner/outer table logic there. Added fieldset logic to IsValidSibling. sr=bzbarsky, r=jkeiser.
git-svn-id: svn://10.0.0.236/trunk@134696 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 16:02:42 +00:00
bzbarsky%mit.edu
75e86ee39c ReframeContainingBlock needs to work on <body> and such too. Bug 74951,
r=caillon, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@133083 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 02:26:52 +00:00
roc+%cs.cmu.edu
c6bb83f66a Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128041 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 14:41:28 +00:00
jkeiser%netscape.com
be99cc147f Make form within table or tr not create a cell frame and screw up layout. bug 149282, r=dbaron@fas.harvard.edu, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123307 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 06:47:35 +00:00
dbaron%fas.harvard.edu
cfc603f54a Fix crashes related to editing of HR elements by wrapping generated content for leaf frames in an extra frame so :before and :after are always the first/last children of the primary frame. Disable generated content for floating and absolutely positioned leaf frames. b=141054 sr=waterson r=kin
git-svn-id: svn://10.0.0.236/trunk@123127 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:27:48 +00:00
dbaron%fas.harvard.edu
6ebd080e55 Clean up FindFrameWithContent. No need to search children of special frames too (hang bug 140275). Use special sibling when next-in-flow isn't available, and use the hint even when we have special frames. Convert gotos into additional while loop. Turn useless :after check into assertion. Don't modify aParentFrame and aParentContent for when the hint fails. b=140275 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@121620 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 13:39:44 +00:00
karnaze%netscape.com
cc7a86e2f4 bug 113235 - avoid reframing when content is inserted inside an inline frame which contains a block. sr=waterson, r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@120331 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 21:34:15 +00:00
karnaze%netscape.com
c4272e08c7 bug 136848 - consider a sibling of type col group, col, row group as a valid siblings of a child only if the child is the same type. sr=attinasi, r=kin
git-svn-id: svn://10.0.0.236/trunk@119348 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 03:11:29 +00:00
dbaron%fas.harvard.edu
1e850f52c6 Fix up and enable hierarchical :hover and remove the hacks that made :hover work for anchors without it. Pass mask rather than pseudo-class to ContentStatesChanged notifications. Optimize event state changes in the style system by passing state mask to HasStateDependentStyle and using it in HasStateDependentStyle implementations. b=5693 r=bryner, joki sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@118715 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 03:49:30 +00:00
hewitt%netscape.com
7fd03a3524 bugs 110156, 110155
Removing support for <outliner> tags
Removing <tree> layout code and moving <tree> tags to outliner layout
Convert all usage of <outliner> to tree tags
Convert all usage of <tree> tags to new <tree> syntax or <listbox>
r=cmanske,varga sr=hyatt,sspitzer a=asa

Also includes fixes by Jan Varga (varga@utcruk.sk) for bugs 132020, 133451, 131393, 115894, and 129327


git-svn-id: svn://10.0.0.236/trunk@117710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-29 02:46:01 +00:00
karnaze%netscape.com
009e7ede52 bug 24000 - implement page-break-before/after:always using new nsPageBreakFrame. Tables handle page breaks internally. a=asa, sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@116758 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 21:35:08 +00:00
dbaron%fas.harvard.edu
fc255f08ea Attempt to fix topcrash bug 118014 by calling DeletingFrameSubtree in a bunch of places where it should be called to ensure that we don't leave dangling pointers in the undisplayed content map. sr=attinasi r=kin a=brendan
git-svn-id: svn://10.0.0.236/trunk@116478 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 13:51:20 +00:00
bryner%netscape.com
01634657fa - Implement the :checked CSS pseudoclass which maps to the "selected" property on option elements.
- Eliminate the _moz-option-selected attribute; move the actual selected state into the option content node.
- Change all users of _moz-option-selected to use :checked.
- Add a third parameter to nsIDocument[Observer]::ContentStatesChanged to indicate which pseudoclass changed, this is used for optimizing handling of :checked state changes.

Bug 128947, r=dbaron, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@116029 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 03:34:29 +00:00
attinasi%netscape.com
779d9368ff Fixed problems with reframing recursively due to block-in-inline frames and content appended notifications. r=karnaze sr=waterson b=56894
git-svn-id: svn://10.0.0.236/trunk@112109 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:05:26 +00:00
hewitt%netscape.com
72a8b46e4a 70858 - [XUL 1.0] Implement <listbox>, r=evaugahn, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@111995 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:18:10 +00:00
bryner%netscape.com
87d7aa496f Initial checkin of XBL select widget (listbox) code (bug 112713).
Summary of changes:
- Removed old XBL form control cruft.
- Made nsOutlinerContentView accessible from content scripts.
- Created a new interface, nsIDOMNSXBLFormControl which exists to allow a
select element to have an outliner box object.
- Factored out nsChildIterator into its own file.
- Added support to the outliner content view for having option elements
directly inserted in the outliner.
- Cleaned up pixel/twip conversions in outliner.
- Added support for intrinsic width for outliner.

r=jag, sr=hyatt.  Note that the new select widget is NOT turned on by
default.


git-svn-id: svn://10.0.0.236/trunk@111407 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 07:17:10 +00:00
dbaron%fas.harvard.edu
97e5cd4b32 Split ConstructFrameByTag into ConstructTextFrame and ConstructHTMLFrame to make it easier to reorganize frame construction by tag and by display type and to speed up text frame construction. b=109788 r=bryner sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@110108 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-09 04:28:41 +00:00
dbaron%fas.harvard.edu
859b0ce867 Backing out most of my checkin for bug 109788. b=111710
git-svn-id: svn://10.0.0.236/trunk@108863 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 23:28:45 +00:00
dbaron%fas.harvard.edu
fcad73a0e2 Split ConstructFrameByTag into ConstructTextFrame and ConstructHTMLFrame to make it easier to reorganize frame construction by tag and by display type. b=109788 r=hyatt rs=waterson
git-svn-id: svn://10.0.0.236/trunk@108831 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 04:52:24 +00:00
attinasi%netscape.com
0ed5164758 Export GetAltTextfor as static member fcn. b=102281 r=kmcclusk sr=waerson
git-svn-id: svn://10.0.0.236/trunk@107561 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:32:25 +00:00
jst%netscape.com
81bf1f1956 Checking in John Keiser's <jkeiser@iname.com> fix for *tons* of form submission and <select> related bugs, see tracking bug 34297 for details. r=rods@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107083 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 07:40:01 +00:00
dbaron%fas.harvard.edu
9b135c4afe Avoid attempting to do CSS selector matching on text nodes, comments, or processing instructions by adding a 'NonElement' style resolution method that assumes that no rules match (temporarily, until we don't have style contexts for text nodes) and by cleaning code that was using textPseudo (the usual case) or passing the text node directly (only a few unusual cases). b=56117 r=hyatt sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@106640 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:02:05 +00:00
hyatt%netscape.com
b4376d8910 Fix for 106212, make ContentAppended work right with XBL insertion points. r=brendan, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106255 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 07:31:18 +00:00
hyatt%netscape.com
ab0e4e56d4 Fix for 104336, deCOMtaminate rulenode, rulewalker, frames, r=dbaron, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106100 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 00:01:09 +00:00
dougt%netscape.com
62a8215278 Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172 , 104316 , 104420 , 104426 , 104461 , 104511 , 104527
git-svn-id: svn://10.0.0.236/trunk@106009 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-23 01:37:21 +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
waterson%netscape.com
25df26f9d3 Bug 84645. Move XBL insertion point logic into nsCSSFrameConstructor, where it can interact nicely with continuing frames. r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@102820 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 20:19:41 +00:00
hyatt%netscape.com
4f51638ef4 Fix for 95475. r=jag, sr=ben, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@101788 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 02:01:08 +00:00
dp%netscape.com
793d0d0caf bug# 96469 caching xbl service r=jag, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@101711 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 20:07:10 +00:00
hyatt%netscape.com
b06293d4c4 Fix for 96042. r=dbaron, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@101437 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-20 21:42:14 +00:00
waterson%netscape.com
6942f40a9b Bug 84235. Make nsCSSFrameConstructor print debug information when GECKO_FRAMECTOR_DEBUG_FLAGS is set. r=dbaron, sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@98041 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-27 04:01:51 +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
karnaze%netscape.com
73c80c2c81 bug 23714 - don't resolve style for irrelevant whitespace. sr=waterson, r=rbs,hyatt
git-svn-id: svn://10.0.0.236/trunk@89984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:10:40 +00:00
heikki%netscape.com
26d94ba9b0 Splitting layout into two libraries, layout and content. r=jst@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@87383 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 21:50:04 +00:00
hyatt%netscape.com
b98496bb42 Fix for 55292, r=ben, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@86010 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 00:54:47 +00:00
buster%netscape.com
31a79a4925 bug 56432 ()
the problem was a factorial algorithm for finding primary frames.
fixed by added a hinting mechanism that takes advantage of existing
primary frame cache, greatly reducing the cost for the common case.
r=rods
sr=waterson


git-svn-id: svn://10.0.0.236/trunk@84973 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-16 22:10:04 +00:00
rods%netscape.com
2ff0c10030 Removing all references to GfxListControlFrame
Bug 62960 r=kmcclusk sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@84726 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 14:50:27 +00:00
hyatt%netscape.com
f28d2bc75d This patch enables the tree widget to use custom tags via XBL. a=ben
git-svn-id: svn://10.0.0.236/trunk@83372 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-07 10:12:02 +00:00
karnaze%netscape.com
ed4a9c12ea bug 56563 - frame constructor creates anonymous frames when a table has a child which is not table related.
ConstructFrameByTag takes additional arg indicating that a whitespace frame was not constructed. sr=buster, r=attinasi


git-svn-id: svn://10.0.0.236/trunk@82925 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-27 22:47:33 +00:00
karnaze%netscape.com
533eb58536 bug 54542 (Hyatt's patch) - pass in style context instead of resolving it. a=buster, r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@81735 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-25 14:55:21 +00:00
attinasi%netscape.com
899e73510a Fixed items are now removed in ReconstructDocElementHierarchy. b=42114, r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77627 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 18:51:45 +00:00
bryner%uiuc.edu
b298446991 Refixing bug 23140 to not cause a menu slowdown, and fixing bug 46615 -
removal of old tree widget.  r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@75446 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 00:22:36 +00:00
waterson%netscape.com
b92de9cfda Bug 21456. Support for 'alt=' attribute on applet frames. Patch submitted by edburns@acm.org, r=waterson, nisheeth, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@74446 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 05:06:55 +00:00
waterson%netscape.com
ec244a11cf Bug 22037. Detect when CantRenderReplacedElement() is inserting a block frame into an inline. When this happens, 'split' the frame model to the nearest containing block. Re-arranged some of ConstructInline()'s support routines to share code with new method SplitToContainingBlock(). r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@73744 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:31:33 +00:00
waterson%netscape.com
123229267d Bugs 35935, 34862, 41521. Make sure to make 'special' frames blocks inside of relatively-positioned inlines; be sure to destroy special siblings, and crawl to outermost 'normal' frame when reframing containing block; handle 'special' frames in StyleChangeReflow(). r=buster
git-svn-id: svn://10.0.0.236/trunk@71705 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 06:58:45 +00:00
waterson%netscape.com
b91dc8288d Bug 36401. Deal with inline-blocks better. Add nsFrameState bit that indicates whether or not a frame is part of a 'special' inline-block hierarchy; use the 'inlineFrameAnnotation' property to remember the next 'special sibling' so that we can traverse correctly; pull methods out of nsCSSFrameConstructor's public API. r=nisheeth,buster
git-svn-id: svn://10.0.0.236/trunk@70853 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 19:58:51 +00:00
hyatt%netscape.com
4fe7279acf XBL Fixes r=ben
git-svn-id: svn://10.0.0.236/trunk@70725 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 08:19:10 +00:00
sfraser%netscape.com
5cee9b1889 Make XBL work for HTML elements. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@69833 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 20:25:02 +00:00
karnaze%netscape.com
64a5b717fe bug 2479 - rewrite of table frame construction. r=troy, b=winNT,linux
git-svn-id: svn://10.0.0.236/trunk@65114 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 01:28:15 +00:00