4318 Commits

Author SHA1 Message Date
dbaron%dbaron.org
a06e2c19f8 Fix elements with max-width overlapping floats due to initial incorrect position by reflow state. b=52916 Patch by Chris Waterson. r=dbaron sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151483 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 06:06:13 +00:00
bzbarsky%mit.edu
186039170e Make <noscript> inline when displayed. Bug 230616, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151405 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-16 03:05:00 +00:00
caillon%returnzero.com
9597ef526a Bug 230973 - NS_STYLE_LIST_STYLE_BASIC is spurious. Remove its usage in favor of the correct default of disc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151390 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 22:06:39 +00:00
dbaron%dbaron.org
36435245d2 Remove nsChangeHint_ReconstructDoc. b=230945 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151356 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 03:32:06 +00:00
dbaron%dbaron.org
44cf91f9e8 Do style resolution of later siblings required by the CSS + combinator on event state and attribute changes by changing the result of Has(Attribute|State)DependentStyle into a bitfield and setting and handling the restyle-later-siblings bit appropriately. b=15608 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151284 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 01:36:35 +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
dbaron%dbaron.org
3d49352c78 Treat relatively positioned elements at original position for flowing around floats. b=205087 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151166 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 04:29:09 +00:00
bryner%brianryner.com
8542d06d80 attempting to fix HP-UX/AIX/IRIX bustage (bug 228378)
git-svn-id: svn://10.0.0.236/trunk@151156 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 00:24:37 +00:00
dbaron%dbaron.org
e77344ace5 Ignore incremental reflows targeted inside a reflow root if the reflow root's parent has not yet been reflowed. (This could probably be made more general, but it's enough to fix the bug in question.) b=228156 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151145 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 19:12:23 +00:00
roc+%cs.cmu.edu
4bdc65b3e2 Bug 228378. Clean up nsRegion. patch by Dainis Jonitis. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151143 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 16:18:36 +00:00
roc+%cs.cmu.edu
986d8acdaa Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151139 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 05:36:32 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +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
bryner%brianryner.com
be2188b6ed fixing debug bustage
git-svn-id: svn://10.0.0.236/trunk@151044 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 21:10:33 +00:00
bryner%brianryner.com
9dfcd977cb Additional cleanup related to bug 64116. r=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151039 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 19:23:12 +00:00
bzbarsky%mit.edu
d3e33b0653 Setting .src should reset image animations; don't animate images no one is
looking at.  Bug 210001, r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@151035 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 18:29:28 +00:00
bzbarsky%mit.edu
79ebfa0850 Make sure to not compute negative widths for blocks. Bug 230249, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151012 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 03:38:25 +00:00
dbaron%dbaron.org
d7bf492488 Back out some incorrrect changes I just made. b=230270, 230339 r=bryner
git-svn-id: svn://10.0.0.236/trunk@151000 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:38:09 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
dbaron%dbaron.org
72c2779269 Fix leaks of mCurrentEventContent. A few other little pieces of cleanup. b=230270 r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@150996 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:18:37 +00:00
alecf%flett.org
adc79659c3 fix for bug 209679 - remove reflow observer junk - r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150986 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 17:47:25 +00:00
bzbarsky%mit.edu
d513aa3f26 Make AdjustComputedWidth/Height take a boolean that tells it whether to account
for box-sizing; sometimes we don't want to.  Also fix parsing of
max-width/height and min-width/height to error on negative values (per spec).
Bug 227819, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@150907 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:59:25 +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
bzbarsky%mit.edu
d07dc259d9 Calculate the relative offsets after we've done whatever corrections we need to
do to the CB height (eg in quirks mode).  Bug 226954, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@150904 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:48:57 +00:00
bryner%brianryner.com
019725339d Continuing nsIPresContext deCOMtamination. This patch changes Get/SetImageAnimationMode. Bug 229371, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150737 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-26 04:24:11 +00:00
bryner%brianryner.com
4cca78120d deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150720 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 21:51:50 +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
timeless%mozdev.org
332e929af5 Bug 226597 nsObjectFrame.cpp Warning: String literal converted to char* in initialization.
r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@150581 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 04:04:09 +00:00
neil%parkwaycc.co.uk
5b654e42cb Bug 90906 Remove unused variables p=gautheri@noos.fr r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150570 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-20 18:09:21 +00:00
bmlk%gmx.de
478029c599 show reflow targets in reflow logs bug 218961 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@150561 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-20 12:04:31 +00:00
dbaron%dbaron.org
1de11fe101 Fix percentage widths on inlines within inlines. b=97695 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@150481 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-19 05:41:35 +00:00
dbaron%dbaron.org
08ec785b8b Account for 1 twip width of BR when computing the size of textareas. b=228752 Patch by Mats Palmgren <mats.palmgren@bredband.net>. r+sr=dbaron a=brendan
git-svn-id: svn://10.0.0.236/trunk@150407 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 06:06:00 +00:00
jshin%mailaps.org
b60ed2b547 bug 224337 : fix misalgined accesss in pre-composed CCMap (on RISC architectures) : r/sr=brendan, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@150305 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-15 00:32:16 +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
neil%parkwaycc.co.uk
a9ec7c18c0 Bug 225885 nsPresShell::DoCopy does not work for embedding p=marco@gnome.org r=bz sr=bryner a=dbaron
git-svn-id: svn://10.0.0.236/trunk@149766 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 10:23:03 +00:00
dbaron%dbaron.org
0abe2cee23 Fix incremental reflow bugs by being consistent about max-element-width for percentage widths whether or not the reflow is an unconstrained width (as initial always is when we care about max-element-width) or constrained width (as some incremental reflows are). b=215857 r=bernd sr=bzbarsky a=brendan
git-svn-id: svn://10.0.0.236/trunk@149688 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:48:25 +00:00
dbaron%dbaron.org
a8191642ef Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@149687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:46:25 +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
bzbarsky%mit.edu
2662b8f0e1 Fix printing of plugins in absolutely positioned divs to use the right
coordinates.  Bug 225832, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@149531 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 02:00:51 +00:00
jst%mozilla.jstenback.com
2affc5b4f0 Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
neil%parkwaycc.co.uk
7f71d9ecd8 Bug 225952 nsObjectFrame.cpp abuses nsXPIDLCString r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@149446 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 19:26:24 +00:00
dbaron%dbaron.org
95ad7ff8b9 Turn DetermineFrameType into InitFrameType. b=225911 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149414 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 00:35:17 +00:00
dbaron%dbaron.org
01d5186c80 Remove unneeded mIsTable member variable. r+sr=bzbarsky b=225902
git-svn-id: svn://10.0.0.236/trunk@149404 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 21:12:17 +00:00
dbaron%dbaron.org
af2bdc9aec Add comments connecting two quirks.
git-svn-id: svn://10.0.0.236/trunk@149403 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 18:49:00 +00:00
bzbarsky%mit.edu
e145168a0f Be a little smarter about handling the mess that is broken images. Only look
for a frame if we've had a frame at some point in the past; this should keep us
from calling GetPrimaryFrameFor quite so much during pageload.  Bug 225848,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@149399 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 07:34:25 +00:00
blizzard%redhat.com
638544968e Bug #225357. Plugins that specify coordinates that exceed maximum X coordinates cause X errors. Limit the size of plugins on this platform to the maximum size for X windows. r=bz, sr=roc
git-svn-id: svn://10.0.0.236/trunk@149245 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 16:33:52 +00:00
bzbarsky%mit.edu
0b45220a8c Clarify when ReParentStyleContext should be called and remove more bogus style
parentage warnings.  Bug 217225, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@149235 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 04:31:04 +00:00
bzbarsky%mit.edu
7ee2b11b9e Fix some bogus style parentage warnings. Bug 224867, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@149232 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 04:11:38 +00:00
dbaron%dbaron.org
6ab19b722c Removed unused LineIsEmpty function.
git-svn-id: svn://10.0.0.236/trunk@149158 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 19:25:49 +00:00