129 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
2e99df36cd Fix ReplaceChild() on positioned inlines to delegate to
nsAbsoluteContainingBlock.h.  Bug 176915, r=dbaron, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@133620 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 03:30:13 +00:00
bzbarsky%mit.edu
a70a392a2c Make GetParent on nsStyleContext return an
already_AddRefed<nsIStyleContext>.  Bug 171808, r=jkeiser, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@131531 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 01:46:15 +00:00
bzbarsky%mit.edu
2539b61b98 Fix some inline-block style-resolution issues. Bug 146409, r=kin, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@129411 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 20:33:11 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +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
dbaron%fas.harvard.edu
3c91110102 Fix XUL style attribute change regression by making |#ifdef MOZ_SVG| code the default, but moved elsewhere. b=163481 r=bbaetz sr=bryner
git-svn-id: svn://10.0.0.236/trunk@127813 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-22 00:01:30 +00:00
jkeiser%netscape.com
b1a1838c37 Rearrange how layout history keys are created (bug 162409), r=sicking@bigfoot.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@127177 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 17:14:18 +00:00
peterlubczynski%netscape.com
725cbaf73e Fixing bug 152927: can't script any plugin in nested EMBED tag inside an OBJECT tag from onLoad handler -- CNET radio does not play with Real because SetSource is called from onLoad r=kmcclusk sr=dveditz a=asa
git-svn-id: svn://10.0.0.236/trunk@125845 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 03:48:24 +00:00
jkeiser%netscape.com
701be434fb Make save/restore work for all forms, not just the first (bug 138892), r=rods@netscape.com, sr=attinasi@netscape.com, a=asa
git-svn-id: svn://10.0.0.236/trunk@125331 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:38:51 +00:00
bzbarsky%mit.edu
6072ff780e Bug 144479 (crash changing display prefs on pages with position:fixed
stuff), r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124320 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:25:57 +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
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
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
attinasi%netscape.com
bb192a4154 Backout some diagnostic code. b=134962 sr=waterson r=dbaron
git-svn-id: svn://10.0.0.236/trunk@118956 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-14 15:16:40 +00:00
attinasi%netscape.com
ccc52f504e Attempt to fix topcrash bugs, possibly due to stale cached lookup undisplayed entry (that part by dbaron). Also added some artificial branching to help narrow the problem should crash persist. b=118014 r=attinasi/dbaron, sr=kin a=asa (drivers)
git-svn-id: svn://10.0.0.236/trunk@117952 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 21:14:43 +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
jkeiser%netscape.com
f217d9c22f Move save/restore form control state to content (bug 108309). r=rods@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@117791 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-31 10:14:01 +00:00
jkeiser%netscape.com
317b99e5a5 Backing out 108308 due to pageload spike
git-svn-id: svn://10.0.0.236/trunk@117722 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-29 07:35:09 +00:00
jkeiser%netscape.com
55481f5be5 Move save/restore of form controls to content (bug 108309) (r=rods@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org)
git-svn-id: svn://10.0.0.236/trunk@117716 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-29 05:35:47 +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
dbaron%fas.harvard.edu
4d91361814 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117345 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:26:36 +00:00
attinasi%netscape.com
89c8d18cf5 Be sure to initialize out-param no matter what. b=127360 r=aaronl sr=brendan a=asa (drivers)
git-svn-id: svn://10.0.0.236/trunk@116813 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 00:32:41 +00:00
dbaron%fas.harvard.edu
d2693dd0ff Remove obsolete NEW_CONTEXT_PARENTAGE_INVARIANT ifdefs, and add a few bits of debugging code. b=120888 sr=attinasi r=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@116718 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:26:56 +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
aaronl%netscape.com
faab731ad7 Bug 129628. Crash in nsFrameManager::Destroy. r=dbaron, sr=shaver, a=asa
git-svn-id: svn://10.0.0.236/trunk@116301 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:47:42 +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
dbaron%fas.harvard.edu
152311587f Fix invalid optimization that prevented style changes on inline elements that caused a reflow from applying to more than the first line. b=98783 r=attinasi sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@114695 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:31:49 +00:00
dbaron%fas.harvard.edu
307538c3e3 Do restoration of information in the layout history state immediately after frame initialization rather than using separate code within PresShell::ContentAppended that calls GetPrimaryFrameFor (which is slow and forces every frame into the primary frame map, inefficiently). b=109428 r=rods sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111960 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 20:10:46 +00:00
dbaron%fas.harvard.edu
e149e57952 Fix tabbing through image maps and fix Windows crash right-clicking on image maps by reverting my changes to nsImageMap from bug 110911 and by giving the primary frame map larger entries to accomodate mapping from a content node to a frame with a different |mContent|. b=115481, 114377 r=bryner sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@111415 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 15:22:52 +00:00
hyatt%netscape.com
f9a19ba7cd Fix for 112980, nsITheme API and dynamic skin switching re-enabling. r=ben, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@110648 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 22:51:39 +00:00
dbaron%fas.harvard.edu
de58d41cd9 Fix blocker bug 114675 with null check around assertion code that I meant to check in yesterday (bug 114220).
git-svn-id: svn://10.0.0.236/trunk@110272 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 19:16:15 +00:00
dbaron%fas.harvard.edu
aedf49b319 Backing out changes I didn't mean to check in.
git-svn-id: svn://10.0.0.236/trunk@110231 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 05:41:43 +00:00
dbaron%fas.harvard.edu
cf515cc659 Prevent input elements from adding frames back into the primary frame map during their destruction (and leaving the map with dangling pointers) by passing the frame to functions that will be called during frame destruction to avoid calls to GetPrimaryFrameFor that will repopulate the primary frame map. b=114220 r=jkeiser sr=jst
git-svn-id: svn://10.0.0.236/trunk@110230 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 05:39:36 +00:00
dbaron%fas.harvard.edu
f78e55d4bf Changing noisy warning I added yesterday from |#ifdef DEBUG| to |#ifdef DEBUG_dbaron|. b=110911 / 113810
git-svn-id: svn://10.0.0.236/trunk@109852 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 19:53:37 +00:00
dbaron%fas.harvard.edu
d3f3cc3a7b Remove nsDST and convert its users (PresShell::mSubShellMap, FrameManager::mPrimaryFrameMap, and FrameManager::PropertyList::mFrameValueMap) to PLDHash. Also convert FrameManager::mPlaceholderMap to PLDHash. Give image map area structures a pointer back to their image frame rather than (mis)using the primary frame map. Change API for changing placeholder map to reflect hash entry that accesses key through value by passing only the value and not the key. Give the root frame a proper mContent. b=110911 r=attinasi sr=brendan
git-svn-id: svn://10.0.0.236/trunk@109818 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 05:45:07 +00:00
bryner%netscape.com
955fa48f3d Bug 41119 - Don't waste time notifying the frame manager about frame destruction if it is happening from nsFrameManager::Destroy. r=dbaron, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@109419 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:22:00 +00:00
hyatt%netscape.com
c0d0283f4f Perf and footprint opt. Make style re-resolution cheaper. r=glazou, sr=hewitt, bug 109261
git-svn-id: svn://10.0.0.236/trunk@108035 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:19:13 +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
6a5015b10c Ensure that we don't re-resolve placeholders to the style context that should be on their out-of-flow frame. Fixes autocomplete popup. b=107744 r=waterson sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107059 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:14:58 +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
alecf%netscape.com
210111498e two more nsUnicharUtils.h stragglers, I think I got r=jag, sr=scc on these in a previous patch - again for bug 100214
git-svn-id: svn://10.0.0.236/trunk@106370 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 17:51:22 +00:00
jst%netscape.com
6f8619cfba No need to be this paranoid, checking for pointers being null once is enough! Checking twise in a row is just overkill.
git-svn-id: svn://10.0.0.236/trunk@106321 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 03:31:49 +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
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
dbaron%fas.harvard.edu
7bb7b59a69 Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105460 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 03:53:44 +00:00
vidur%netscape.com
ec7aeceee0 Fixes for printing bugs 84017 and 89151. The fix for bug 84017 removes the need for a resize reflow to get form frame values to print. The restoration of these values into the new frame model is done as part of the initial reflow. The fix for bug 89151 gets rid of the extra frame model built and forces printed images to come out of the decoded image cache. r=darinf, heikki, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@104221 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 17:50:15 +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
bryner%netscape.com
7da361b479 Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101283 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:14:14 +00:00