758 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
008bc23d0e Stop using |nsCOMPtr|s on nsIBox and nsIMenuParent, which are always implemented on frames, to prevent calling of |Release| after frame destruction and freeing to the pres shell arena. b=114235 r=bryner sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@126498 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 12:48:28 +00:00
jkeiser%netscape.com
325bff7164 Change ns(I)GfxTextControlFrame(2) -> ns(I)TextControlFrame (bug 129909), r=rods
@netscape.com, sr=bzbarsky@mit.edu, a=asa


git-svn-id: svn://10.0.0.236/trunk@125891 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:57:24 +00:00
cbiesinger%web.de
98a1043bbe bug 158937 r=timeless sr=bz a=asa
comment wrong


git-svn-id: svn://10.0.0.236/trunk@125732 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:53:50 +00:00
bzbarsky%mit.edu
ff3b5f1bd2 Bug 158230. Clear out all the relevant style data when inline style
causes reframes.  r=dbaron, sr=hyatt, a=asa


git-svn-id: svn://10.0.0.236/trunk@125648 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:18:26 +00:00
leaf%mozilla.org
d71824c07d backout dataloss-causing fixes for 143862 and 156719, a=asa
git-svn-id: svn://10.0.0.236/trunk@125515 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:58:09 +00:00
dbaron%fas.harvard.edu
38d0ce2531 Correctly process a framechange hint on the root element to prevent crashes. Prevent selects from triggering style reresolution before they're added to the document, and prevent a little bit more reresolution that's a performance hit. b=143862 r=bzbarsky, jkeiser sr=jst, waterson
git-svn-id: svn://10.0.0.236/trunk@124928 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 02:24:18 +00:00
rbs%maths.uq.edu.au
96700ff7a9 crash if position: absolute applied to <math>, b=151054, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124799 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:34:12 +00:00
timeless%mac.com
042f32d6d7 Bug 143903 crash if I close the mail window while a save as dialog is open for a message attachment
patch by antonio.xu@sun.com r=dbaron sr=waterson


git-svn-id: svn://10.0.0.236/trunk@123751 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 01:55:14 +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
jkeiser%netscape.com
54975d102e Rest of patch (partial commit before). Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122621 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:00:34 +00:00
karnaze%netscape.com
bbd8189ddf bug 1458423 - don't repeat a thead or tbody that is continued. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122419 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 14:32:38 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
dbaron%fas.harvard.edu
cc452efb5b Fix FindPrimaryFrameFor regression: when previous sibling is out-of-flow, start search from previous sibling's placeholder. b=145224 sr=waterson r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@122188 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 17:07:07 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
dbaron%fas.harvard.edu
554bf97dfe Move implementation of HTML label element entirely into the content model so that it can have any display type: implement the event-munging and accesskey support in nsHTMLLabelElement. For the latter, share some code with nsHTMLAnchorElement and remove extra parameter from nsIEventStateManager access key methods. b=96813 r=jkeiser sr=jst
git-svn-id: svn://10.0.0.236/trunk@121986 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 00:14:51 +00:00
jst%netscape.com
7b7411c3ef Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
hewitt%netscape.com
0917e34b31 126480 - autocomplete popup doesn't appear the first time you type, r=ben, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@121779 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 21:24: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
dbaron%fas.harvard.edu
4f72a32cd9 Attempt to refix bug 118014 crash by removing SetUndisplayedPseudoIn and doing run-time checks that we're not inserting the same node into the undisplayed map twice. b=136704 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@121617 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 13:30:57 +00:00
karnaze%netscape.com
3c41b1b999 bug 138725 - Reflow placeholder's out of flow frame in DoCleanupFrameReferences. Avoid reframing when an inline is appended to an inline containing a block. sr=waterson, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@120807 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-06 02:02:35 +00:00
dbaron%fas.harvard.edu
c57d40b6dc Don't double-create :before and :after content by checking |processChildren| in ConstructHTMLFrame and only doing the hacky (and probably incorrect) sibling-:before/:after construction for leaf frames. b=141289 r=attinasi sr=waterson
git-svn-id: svn://10.0.0.236/trunk@120376 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:51:36 +00:00
dbaron%fas.harvard.edu
a681655481 Remove ClearUndisplayedContentMap hack from ReconstructStyleData (expanded for bug 118014; see bug 136728). Fix multiple content inserted notifications from XBL (the real cause of bug 118014) by checking the undisplayed content map in addition to the primary frame map. Fix FrameManager::GetUndisplayedContent to work correctly, and remove code in nsCSSFrameConstructor::AttributeChanged that was working around its brokenness. b=136704 sr=waterson r=attinasi
git-svn-id: svn://10.0.0.236/trunk@120372 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:36:50 +00:00
karnaze%netscape.com
bd65918973 bug 138292 - add a non table related frame to its parent frame's child list when the parent frame is an anonymous table cell frame. sr=waterson, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@120334 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 21:45:58 +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
rods%netscape.com
f5d5b87dc0 Make the UI scrollbars now scale in PrintPreview. We are having to do all this rather bizarre
stuff because the scrollbars in the document share all the same code and style contexts of the UI scrollbars
Bug 120616 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@119606 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-23 12:05:43 +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
hwaara%chello.se
fffc33ba03 #137382, cleanup handling of SVG namespace, and remove old bogus namespace.
r=afri (not part of default build)


