248 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
e2373f9a14 Bug 333659. Landing new text interfaces, new gfxPangoTextRun (enabled), new textframe code (disabled). r+sr=dbaron for the part-of-the-build layout parts,r=stuart for the part-of-the-build gfx parts
git-svn-id: svn://10.0.0.236/trunk@218447 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 20:51:52 +00:00
mats.palmgren%bredband.net
7cfad2b396 [border-collapse] Table content unnecessarily wrapped. b=363072 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217824 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 15:38:03 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
mats.palmgren%bredband.net
277be83fff Rename ComputeHorizontalValue to ComputeWidthDependentValue (ditto for height) and some minor cleanup. b=364131 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217122 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 13:20:18 +00:00
bzbarsky%mit.edu
68ad73677a Fix bug 364192 -- assert was backwards.
git-svn-id: svn://10.0.0.236/trunk@217115 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 05:08:01 +00:00
bzbarsky%mit.edu
e9cbfbe714 Fix computation of a hypothetical box for abs pos frames which are descendants
of a rel-pos block.  Bug 363637, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@217108 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 03:00:23 +00:00
uriber%gmail.com
9de31d2467 Fix calculation of margin forced to "auto" when both margins and width are specified but together smaller than available width. bug=364079 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217099 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 17:02:22 +00:00
dbaron%dbaron.org
866a194991 Better API for used padding/border/margin: remove deprecated Calc*For on nsStyleStructs and add GetUsed* to nsIFrame. b=332922 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216965 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-13 23:04:57 +00:00
uriber%gmail.com
774e156325 Use the containing block's direction (LTR/RTL) instead of this frame's direction when deciding on default alignment of the frame. bug=328181 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@216942 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-13 16:16:25 +00:00
bzbarsky%mit.edu
82cfd09e26 Fix percentage padding on nodes with overflow other than visible. Bug 332557,
r+sr=dbaron.


