340 Commits

Author SHA1 Message Date
peterv%propagandism.org
ec0b3d579c Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@151491 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:22:22 +00:00
bryner%brianryner.com
3d8a7179f8 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@151191 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:25:18 +00:00
roc+%cs.cmu.edu
2c7cf5d827 Bug 210269. Reduce use of SetAttr during reflow. Also, fix up the API that gets the scrollbar dimensions of a scrollframe to always work right for RTL. r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@151089 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 19:21:20 +00:00
roc+%cs.cmu.edu
35c266025d Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@151077 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 14:20:53 +00:00
bzbarsky%mit.edu
a73bc94901 Fix restoration of horizontal scroll state. Bug 226534, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@150906 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:56:00 +00:00
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
roc+%cs.cmu.edu
3d883ead61 Bug 227458. Make scrollports without scrollbars NOT use a native widget; they probably won't be scrolled anyway. r+sr=bz,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@150185 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-10 03:43:39 +00:00
roc+%cs.cmu.edu
d6abe407cd Bug 30579. Add a skinnable 'scrollcorner' element to fill in the gap when there are two scrollbars. r+sr=bryner,a=asa
git-svn-id: svn://10.0.0.236/trunk@149611 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 10:45:24 +00:00
bryner%brianryner.com
2097395338 Speed up mapping HTML tag enums to atoms by using an array of static atoms, indexed by enum value. This avoids a UTF16 to UTF8 conversion and atom table lookup for each tag. Add a CString version of nsINodeInfoManager::GetNodeInfo(), convert literal string callers to use that version, and remove some unused variants of GetNodeInfo(). Bug 223595, r=axel@pike.org, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148857 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-05 05:17:07 +00:00
uid502
e56ed2443c Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
bryner%brianryner.com
eeddf02bde deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
roc+%cs.cmu.edu
7895bff657 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144251 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-29 03:43:05 +00:00
roc+%cs.cmu.edu
fc35098277 Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144189 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 11:30:17 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
roc+%cs.cmu.edu
dad14022d0 Bug 202681. Do not recreate frames during reflow via -moz-binding change for lazy scrollbars. Instead of lazy scrollbars, completely remove the anonymous scrollbar element for scrollbars which are disabled by CSS. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@142738 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 01:46:13 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
roc+%cs.cmu.edu
5d2f76e819 Fixing indentation
git-svn-id: svn://10.0.0.236/trunk@141563 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 01:34:30 +00:00
roc+%cs.cmu.edu
48f5e93a92 Bug 201767. Make nsBlockFrame::GetAdditionalChildListNames return the overflowList. Also, don't create scrollbars in print contexts except for the viewport scrollbar. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@141562 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 01:33:14 +00:00
roc+%cs.cmu.edu
345c305cb3 Bug 201300. Get rid of document observer from nsGfxScrollFrame. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@140908 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-09 11:27:09 +00:00
roc+%cs.cmu.edu
6f4d9821e6 Bug 201299. Make lazy scrollbars more selective to avoid XUL tree and listbox problems. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@140907 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-09 11:17:42 +00:00
roc+%cs.cmu.edu
d4ac9a5795 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00
roc+%cs.cmu.edu
941938fa81 Bug 199607. Fix smoothscrolling bugs. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140747 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 11:41:19 +00:00
roc+%cs.cmu.edu
a70c7ce7b7 Bug 174049. Smooth scrolling. Original patch by Neil cronin. r+sr=kin
git-svn-id: svn://10.0.0.236/trunk@140133 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 05:29:45 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
dbaron%dbaron.org
a569c670f5 Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%dbaron.org
c278517282 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136010 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:19:10 +00:00
dbaron%fas.harvard.edu
a436a28cb1 Reduce code size by using PaintSelf member function to paint background, border, and outline. b=184702 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@135596 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:05:47 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
bzbarsky%mit.edu
b2477e984f Fire onScroll after the scrolling has happened. Bug 179857, r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@133842 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 20:00:13 +00:00
timeless%mac.com
2a8d75a3c0 Bug 77716 Scrollbar is loading asynchronously! - Trunk [@ nsCSSFrameConstructor::ConstructDocElementFrame] [@ .__ptr_glue - nsCSSFrameConstructor::ContentInserted]
patch by hyatt r=jag,dbaron sr=bz, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@132435 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 03:11:53 +00:00
blakeross%telocity.com
d0aadb952f 171994 - crash resizing using splitter btwn download panels. patch by roc, r=me sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@130935 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 22:53:43 +00:00
roc+%cs.cmu.edu
ace40a9fff Bug 145212. Fix overflow:auto on auto-height elements. r=hyatt,sr=kin
git-svn-id: svn://10.0.0.236/trunk@130864 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 01:23:47 +00:00
radha%netscape.com
d98fdec7b0 Fix for bug 156312. onScroll events fire when scroll doesn't happen. r=saari sr=jst.
git-svn-id: svn://10.0.0.236/trunk@130443 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-25 21:29:33 +00:00
pete.zha%sun.com
1fcff5a387 Browser crash when close print preview in a page has fixed DIV
bug=163800, this patch is to backout previou checkin for this bug to reslove layout regression
r=rods@netscape.com sr=roc+moz@cs.cmu.edu


git-svn-id: svn://10.0.0.236/trunk@130342 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 11:53:20 +00:00
pinkerton%netscape.com
b5a217a980 make sure |increment| attribute change notification is sent for horiz scrollbars too. oops ;) (bug 161365, r=bryner/sr=sfraser).
git-svn-id: svn://10.0.0.236/trunk@130152 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 14:50:43 +00:00
pinkerton%netscape.com
5cd9f54b08 make sure |increment| attribute change notification is sent. fixes bug where native scrollbars wouldn't know the increment so up/down arrows didn't work (bug 161365, r=bryner/sr=sfraser).
git-svn-id: svn://10.0.0.236/trunk@129971 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 22:38:23 +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
mjudge%netscape.com
2f5c006a1d 4302 r=jfrancis sr=kin. pageup/down bug with navigation.
git-svn-id: svn://10.0.0.236/trunk@128157 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 20:55:30 +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
pete.zha%sun.com
9202c4a93e Browser crash when close print preview in a page has fixed DIV
bug=163800 r=rods sr=jst


git-svn-id: svn://10.0.0.236/trunk@127758 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-21 08:56:58 +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
dbaron%fas.harvard.edu
ed7d78f9fd Ensure that scroll position listeners are properly unregistered. b=114221 sr=waterson r=attinasi
git-svn-id: svn://10.0.0.236/trunk@124828 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:30:28 +00:00
radha%netscape.com
392fbcdca7 Fix for bug # 35011. r=jst sr=kin. window.onscroll and element.onscroll don't fire.
git-svn-id: svn://10.0.0.236/trunk@123722 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:47:59 +00:00
jaggernaut%netscape.com
b506de82e7 Back out changes for bug 35011 (context menu, ctrl+key, page-up/down all stopped working in browser).
git-svn-id: svn://10.0.0.236/trunk@123576 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:37:57 +00:00
radha%netscape.com
374aa80972 Fix for bug # 35011. window.onscroll and element.onscroll don't fire. r=joki sr=jst
git-svn-id: svn://10.0.0.236/trunk@123536 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:01:48 +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
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
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