167 Commits

Author SHA1 Message Date
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
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
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
mats.palmgren%bredband.net
09db97ba4d Deal with parent frame that doesn't map content. b=373882 r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@221928 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-15 19:09:37 +00:00
mats.palmgren%bredband.net
d609bdc7ac Make DidReflowChildren() deal with a null first frame. b=372483 r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@221279 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-04 16:13:15 +00:00
mats.palmgren%bredband.net
34defe8a62 Call DidReflow() on child frames where needed in case of errors. b=366012 r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@221223 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-02 10:55:55 +00:00
dbaron%dbaron.org
32d54152c9 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220874 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 18:33:33 +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
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
dbaron%dbaron.org
103e95ab15 Change the bulk of ascent (baseline) computation to happen on a virtual method on nsIFrame, and remove the redundant descent member from nsHTMLReflowMetrics, primarily to support having both first-line and last-line baselines. b=367332 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218785 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 04:06:56 +00:00
roc+%cs.cmu.edu
29067fe44b Bug 333659. Relanding nsLineLayout API changes for new text code. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218576 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-18 01:20:09 +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
roc+%cs.cmu.edu
75d52f8575 Bug 333659. Relanding new nsLineLayout API to make in-first-line-frame and current-nsLineBox available; should not affect anything. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218491 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 03:59:32 +00:00
roc+%cs.cmu.edu
4f42d74394 Backing out text landing.
git-svn-id: svn://10.0.0.236/trunk@218456 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 22:25:20 +00:00
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
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
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
f06ba26d9e Bug 343445. Change inline reflow strategy to avoid looking ahead through words while measuring text. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@213836 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 01:47:47 +00:00
rbs%maths.uq.edu.au
46fd8ca8b4 Wrong layout when adding rows to <mtable> via the DOM. Pass a stylechanged reflow so that wrappers of <mtable> don't over-optimize their reflow, b=354296, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@212796 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-28 10:52:44 +00:00
bzbarsky%mit.edu
c0103b4e12 Ensure a space manager for MathML containers reflowing inlines. Bug 325222, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@212276 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-25 01:44:25 +00:00
rbs%maths.uq.edu.au
6fb17e5763 Consolidation of some mtable/matrix related attributes that affect the style, and make them responsive to dynamic changes via JavaScript, b=179619, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209313 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-07 03:45:45 +00:00
rbs%maths.uq.edu.au
fec3388d44 MathML <mtable>s sometimes have incorrect scriptlevel, b=328141, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208712 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-29 17:21:36 +00:00
rbs%maths.uq.edu.au
8caba6b9bc js changes to MathML are not drawn, b=337700, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@207549 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-16 05:28:26 +00:00
rbs%maths.uq.edu.au
599898014b Frames not destroyed with <mmultiscripts> and <mtd>, b=348492, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@207415 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-15 04:49:43 +00:00
rbs%maths.uq.edu.au
4683c200da Fix assertion - bug 347495 - was due to an attempt to paint children in case of invalid markup, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@206786 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 23:42:32 +00:00
rbs%maths.uq.edu.au
82b376e12c Backout earlier patch for bug 327737 due to regression
git-svn-id: svn://10.0.0.236/trunk@206526 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 23:27:55 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
rbs%maths.uq.edu.au
7dcdbcba61 Be sure to return the reflow status as complete in the case of invalid markup to avoid a hang due to the frame being reflowed over and over again. Patch by steve.swanson@mackichan.com, b=323737, r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@202307 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 07:49:02 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
roc+%cs.cmu.edu
c469d694c3 Bug 330300. Move mFrame from nsDisplayItem subclasses up to nsDisplayItem itself, and make GetUnderlyingFrame an inline non-virtual function. Patch by Alfred Peng, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192331 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-14 20:43:18 +00:00
roc+%cs.cmu.edu
38a9722e9f Bug 328926. Remove aPresContext from nsIFrame::Init and nsIFrame::DidSetStyleContext. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@192085 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:55:21 +00:00
bzbarsky%mit.edu
fb8579f413 Fix leak bug 324969 -- make sure to call virtual destructors.
git-svn-id: svn://10.0.0.236/trunk@188434 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-29 18:48:58 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
cvshook%sicking.cc
12b789d906 Bug 310436: Implement IsFrameOfType and use that to disable non-svg frames from being children of svg frames. r=bz sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@188176 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-25 21:16:12 +00:00
rbs%maths.uq.edu.au
ab2438913e don't attempt to stretch a frame flagged as having invalid markup, b=323738, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@187947 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 02:31:02 +00:00
cvshook%sicking.cc
ceaf7bdebc Bug 323910: Merge atom lists in gklayout
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@187798 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 00:58:12 +00:00
cvshook%sicking.cc
d3d2e97d3b Bug 321294: Remove unused ReplaceFrame codepaths.
r/sr=roc


git-svn-id: svn://10.0.0.236/trunk@187266 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 22:58:37 +00:00
rbs%maths.uq.edu.au
0739f0e597 Fix crash due to outdated pointers when the DOM is modified, b=317546, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@187254 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 20:38:46 +00:00
rbs%maths.uq.edu.au
7771aa8fc7 Fix StirDOM/MathML crash bug 309120, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@186898 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-04 07:29:09 +00:00
cvshook%sicking.cc
b5a86b3a14 Backing out patch that was accidentally checked in with bug 284950.
git-svn-id: svn://10.0.0.236/trunk@186695 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-29 04:58:30 +00:00
cvshook%sicking.cc
cf43ff4e7d Bug 284950: DeCOMTaminate nsIContent::GetAttrNameAt
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@186678 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-28 21:52:39 +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
9199079043 Bug 313817. DeCOMtaminate SVG and MathML NS_New*Frame functions. r+sr=roc, patch by Marc Liddell.
git-svn-id: svn://10.0.0.236/trunk@184444 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 02:36:29 +00:00
cvshook%sicking.cc
b26f9f52fb Bug 311827: Make GetAttr return a bool rather then an nsresult.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
rbs%maths.uq.edu.au
2ea42ab429 crash evil mathml testcase with display:block, r+sr=bz, b=286122
git-svn-id: svn://10.0.0.236/trunk@183105 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-26 23:21:09 +00:00