git-svn-id: svn://10.0.0.236/trunk@216874 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-12 15:18:40 +00:00
dbaron%dbaron.org
1ca9f3f372 Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
git-svn-id: svn://10.0.0.236/trunk@216738 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 05:38:33 +00:00
roc+%cs.cmu.edu
e7ac888254 Bug 342093. Use GetPositionIgnoringScrolling where we can, now that it exists. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200462 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 21:13:05 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
bzbarsky%mit.edu
84ef11c140 Make sure to not rely on how scrollframes handle frame offsets (esp. since it's
changed) when positioning fixed-pos frames.  Bug 331729, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@193567 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 22:36:01 +00:00
dbaron%dbaron.org
b258ce85ca Single line comments to describe files (helpful in LXR)
git-svn-id: svn://10.0.0.236/trunk@193203 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 18:29:03 +00:00
dbaron%dbaron.org
d3a3d5c677 Remove unused mCompactMarginWidth member. b=328551 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@191267 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-26 10:35:44 +00:00
dbaron%dbaron.org
4aa0906194 Use IsContainingBlock rather than testing for block frame when looking for the placeholder's containing block for auto offsets; for non-blocks, just use the placeholder Y coordinate for auto-top. b=253479 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@186351 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-21 03:30:28 +00:00
timeless%mozdev.org
a05383ef1b Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185018 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 22:05:24 +00:00
roc+%cs.cmu.edu
cccd7adffc Bug 307158. Half-heartedly account for vertical scrollbar presence when positioning absolute children relative to the right edge of a scrollable container. r+sr=dbaron with regrets.
git-svn-id: svn://10.0.0.236/trunk@182444 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 05:00:24 +00:00
dbaron%dbaron.org
2be505f301 Base factor line-height values on the same concept of font size as em-based line-height values. b=196270 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@179226 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-29 19:30:06 +00:00
dbaron%dbaron.org
956038a9e0 Remove check for GECKO_USE_COMPUTED_HEIGHT environment variable. b=196270 r+sr=roc a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@177006 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 20:15:27 +00:00
bzbarsky%mit.edu
0a6556c02c Make sure to not return a negative containing block height when computing a
quirks percentage height containing block.  Bug 303005, r+sr=dbaron,
a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@177003 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 20:09:49 +00:00
bzbarsky%mit.edu
7e4d53dac0 Use the padding-edge as the absolute containing block when the containing block
is established by a relatively positioned inline.  CSS2.1 is being changed
accordingly.  Bug 300816, r+sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@176552 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-25 20:15:31 +00:00
roc+%cs.cmu.edu
38bb755f3e Bug 293504. Make MEW/max-width calculations in scrollframes consistent with regular reflow about how we handle the scrollbar width. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@175285 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 04:17:21 +00:00
dbaron%dbaron.org
5efdb69c74 Implement the same block-alignment behavior for align=left (which matters only for RTL) that we do for center and right. b=64510 r+sr=roc a=asa
git-svn-id: svn://10.0.0.236/trunk@174650 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-15 23:45:06 +00:00
roc+%cs.cmu.edu
d86d34fe37 Bug 292370. Adjust instrinsic widths in nsHTMLScrollFrame to account for 'width','min-width' and 'max-width' style settings. r+sr=dbaron,a=mkaply
git-svn-id: svn://10.0.0.236/trunk@173015 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-03 21:15:55 +00:00
roc+%cs.cmu.edu
17e8fa5259 Forgot to check in these other files too
git-svn-id: svn://10.0.0.236/trunk@172971 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 23:01:41 +00:00
roc+%cs.cmu.edu
ca3be43c02 Checked in wrong patch. Backing out.
git-svn-id: svn://10.0.0.236/trunk@172939 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 04:48:59 +00:00
roc+%cs.cmu.edu
9e1ef0858d Bug 47710. Fix padding inside scrollframes. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@172937 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 04:26:38 +00:00
bzbarsky%mit.edu
3f6088524e Fix border width inheritance by keeping track of both the border width we'd
have if our style were not none/hidden and the actual computed border width.
Bug 290377, r+sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@172872 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-29 15:44:38 +00:00
roc+%cs.cmu.edu
131435cb9a Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172836 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:57:22 +00:00
roc+%cs.cmu.edu
e0d871feb8 Bug 277420. Use ConstructBlock when creating scrolled and absolutely positioned blocks. Removes copied code and makes columns work in such situations. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168959 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 02:15:26 +00:00
bzbarsky%mit.edu
e412607690 Fix percentage heights on auto-width floats. Bug 216303, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@168267 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 23:38:11 +00:00
mats.palmgren%bredband.net
26139cb8af Consider min/max-width/height and box-sizing when calculating abs.pos. auto margins. b=182748 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@168265 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 23:24:05 +00:00
dbaron%dbaron.org
38de2f0512 Add comment.
git-svn-id: svn://10.0.0.236/trunk@167955 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-18 23:32:48 +00:00
bzbarsky%mit.edu
a3b35cfa22 Restore placeholder-based positioning of fixed-pos frames to the way it used to
work.  Bug 268111, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@167795 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-15 19:29:14 +00:00
mats.palmgren%bredband.net
999f9c93d7 Implement CSS2.1 10.3.7, shrink-to-fit for abs.pos. elements. b=201897 r=bzbarsky sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165820 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-26 23:28:09 +00:00
roc+%cs.cmu.edu
d4a6c32e7b Bug 209694. Major rework of margin-collapsing and clearance to match CSS 2.1 rules. Also includes major incremental reflow fixes for those situations. See the bug for details. rubber-stamp r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165781 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 14:51:00 +00:00
bzbarsky%mit.edu
4c07e20fbe Add a utility method for finding the containing block to nsHTMLReflowState, and
make use of it in fixing the text-decoration drawing on blocks to deal with
negative text-indent.  Bug 263374, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@165766 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 02:43:28 +00:00
roc+%cs.cmu.edu
05b0dbe26a Changing IsFrameEmpty to IsSelfEmpty as dbaron requested and I forgot to do before checking in.
git-svn-id: svn://10.0.0.236/trunk@165364 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-15 05:01:11 +00:00
roc+%cs.cmu.edu
7f490d3aac Bug 261064. Compute static absolute positions more accurately. Also, ensure that static absolutely positioned frames are moved when their placeholders move. Also, ensure that absolutely positioned frames positioned relative to the left or bottom edge of their container move when the container size changes. r+sr=dbaron (rubberstamp)
git-svn-id: svn://10.0.0.236/trunk@165349 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-14 20:22:58 +00:00
bzbarsky%mit.edu
f53f98f7f3 Create an api for easily converting between the coordinate systems of two
frames or two views.  Use this to fix the auto-positioning of abs pos boxes to
work no matter how their containing block and the block their placeholder lives
in are related, and convert various other callers to the new API.  Bug 266968,
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@164857 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-03 16:16:57 +00:00
roc+%cs.cmu.edu
22e0ff6cb8 Bug 251162. Landing experimental implementation of CSS3 columns. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163416 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 12:17:10 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
bryner%brianryner.com
b17b3249f7 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160067 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 19:41:39 +00:00
bzbarsky%mit.edu
95c22a9e8d Use the direction of the abs pos box, not its containing block, when deciding
which offset to use the static position for.  Bug 247287, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@159239 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 06:10:53 +00:00
bryner%brianryner.com
1df9753a77 Get rid of nsILanguageAtom and deCOMtaminate nsILanguageAtomService (bug 230603). Also, fix a bunch of atom double-addref leaks in nsFontMetricsXlib. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@157620 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 23:53:59 +00:00
jst%mozilla.jstenback.com
74089032ff Fixing bug 240543. Hiding some nsIPref* API bloatyness in nsContentUtils. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@155712 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-29 23:34:19 +00:00
bzbarsky%mit.edu
7f1f8aacd3 Change mCBReflowState to mean the containing block of _this_ reflow state
instead of the containing block of kids.  Fix the containing block calculations
for various cases of absolutely positioned descendants of relatively positioned
inlines (eg make "right" and "bottom" work in those situations).  Bug 135082,
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@155456 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 17:56:23 +00:00