Граф коммитов

389 Коммитов

Автор SHA1 Сообщение Дата
Michael Ventnor ace5e1d018 Bug 542361 - Fix and remove the GetUsedX assertions r=roc
--HG--
extra : rebase_source : 6bdb0e3251e955ced01476a2255e9ebc511c884b
2010-03-02 11:57:43 +10:00
Dão Gottwald a6c411fa84 Backed out changeset 8c2e7ae5cceb because of test_bug398289.html failure 2010-02-04 17:16:39 +01:00
Michael Ventnor 50f557ed9e Bug 542361 - Fix and remove the GetUsedX assertions. r=roc,dbaron 2010-02-04 14:58:02 +01:00
Boris Zbarsky 7813eeb6d1 Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron 2009-10-29 17:17:56 -04:00
L. David Baron 7f2dd889cf Make unconstrained width assertions into warnings because we can hit them when we clamp really large widths. (Bug 525100) r=roc 2009-10-28 20:22:28 -07:00
Boris Zbarsky ef9beab57c Bug 521525. Make sure to reflow kids with percentage heights if our computed height changes from specified to auto. r=dbaron 2009-10-12 18:27:24 -04:00
Mats Palmgren dea07412a1 Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc 2009-09-16 17:01:36 +02:00
Timothy Nikkel 80119bbe6d Bug 510748 - still get assertions "reflow state computed incorrect width" and "non-root frame's desired size changed during an incremental reflow"; Don't report any padding or border on both axes if scrollbars are hidden; r=dbaron 2009-08-18 00:38:12 +02:00
Zack Weinberg d859d678de Bug 486065. Hack nsCSSOffsetState::InitOffsets to zero out computed padding and borders when the scrollbar size is zero. r=dbaron
--HG--
extra : rebase_source : 92bcaee46ded00722e3fc86b4ca538e5f90f16ef
2009-07-30 15:43:22 +12:00
Timothy Nikkel 21d72e721f Bug 269908. <legend> default style changes restrict styling options. r+sr=bzbarsky 2009-07-29 18:10:50 -04:00
Michael Kohler 4b7c87c984 Bug 106386 - Correct misspellings in source code (old); Part 2; r=timeless 2009-07-27 10:47:02 +02:00
Karl Tomlinson 8cca089ca4 b=495959 set NS_FRAME_CONTAINS_RELATIVE_HEIGHT for relative line-heights r=bz,dbaron 2009-06-20 13:39:40 +12:00
Karl Tomlinson 3bbadcfb42 b=481751 block-height line-height for text input and strut baseline for textarea r=bz,sr=dbaron
--HG--
extra : rebase_source : 1241360066ea9387d15c71936da9468399240640
2009-05-19 10:13:12 +12:00
Boris Zbarsky a49d93acd8 Bug 371561. Use the right codepath for absolutely positioned tables so that they get a useful containing block. r+sr=dbaron 2009-02-24 13:38:20 -05:00
L. David Baron 8949a9fadd Stop reflowing the viewport with constrained height. (Bug 467881) r+sr=roc 2009-01-29 12:39:22 -08:00
Jeremy Lea ce80f69254 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint different types from nsRect/nsMargin/nsSize/nsPoint different types for better compile-type unit checking. r+sr=roc
--HG--
extra : rebase_source : a331a9e49fbc5931f546919281fcca7f008ab615
2009-01-15 16:27:09 +13:00
L. David Baron ad5d856ae6 Rename flags and methods from space manager to float manager. (Bug 191448) r+sr=roc 2009-01-04 19:39:54 -05:00
L. David Baron 4872871d0b Fix some missed renames from bug 471356. r+sr=bzbarsky 2009-01-04 14:52:38 -05:00
L. David Baron 4690547534 Stop using nsAreaFrame for anything other than xul:label, which is the only thing for which it does anything different from nsBlockFrame, and rename it accordingly. (Bug 471356) r+sr=roc
--HG--
rename : layout/generic/nsAreaFrame.cpp => layout/xul/base/src/nsXULLabelFrame.cpp
rename : layout/generic/nsAreaFrame.h => layout/xul/base/src/nsXULLabelFrame.h
2008-12-29 10:07:38 -05:00
L. David Baron aa7f97d3a9 Fix regression in CalcQuirkContainingBlockHeight from change from area frame to block frame in bug 243519. (Bug 471356) r+sr=roc 2008-12-29 10:07:38 -05:00
L. David Baron 0935c2a89b Set up image loaders before reflow for border-image in XUL just like for HTML. (Bug 468473) r+sr=roc 2008-12-23 09:06:56 -05:00
L. David Baron ca761d4290 Handle some additional codepaths for position: fixed elements inside elements with -moz-transform. (Bug 455171) r+sr=bzbarsky a=blocking1.9.1+ 2008-11-25 15:22:39 -08:00
L. David Baron 030c5e4da6 Introduce two different definitions of the placeholder's containing block in InitAbsoluteConstraints, since we want to use a different one for the hypothetical box and for the direction. (Bug 462844) r+sr=bzbarsky a=blocking1.9.1+ 2008-11-25 15:22:39 -08:00
L. David Baron a3dc9147a6 Back out 5d6db13efa26534e3904b5afa5e6faf31c0c82f0 due to mac startup failures. 2008-11-25 14:38:28 -08:00
L. David Baron cc9c3e69d4 Introduce two different definitions of the placeholder's containing block in InitAbsoluteConstraints, since we want to use a different one for the hypothetical box and for the direction. (Bug 462844) r+sr=bzbarsky a=blocking1.9.1+ 2008-11-25 13:27:54 -08:00
L. David Baron 986cb9a310 Avoid exponential growth of special height reflows. (Bug 438509) r=dholbert sr=roc a=blocking1.9.1+ 2008-11-25 13:27:53 -08:00
L. David Baron f4b906eed7 Remove nsHTMLReflowState::mPercentHeightReflowInitiator, which is write-only. (Bug 438509) r+sr=roc a=blocking1.9.1+ 2008-11-25 13:27:53 -08:00
L. David Baron 5b935e6daa Backed out changeset 23eebebb8b48 (from bug 322475, which made us construct all our image loaders at frame construction time) because of issues with propagation of backgrounds to the canvas (bug 460796). 2008-10-28 14:36:17 -07:00
L. David Baron 6e5f3d5edc Construct all our image loaders when we create frames so that we can allow arbitrary numbers of image loaders per frame (for multiple background images). (Bug 322475) r+sr=bzbarsky 2008-10-11 20:49:42 -04:00
Arpad Borsos c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Robert O'Callahan 311213e939 Bug 243519. Rework root element frame construction and the CanvasFrame so that the CanvasFrame is an abs-pos container and the root element frame can be positioned. r=fantasai,sr=dbaron 2008-09-08 20:13:17 +12:00
Robert O'Callahan 36e333a796 Backing out changesets 75919d3eb3d0 and 14ce7619e9c1 due to test failures 2008-09-07 00:35:20 +12:00
Robert O'Callahan c2ca6a7204 Bug 243519. Rework root element frame construction and the CanvasFrame so that the CanvasFrame is an abs-pos container and the root element frame can be positioned. r=fantasai,sr=dbaron 2008-09-06 21:35:05 +12:00
Bernd b360b9fd55 accumulate margins as they might be overconstrained bug 444015 r/sr=dbaron 2008-08-30 18:25:38 +02:00
Zack Weinberg a1072e86a3 Delete nsLayoutUtils::GetAbsoluteCoord(); fold logic into callers and simplify. (Bug 437335) r+sr=dbaron 2008-07-17 16:37:12 -07:00
Andrew Smith ext:(%2C%20Rob%20Arnold%20%3Ctellrob%40gmail.com%3E%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 7d3343e0fa Implement css3 border-image property. (Bug 378217) r=vlad,dbaron,robarnold 2008-07-16 23:30:25 -07:00
L. David Baron 86c186dbd8 Backed out changeset 9b0b2391485c due to linker errors related to nsStyleStructInlines.h not being included enough. 2008-07-16 22:59:14 -07:00
Andrew Smith ext:(%2C%20Rob%20Arnold%20%3Ctellrob%40gmail.com%3E%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 269c2d355a Implement css3 border-image property. (Bug 378217) r=vlad,dbaron,robarnold 2008-07-16 22:18:38 -07:00
Karuna (karunasagark@gmail.com) 0eb449dd2a Bug 409331. Instead of QIing to nsBlockFrame in various places, call an nsLayoutUtils method to do it. r+sr=roc 2008-07-14 10:10:23 +12:00
L. David Baron b268bc423c Remove no-longer-needed else clauses, and make the *IsExact members DEBUG-only. b=419076 r+sr=bzbarsky 2008-06-03 15:25:31 -07:00
fantasai.cvs@inkedblade.net c799e1aaed consider relevant overflow when balancing columns (fixes various crashes and hangs) b=404215 r+sr=roc a=beltzner 2008-04-18 00:40:35 -07:00
dholbert@cs.stanford.edu b7a5c89466 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 2008-04-11 22:32:49 -07:00
jwatt@jwatt.org db01626178 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 2008-03-18 17:11:01 -07:00
dbaron@dbaron.org 0d8b560733 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 2008-03-05 16:05:26 -08:00
roc+@cs.cmu.edu efc1d5a1dd 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 2008-02-27 01:53:48 -08:00
dbaron@dbaron.org 29a306a18f Prevent margin expansion from interfering with table caption position. Based on patch by Mats Palmgren. b=363248 r+sr=roc a=blocking1.9+ 2008-02-26 18:02:50 -08:00
dbaron@dbaron.org 764fb20bfe Fix handling of 'right'-derived static positions (mostly for RTL) when containing block has asymmetric border. b=419072 r+sr=roc a=damons 2008-02-25 13:16:21 -08:00
dbaron@dbaron.org 23d90b0567 Fix regression handling auto margins on absolutely positioned elements. b=419060 r+sr=roc a=blocking1.9+ 2008-02-24 10:28:57 -08:00
uriber@gmail.com 569b5e7d24 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 2008-02-22 05:44:07 -08:00
dholbert@cs.stanford.edu 55fc6902ca 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+ 2008-02-21 13:02:07 -08:00
mozilla@weilbacher.org 4c60ecfb31 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 2008-02-19 11:41:56 -08:00
bzbarsky@mit.edu 594852f718 Make sure to not set a negative computed width. Bug 403576, r+sr=dbaron, a=beltzner 2008-02-14 20:14:53 -08:00
dbaron@dbaron.org 96e4c0fb5d Remove unused nsHTMLReflowState::mRightEdge. b=407086 r+sr=roc a=dsicore 2007-12-12 13:50:27 -08:00
roc+@cs.cmu.edu 3f17341b3d Bug 375304. Make nsHTMLScrollFrame handle situations where the child content height depends on our height. patch by Eli Friedman, r+sr=roc,dbaron 2007-12-04 19:05:57 -08:00
roc+@cs.cmu.edu 8e798bb181 Backing out bug 375304 to fix reftest failures. 2007-12-01 03:49:13 -08:00
roc+@cs.cmu.edu 3dbbc3f864 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 2007-12-01 02:38:09 -08:00
jwatt@jwatt.org d308285bb4 Fixing bug 294086. <svg> should be a replaced element. r+sr=dbaron@mozilla.com blocking1.9=tor@acm.org 2007-11-18 04:09:03 -08:00
roc+@cs.cmu.edu 75849e68ff Backing out bug 375304 because of reftest failure 2007-11-11 19:40:27 -08:00
roc+@cs.cmu.edu f0e32202af Bug 375304. Fix absolute positioning for scrolled abs-pos containers with weird height constraints. patch by Eli Friedman, r+sr=roc 2007-11-11 18:19:35 -08:00
fantasai.cvs@inkedblade.net 404e205908 paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc 2007-10-01 22:57:45 -07:00
bzbarsky@mit.edu 0aa9489e17 Make line-height specified in ch units work. Bug 391909, r+sr+a+dbaron 2007-08-24 15:20:24 -07:00
sharparrow1@yahoo.com ded759b0cc Bug 383883: {inc} issues with block moving through non-moving float. r+sr+a=dbaron 2007-08-20 13:07:50 -07:00
sharparrow1@yahoo.com ddf20f3ad6 Bug 390740: Pass lang-group into GetMetricsFor more consistently (general patch). r+sr=roc, a=dbaron 2007-08-07 12:07:43 -07:00
bzbarsky@mit.edu 9c59e9e4cc Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron
2007-08-02 11:08:05 -07:00
jwalden@mit.edu 6d7584839a 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. 2007-07-08 00:08:04 -07:00
dbaron@dbaron.org 7299d6225d 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 2007-06-18 16:19:39 -07:00
dbaron@dbaron.org 3cfbaf7cc5 Don't propagate line layout in reflow state when we're not in the line. b=320502 r+sr=roc 2007-05-17 23:04:04 -07:00
dbaron@dbaron.org 2539866c49 Fix vertical resizing for quirks mode percentage heights. b=380004 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron 2007-05-15 14:52:44 -07:00
dbaron@dbaron.org f4e95ca927 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 2007-05-10 23:01:31 -07:00
bzbarsky@mit.edu 1b5f6b30b6 Change the FrameNeedsReflow API to pass the dirty flags to be added directly tothe method, instead of setting them before calling the method. That way we canavoid reflowing the ancestor of a reflow root which is not itself dirty but hasdirty children. This also makes it harder to set dirty bits inconsistentlywith the FrameNeedsReflow call. Bug 378784, r+sr=dbaron, pending rbs' reviewon the mathml parts. 2007-05-06 12:16:51 -07:00
bzbarsky@mit.edu 0c312f39a8 Simplify code. Bug 367442 followup, jag's idea, r+sr=dbaron 2007-05-04 23:13:48 -07:00
bzbarsky@mit.edu 9cd2a580d0 Make computed style handle "normal" for line-height by computing an actualnumeric height. Bug 371041, r+sr=dbaron 2007-05-04 22:30:10 -07:00
dbaron@dbaron.org ace3611ec9 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 2007-05-03 16:11:00 -07:00
bzbarsky@mit.edu eeaa1a101b Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch byTaras Glek <tglek@mozilla.com>, rs=roc. 2007-03-30 14:11:41 -07:00
roc+%cs.cmu.edu 8b52a3f2c1 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 2007-03-11 20:34:15 +00:00
bzbarsky%mit.edu 7bfe821507 Don't do arithmetic on NS_UNCONSTRAINEDSIZE. But 371348, r+sr=dbaron 2007-02-25 21:29:17 +00:00
bzbarsky%mit.edu 023de09ffa Set the used padding on the scrolled frame, since we're munging its padding.
Bug 370794, r+sr=dbaron
2007-02-20 18:54:16 +00:00
smontagu%smontagu.org b21d2d6a35 Bug 369236: Move IsBidiFormControl from nsHTMLReflowState to nsBlockFrame. r+sr=roc 2007-02-11 07:19:09 +00:00
sharparrow1%yahoo.com 76a64e5c22 Bug 177805: Fix the use of units in Gecko. r+sr=roc 2007-02-07 07:46:44 +00:00
cvshook%sicking.cc a39ff30284 Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128 2007-01-30 00:06:41 +00:00
dbaron%dbaron.org 0e9e52586a 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 2007-01-27 18:40:26 +00:00
dbaron%dbaron.org 5cb78b8e99 Implement CSS display types inline-block and inline-table. b=9458, 18217 r+sr=bzbarsky 2007-01-27 18:36:57 +00:00
bzbarsky%mit.edu 6c8e16048d Remove assert that happens to not be assertable. Bug 368259, r+sr=dbaron 2007-01-26 05:02:31 +00:00
bzbarsky%mit.edu baec9bd166 Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron
2007-01-26 00:05:12 +00:00
bmlk%gmx.de 97b5794242 Stronger band-aid to prevent table splitting inside columns bug 362275 r/sr=roc 2007-01-21 17:51:33 +00:00
dbaron%dbaron.org 73570b69c5 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 2007-01-17 22:31:07 +00:00
roc+%cs.cmu.edu c4ce9ebf36 Relanding changes to replace local helpers with new nsLayoutUtils versions. r+sr=dbaron 2007-01-17 08:11:32 +00:00
roc+%cs.cmu.edu 49502dd9e1 Backout of nsLineLayout changes; trying to fix luna orange 2007-01-17 06:27:01 +00:00
dbaron%dbaron.org 8ffa9cc3c9 Handle padding and border correctly for reflow states constructed without a parent (reflow roots, things inside nsIBoxes). b=366952 r+sr=roc, r=bzbarsky 2007-01-17 05:19:35 +00:00
roc+%cs.cmu.edu e8d2197c1a Bug 333659. Relanding new nsLineLayout API to make in-first-line-frame and current-nsLineBox available; should not affect anything. r+sr=dbaron 2007-01-17 03:59:32 +00:00
roc+%cs.cmu.edu 7268a1957b Backing out text landing. 2007-01-16 22:25:20 +00:00
roc+%cs.cmu.edu e6bad38abe 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 2007-01-16 20:51:52 +00:00
mats.palmgren%bredband.net 4bd09f70d5 [border-collapse] Table content unnecessarily wrapped. b=363072 r+sr=dbaron 2007-01-05 15:38:03 +00:00
timeless%mozdev.org 4e651390ef Bug 355300 There should be only one nsGkAtoms creature
r=dbaron
2006-12-26 17:47:52 +00:00
mats.palmgren%bredband.net 3dedd0465d Rename ComputeHorizontalValue to ComputeWidthDependentValue (ditto for height) and some minor cleanup. b=364131 r+sr=dbaron 2006-12-18 13:20:18 +00:00
bzbarsky%mit.edu f50ba6a651 Fix bug 364192 -- assert was backwards. 2006-12-18 05:08:01 +00:00
bzbarsky%mit.edu f61607c926 Fix computation of a hypothetical box for abs pos frames which are descendants
of a rel-pos block.  Bug 363637, r+sr=dbaron
2006-12-18 03:00:23 +00:00
uriber%gmail.com e42b5574fb 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 2006-12-17 17:02:22 +00:00
dbaron%dbaron.org d5af630c22 Better API for used padding/border/margin: remove deprecated Calc*For on nsStyleStructs and add GetUsed* to nsIFrame. b=332922 r+sr=roc 2006-12-13 23:04:57 +00:00
uriber%gmail.com 3faa594f22 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 2006-12-13 16:16:25 +00:00