git-svn-id: svn://10.0.0.236/trunk@119116 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 18:13:13 +00:00
bryner%netscape.com
44e172b98b Adding support for optgroups for XBL form controls (bug 130115). r=jkeiser, varga sr=jst.
git-svn-id: svn://10.0.0.236/trunk@119078 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 05:09:35 +00:00
kin%netscape.com
e4f805dccb Fix for bug 106489 (Text entered in box does not appear)
- Moved MoveChildrenTo() and GetRealFrame() to a point in the
  file where they could be called from my new utility method
  AdjustOutOfFlowFrameParentPtrs().

- Modified MoveChildrenTo() to take an nsFrameConstructorState arg,
  so that it can call my new method AdjustOutOfFlowFrameParentPtrs()
  so that out-of-flow floater frames are reparented to the correct
  containing block when the placeholder is moved under the block
  created in ConstructInline().

r=attinasi@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@118857 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 14:41:40 +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
dbaron%fas.harvard.edu
ebbe48cf02 Fix topcrash resulting from accidentally making DeletingFrameSubtree not null-safe. b=134508 sr=waterson r=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@118511 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 01:11:25 +00:00
karnaze%netscape.com
7cd502cfaa bug 132334 - add nsIFrame::RemovedAsPrimaryFrame which allows the text control frame to access its editor before Destroy (when it is too late). a=asa, adt=jamiejr, sr=attinasi, r=jkeiser
git-svn-id: svn://10.0.0.236/trunk@118405 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-06 22:16:12 +00:00
rbs%maths.uq.edu.au
0b3c5b285b Bug 132844 - detect the MathML namespace to load mathml.css on demand. This allows MathML to be styled properly in documents without a DOCTYPE, e.g., in the case of transformed documents that are produced on the fly from XSLT; r=heikki, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@118125 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 15:42:45 +00:00
pinkerton%netscape.com
5ab21a98bb turn on building of native scrollbars from xbl, on for mac classic skin. r=sdagley/sr=beard/a=valeski. bug# 121440
git-svn-id: svn://10.0.0.236/trunk@117807 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-31 18:36:55 +00:00
dbaron%fas.harvard.edu
94075d45c2 Remove |aForceUnique| parameter from style context resolving methods, and corresponding flag from nsStyleContext, since the only caller was ReResolveStyleContext (on the assumption that other callers used it). Allow ReResolveStyleContext to benefit from FindChildWithRules and allow it to re-resolve to the same tree even when called on the root style context. b=133821 r=attinasi sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@117795 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-31 16:59:00 +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
dbaron%fas.harvard.edu
0b4effd4ea Fix 2 cases where ReResolveStyleContext was broken, causing serious problems with dynamic style reresolution. Change nsIFrame::GetStyleContextProvider to GetParentStyleContextFrame, always use its result rather than using the parent frame in some cases, and move a bit of the complexity into the GetParentStyleContextFrame implementations. Fix block-within-inline case (bug 129350) using a special-previous-sibling frame property and ensuring that NS_FRAME_IS_SPECIAL is copied when frames are split. Fix out-of-flow frame case (bug 88154) by going to the placeholder map and by parenting the placeholder frame style contexts to the style context from their frame parent rather than the out-of-flow frame. b=129350 r=attinasi sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@117556 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 02:38:13 +00:00
sicking%bigfoot.com
4256d59c55 Bug 41983: Make (x)html-elements support namespaced attributes.
r=heikki sr=jst a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@117531 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 00:13:57 +00:00
bryner%netscape.com
e6f37a4022 More work on XBL radio button (bug 112715). r=jkeiser, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@117150 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 04:22:19 +00:00
dbaron%fas.harvard.edu
a91e9d70d5 Fix dynamic style changes to the background of the root element or the BODY element by doing the necessary extra invalidation for backgrounds that are propagated to an ancestor. Restructure ApplyRenderingChangeToTree so it does less work in recursive calls, and remove old hack to invalidate for background changes that happen through attribute changes. b=63863 sr=attinasi r=bzbarsky a=scc
git-svn-id: svn://10.0.0.236/trunk@117120 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:51:17 +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
karnaze%netscape.com
e4f8ba49ca bug 92868 - Simplified the style context provider mechanism, changed frame manager to re-resolve the provider first and to use correct style context in a few other places. a=roc, sr=attinasi, r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@116402 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:21:35 +00:00
attinasi%netscape.com
506da516c9 Support for overflow:hidden on body or html element, in html documents. b=93520 r=alexsavulov,jkeiser, sr=kin, a=asa OBO drivers
git-svn-id: svn://10.0.0.236/trunk@116346 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 21:47:40 +00:00
shaver%mozilla.org
e045387a83 reversion of patch for 92868, to repair severe regression (129827, a=drivers
git-svn-id: svn://10.0.0.236/trunk@116295 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:16:01 +00:00
karnaze%netscape.com
7cf7c2cc59 bug 92868 (also bugs 51037, 90960, 91443) - Simplified the style context provider mechanism, changed frame manager to re-resolve the provider first and to use correct style context in a few other places, sr=roc, r= bernd, a=asa.
git-svn-id: svn://10.0.0.236/trunk@116150 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 15:34:33 +00:00
alexsavulov%netscape.com
083153ec7a forgot some comments in the source... damn the tree will burs
git-svn-id: svn://10.0.0.236/trunk@116082 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 21:18:26 +00:00
alexsavulov%netscape.com
46ac9aab40 fix for bug 121368 - prevents the method nsCSSFrameConstructor::ReframeContainingBlock
to execute during a reflow and so destroy the frame tree that's in reflow
sr= attinasi, r= karnaze, a= asa


git-svn-id: svn://10.0.0.236/trunk@116074 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 20:51:05 +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