300 Commits

Author SHA1 Message Date
dbaron%dbaron.org
d29734ba6f Stop reflowing the viewport with constrained height. (Bug 467881) r+sr=roc a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256292 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 03:22:00 +00:00
fantasai.cvs%inkedblade.net
f493b19190 consider relevant overflow when balancing columns (fixes various crashes and hangs) b=404215 r+sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@250437 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-18 07:40:37 +00:00
dholbert%cs.stanford.edu
b9c6bed1a8 Bug 427017: Disable page-break-before/after for fixed- & absolutely-positioned elements. Also, fix assertion during an iterator-comparison by handling case where lineBox is in overflow-lines. r=fantasai sr=roc a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250109 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-12 05:32:51 +00:00
jwatt%jwatt.org
184b34addf Bug 423436. Elements embedding SVG by reference don't resize if they depend on intrinsic percentage width/height. r+sr=dbaron@mozilla.com, blocking1.9=me
git-svn-id: svn://10.0.0.236/trunk@248157 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-19 00:11:01 +00:00
dbaron%dbaron.org
365d3bef72 Fix the weird Get* API on nsStyleSides in favor of returning structs by value, to avoid further occurrences of bug 420069. b=420069 r+sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247146 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 00:05:29 +00:00
roc+%cs.cmu.edu
228ea44f31 Bug 400057. Make nsBlockInFlowLineIterator useful for finding the line containing a frame, searching across block continuations and their overflow lines. Use it in various places, especially in textrun construction. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246660 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 09:53:48 +00:00
dbaron%dbaron.org
8e179f4102 Prevent margin expansion from interfering with table caption position. Based on patch by Mats Palmgren. b=363248 r+sr=roc a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@246603 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 02:02:50 +00:00
dbaron%dbaron.org
4aa09c3482 Fix handling of 'right'-derived static positions (mostly for RTL) when containing block has asymmetric border. b=419072 r+sr=roc a=damons
git-svn-id: svn://10.0.0.236/trunk@246466 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-25 21:16:21 +00:00
dbaron%dbaron.org
0e1ade3385 Fix regression handling auto margins on absolutely positioned elements. b=419060 r+sr=roc a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@246417 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-24 18:29:11 +00:00
uriber%gmail.com
7526660bf7 When all three of 'left', 'width', and 'right' of an absolutely-positioned elemnt are 'auto', use the direction of the static-position containing block (rather than the actual containing block) to decide whether to set 'left' or 'right' to the static position. bug=403328 r+sr=dbaron b1.9=mtschrep
git-svn-id: svn://10.0.0.236/trunk@246308 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-22 13:44:08 +00:00
dholbert%cs.stanford.edu
126cb94996 Bug 402629: Fix percent-height updates in nested tables by checking if containing block depends on an ancestor cell's height, rather than just checking if it's a cell. r+sr=dbaron, a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@246229 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-21 21:02:07 +00:00
mozilla%weilbacher.org
95608dbe4b Bug 415686: remove FONT_LEADING_APIS_V2 ifdefs which are no longer useful for cairo builds. Also remove related functions and tests. r/sr=dbaron, r=pavlov, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246001 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 19:41:57 +00:00
bzbarsky%mit.edu
b94dbfa1d7 Make sure to not set a negative computed width. Bug 403576, r+sr=dbaron, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@245758 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-15 04:14:53 +00:00
dbaron%dbaron.org
22d9c531fb Remove unused nsHTMLReflowState::mRightEdge. b=407086 r+sr=roc a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240945 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 21:50:27 +00:00
roc+%cs.cmu.edu
a497169ebc Bug 375304. Make nsHTMLScrollFrame handle situations where the child content height depends on our height. patch by Eli Friedman, r+sr=roc,dbaron
git-svn-id: svn://10.0.0.236/trunk@240490 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 03:05:57 +00:00
roc+%cs.cmu.edu
1d260b234d Backing out bug 375304 to fix reftest failures.
git-svn-id: svn://10.0.0.236/trunk@240221 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 11:49:14 +00:00
roc+%cs.cmu.edu
b3bb8ffcc4 Bug 375304. Fix absolute positioning where the abs-pos container is scrollable and has a height constrained by min-height etc. Patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@240216 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 10:38:09 +00:00
jwatt%jwatt.org
96b895330a Fixing bug 294086. <svg> should be a replaced element. r+sr=dbaron@mozilla.com blocking1.9=tor@acm.org
git-svn-id: svn://10.0.0.236/trunk@239599 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-18 12:09:09 +00:00
roc+%cs.cmu.edu
2976f217bc Backing out bug 375304 because of reftest failure
git-svn-id: svn://10.0.0.236/trunk@239180 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-12 03:40:28 +00:00
roc+%cs.cmu.edu
b995968e7a Bug 375304. Fix absolute positioning for scrolled abs-pos containers with weird height constraints. patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@239179 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-12 02:20:13 +00:00
fantasai.cvs%inkedblade.net
3a00ff8d0e paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@237057 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 05:57:46 +00:00
bzbarsky%mit.edu
0301c2e184 Make line-height specified in ch units work. Bug 391909, r+sr+a+dbaron
git-svn-id: svn://10.0.0.236/trunk@233038 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-24 22:20:25 +00:00
sharparrow1%yahoo.com
3854a6354d Bug 383883: {inc} issues with block moving through non-moving float. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232403 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-20 20:07:50 +00:00
sharparrow1%yahoo.com
66c4c37428 Bug 390740: Pass lang-group into GetMetricsFor more consistently (general patch). r+sr=roc, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@231596 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-07 19:07:44 +00:00
bzbarsky%mit.edu
3524c6eee1 Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron


git-svn-id: svn://10.0.0.236/trunk@231323 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 18:08:07 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
26a84c5172 Handle the vertical resizing in the first pass reflow correctly when we've previously done a special height reflow. b=381507 r=dholbert sr=roc
git-svn-id: svn://10.0.0.236/trunk@228269 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 23:19:39 +00:00
dbaron%dbaron.org
4c4eee1f57 Don't propagate line layout in reflow state when we're not in the line. b=320502 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226608 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-18 06:04:04 +00:00
dbaron%dbaron.org
7cd747c7c6 Fix vertical resizing for quirks mode percentage heights. b=380004 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@226479 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 21:53:32 +00:00
dbaron%dbaron.org
80e25fa18a Add eStyleUnit_None so we don't have to use eStyleUnit_Null as a real value for max-width and max-height. b=379741 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226289 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-11 06:01:31 +00:00
bzbarsky%mit.edu
ba5badedcb Change the FrameNeedsReflow API to pass the dirty flags to be added directly to
the method, instead of setting them before calling the method.  That way we can
avoid reflowing the ancestor of a reflow root which is not itself dirty but has
dirty children.  This also makes it harder to set dirty bits inconsistently
with the FrameNeedsReflow call.  Bug 378784, r+sr=dbaron, pending rbs' review
on the mathml parts.


git-svn-id: svn://10.0.0.236/trunk@226007 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-06 19:16:52 +00:00
bzbarsky%mit.edu
e5cb7392f1 Simplify code. Bug 367442 followup, jag's idea, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225948 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:13:48 +00:00
bzbarsky%mit.edu
1788f844d4 Make computed style handle "normal" for line-height by computing an actual
numeric height.  Bug 371041, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@225943 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 05:30:10 +00:00
dbaron%dbaron.org
03a83ad9f2 Add support for -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap, and -moz-fill for width, min-width, and max-width. b=311415 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@225554 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 23:11:02 +00:00
bzbarsky%mit.edu
116d69628c Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.


git-svn-id: svn://10.0.0.236/trunk@222659 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 21:11:47 +00:00
roc+%cs.cmu.edu
7dd2fd3ff9 Bug 372237. Never set TRUNCATED reflow status if the available height is unconstrained, even if the height happens to exceed the constant we use to indicate unconstrained height. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@221756 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-11 20:34:15 +00:00
bzbarsky%mit.edu
73a4123b0e Don't do arithmetic on NS_UNCONSTRAINEDSIZE. But 371348, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@220898 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-25 21:29:17 +00:00
bzbarsky%mit.edu
ad76b76ce9 Set the used padding on the scrolled frame, since we're munging its padding.
Bug 370794, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@220588 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-20 18:54:16 +00:00
smontagu%smontagu.org
a95c2244b3 Bug 369236: Move IsBidiFormControl from nsHTMLReflowState to nsBlockFrame. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219955 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-11 07:19:09 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
dbaron%dbaron.org
c380d24c54 Combine the code that tests inlines for dependence on the containing block width in order to disable resize reflow optimizations, and add to that code things that shrink wrap (inline-block, inline-table, buttons, fieldsets). Also move the percentage-height tests out, and into InitResizeFlags. b=163504 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@219046 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:40:26 +00:00
dbaron%dbaron.org
3052400d5e Implement CSS display types inline-block and inline-table. b=9458, 18217 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@219045 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:36:57 +00:00
bzbarsky%mit.edu
d688fc540d Remove assert that happens to not be assertable. Bug 368259, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218959 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 05:02:31 +00:00
bzbarsky%mit.edu
343ced44ba Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@218933 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 00:05:12 +00:00
bmlk%gmx.de
66cba9f983 Stronger band-aid to prevent table splitting inside columns bug 362275 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@218721 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-21 17:51:33 +00:00
dbaron%dbaron.org
7d1d28c9e8 Make non-box frames use nsITheme methods concerning size, border, and padding, so that non-boxes with appearance set will obey the platform-specific theme. b=366722 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218555 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 22:31:07 +00:00
roc+%cs.cmu.edu
9490c03f81 Relanding changes to replace local helpers with new nsLayoutUtils versions. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218498 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 08:11:32 +00:00
roc+%cs.cmu.edu
09049cfebe Backout of nsLineLayout changes; trying to fix luna orange
git-svn-id: svn://10.0.0.236/trunk@218497 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 06:27:01 +00:00
dbaron%dbaron.org
b203eeeaa4 Handle padding and border correctly for reflow states constructed without a parent (reflow roots, things inside nsIBoxes). b=366952 r+sr=roc, r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@218495 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 05:19:35 +00:00