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

354 Коммитов

Автор SHA1 Сообщение Дата
Benjamin Smedberg c0b8dd79be Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

nsITextControlFrame didn't have an IID the first time around, but this wasn't a compile error because nsITextControlFrame::kFrameIID inherited from nsIFormControlFrame::kFrameIID. I've added a static analysis pass to verify the correct behavior, since I can't figure out a way to make the compiler do it.

--HG--
extra : rebase_source : 4894a2ca0278e2ab92f27459db77165f8348cf41
2009-01-12 14:20:59 -05:00
Benjamin Smedberg 507daffc50 Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal. 2009-01-09 11:35:24 -05:00
Benjamin Smedberg b0f322f21c Bug 396185 - Make nsIFrame derivatives and helper abstract classes use a different dynamic-cast system than nsISupports:
* we know all types frames may be cast to at compile time, so instead of extensible GUID IIDs, use a big enum (see nsQueryFrame::FrameIID)
* eliminate all vestiges of refcounting, since frames aren't refcounted

Some frames (SVG frames in particular) still implement nsISupports-derived interfaces, for example nsISVGValue. There is a FrameIID for nsISVGValue that lets you go from a frame to the XPCOM interface, but you can't query back.

r+sr=roc

This patch locally causes two REFTEST-UNEXPECTED-PASS for Bidi stuff. It's possible that I accidentally fixed a bug, but I'm not sure, so I'm going to wait for the tinderboxes to confirm my local results.
2008-11-05 14:25:30 -05:00
L. David Baron 53ac2c7d8b Rename flags and methods from space manager to float manager. (Bug 191448) r+sr=roc 2009-01-04 19:39:54 -05:00
Bernd 992b9ec167 bug 360422 remove obsolete code r/sr=bzbarsky 2008-10-26 10:24:59 +01:00
Graeme McCutcheon 697a837037 Bug 451252 - "Highlight All" find selection not visible in elements that have -moz-user-select: none set; r+sr=roc 2008-09-07 16:12:50 +02:00
Robert O'Callahan 51357ace04 Bug 444688. Use an IsFrameOfType check instead of a frame state bit to detect whether a frame excludes ignorable whitespace children. r+sr=dbaronlayout 2008-07-14 10:41:18 +12:00
bzbarsky@mit.edu 9393021d0d Invalidate things correctly when the caption or inner table is resized. Bug 424465, r=bernd, sr=roc 2008-04-01 14:53:19 -07:00
dbaron@dbaron.org 4ad33a4a75 Compute the shrink-wrapping size of table outer frames correctly. b=363402 r+sr=roc a1.9b4=beltzner 2008-02-28 09:55:04 -08:00
dbaron@dbaron.org 93217c2f03 Fix horizontal positions of top and bottom captions in the presence of non-left-aligned tables. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-26 18:03:11 -08:00
dbaron@dbaron.org 93bcf63787 Make 'top' and 'bottom' captions follow the CSS2.1 behavior and put the old behavior into 'top-outside' and 'bottom-outside'. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-26 18:02:20 -08:00
dbaron@dbaron.org 1ed1f626c0 Split nsTableOuterFrame::OuterReflowChild. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-26 18:01:33 -08:00
fantasai.cvs@inkedblade.net 6f64150c05 switch GetOverflowAreaProperty callers to GetOverflowRect b=417116 r+sr=roc a=roc 2008-02-19 23:08:55 -08:00
surkov.alexander@gmail.com ddfdd08323 Bug 410052 - bustage fix on windows 2008-02-06 23:23:00 -08:00
surkov.alexander@gmail.com a3e189584e Bug 410052 - Fix our nsHTMLAccessibleTable class so GetIndexAt and GetRowAtIndex and GetColumnAtIndex behave consistently, patch=me, marcoz, r=marcoz, me, bernd, sr=roc, blocking1.9+=dsicore 2008-02-06 23:03:26 -08:00
bmlk@gmx.de 1bca6db613 remove dead code, bug 282009 r/sr=roc a=mtschrep 2008-01-19 22:34:03 -08:00
roc+@cs.cmu.edu c8487c8de1 Bug 408749. Reflow captions with unconstrained height, because we have no logic to reflow their continuations. r+sr=bzbarsky 2007-12-20 19:25:36 -08:00
bzbarsky@mit.edu e92f78ff80 If we moved but did not reflow either the caption or the inner table, invalidate the relevant area. Bug 379353, r=bernd, sr=roc 2007-11-07 09:17:30 -08:00
bzbarsky@mit.edu 923ebd22b7 Make sure to reflow the caption if it gets inserted into our table before another caption. Bug 389924, r=bernd, sr+a=dbaron 2007-08-02 14:34:58 -07:00
bzbarsky@mit.edu ae6b0c1286 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 12e960c504 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
aaronleventhal@moonset.net 444759d663 Bug 377783. Fix crash and clean up table a11y. r=evan.yan 2007-07-05 08:39:29 -07:00
mats.palmgren@bredband.net 0711c3f514 Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst 2007-07-03 19:15:31 -07:00
bzbarsky@mit.edu 200f32fc84 Fix determination of the style context parent for the inner table frame of aroot table. Bug 379386, r+sr=roc 2007-05-07 20:59:12 -07:00
bzbarsky@mit.edu d6284567b3 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 0b6b71469b Fix bug 379229, r+sr=dbaron 2007-04-29 23:17:03 -07:00
bzbarsky@mit.edu bb4808339f Give captions the right style context parent when dynamically restyling. Bug378240, r=bernd, sr=dbaron 2007-04-22 12:15:24 -07:00
bzbarsky@mit.edu bf5ea77d39 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 0054412272 Bug 374866. Reftests for text-transform. r=dbaron 2007-03-22 16:01:14 -07:00
bzbarsky%mit.edu 42dd1d67e0 Invalidate things correctly when the caption or inner table is resized. Bug
424465, r=bernd, sr=roc
2008-04-01 21:53:19 +00:00
dbaron%dbaron.org c42a9f16ed Compute the shrink-wrapping size of table outer frames correctly. b=363402 r+sr=roc a1.9b4=beltzner 2008-02-28 17:55:04 +00:00
dbaron%dbaron.org 9cfcb8e7fa Fix horizontal positions of top and bottom captions in the presence of non-left-aligned tables. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-27 02:03:11 +00:00
dbaron%dbaron.org 7540e421e9 Make 'top' and 'bottom' captions follow the CSS2.1 behavior and put the old behavior into 'top-outside' and 'bottom-outside'. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-27 02:02:21 +00:00
dbaron%dbaron.org 05b280afdd Split nsTableOuterFrame::OuterReflowChild. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-27 02:01:33 +00:00
fantasai.cvs%inkedblade.net 877d8b6e47 switch GetOverflowAreaProperty callers to GetOverflowRect b=417116 r+sr=roc a=roc 2008-02-20 07:08:56 +00:00
surkov.alexander%gmail.com ee7104eff1 Bug 410052 - bustage fix on windows 2008-02-07 07:23:00 +00:00
surkov.alexander%gmail.com 19d34c7009 Bug 410052 ��� Fix our nsHTMLAccessibleTable class so GetIndexAt and GetRowAtIndex and GetColumnAtIndex behave consistently, patch=me, marcoz, r=marcoz, me, bernd, sr=roc, blocking1.9+=dsicore 2008-02-07 07:03:26 +00:00
bmlk%gmx.de b4f0c3c57d remove dead code, bug 282009 r/sr=roc a=mtschrep 2008-01-20 06:34:03 +00:00
roc+%cs.cmu.edu f0de57fdd6 Bug 408749. Reflow captions with unconstrained height, because we have no logic to reflow their continuations. r+sr=bzbarsky 2007-12-21 03:25:36 +00:00
bzbarsky%mit.edu 79d461a5dd If we moved but did not reflow either the caption or the inner table,
invalidate the relevant area.  Bug 379353, r=bernd, sr=roc
2007-11-07 17:17:30 +00:00
bzbarsky%mit.edu d728d14a8c Make sure to reflow the caption if it gets inserted into our table before
another caption.  Bug 389924, r=bernd, sr+a=dbaron
2007-08-02 21:34:59 +00:00
bzbarsky%mit.edu 45ac2edcbc 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 18:08:07 +00:00
jwalden%mit.edu ef68fcf595 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 07:08:56 +00:00
aaronleventhal%moonset.net f2b6379f0f Bug 377783. Fix crash and clean up table a11y. r=evan.yan 2007-07-05 15:39:30 +00:00
mats.palmgren%bredband.net 5a0917c43a Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst 2007-07-04 02:15:35 +00:00
bzbarsky%mit.edu b70a3743e3 Fix determination of the style context parent for the inner table frame of a
root table.  Bug 379386, r+sr=roc
2007-05-08 03:59:12 +00:00
bzbarsky%mit.edu c7a6b387d2 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.
2007-05-06 19:16:52 +00:00
bzbarsky%mit.edu 2d5fe3f3f1 Fix bug 379229, r+sr=dbaron 2007-04-30 06:17:03 +00:00
bzbarsky%mit.edu 98e89965f4 Give captions the right style context parent when dynamically restyling. Bug
378240, r=bernd, sr=dbaron
2007-04-22 19:15:25 +00:00
bzbarsky%mit.edu d9f302946b Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.
2007-03-30 21:11:47 +00:00