57 Commits

Author SHA1 Message Date
rbs%maths.uq.edu.au
62da13c005 Add emacs modeline comments, patch by Vlad Sukhoy <vladimir.sukhoy@gmail.com>, r+sr=rbs, b=382884
git-svn-id: svn://10.0.0.236/trunk@227848 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 06:10:23 +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
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
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
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
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
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
leon.sha%sun.com
ca47f5992a Bug 333896
Convert GetAttr calls to AttrValueIs and FindAttrValueIn.
Patch by alfred.peng@sun.com.
roc: review+
roc: superreview+


git-svn-id: svn://10.0.0.236/trunk@195238 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 05:40:11 +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
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
48e5bfcc08 Fully update the state even on invalid markups to avoid crashing, b=307839, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@180010 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-12 05:51:18 +00:00
bzbarsky%mit.edu
c3d2c5e7a2 Remove the pointless nsIContent arg of nsIFrame::AttributeChanged. Bug 281390,
patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@179800 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-07 16:49:21 +00:00
rbs%maths.uq.edu.au
1b27403044 Inter-spacing improvements between MathML frames, b=306543, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@179751 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 23:47:01 +00:00
bzbarsky%mit.edu
51a3e5e4a4 Remove prescontext args for a bunch of MathML methods. Also includes the
MathML part of the patch for bug 244581.  Patch by Vidar Braut Haarr
<bugmail@q1n.org>, r=rbs, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168893 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:57:50 +00:00
bugzilla%arlen.demon.co.uk
e4daffa10a Bug 270708 remove nsPresContext variable from AttributeChanged and cleaned up comment in nsIFrame.h
p=bugmail@q1n.org r=pkwarren sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@167124 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-31 01:13:27 +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
roc+%cs.cmu.edu
1f5258aa4a Bug 226439. Convert layout to EqualsLiteral and EqualsASCII. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@155749 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 13:23:43 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
dbaron%dbaron.org
593f58592d Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +00:00
roc+%cs.cmu.edu
b2d0c1acfb Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144556 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-08 11:00:00 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
rbs%maths.uq.edu.au
593d0fea8e Rework the positioning functions of <mover>, <munder>, <munderover> to improve their behavior w.r.t italic and non-italics fonts. Also use some fuzzy arithmetic to mitigate roundoff errors that could cause accents to collide with their base, b=135940, r=bzbarsky, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@136830 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 07:42:20 +00:00
dbaron%fas.harvard.edu
e8821b1085 Clean up unneeded includes of nsStyleUtil.h, and some other include cleanup in MathML. r=rbs b=71257 (|#include| changes only)
git-svn-id: svn://10.0.0.236/trunk@127461 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 11:52:20 +00:00
shanjian%netscape.com
a9c700ad59 #142562 problem with <td align=right or align=center
We are observing langGroup in some place while ignor it in others. This patch
make all font metrics call consistent. nsIRenderingContext API is change to
make things neat.
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122131 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:14 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
rbs%maths.uq.edu.au
bd68ffc1b2 Updated comments
git-svn-id: svn://10.0.0.236/trunk@113957 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 00:58:15 +00:00
rbs%maths.uq.edu.au
976682cd75 [MathML only - candidate version for 0.9x] * Hooked robust support for advanced dynamic updates via JavaScript and the DOM across the entire MathML module (with particular attention to the numerous presentational attributes that MathML has). * Eliminated some functions (or folded their functionality into recently added APIs). * Reviewed the module as a whole and simplified several chunks of code owing to the benefit of hindsight now. * Added/reviewed the documentation in anticipation of the freezing of Mozilla 1.0, to improve the understanding of people that may read the archived code and learn from it under the appropriate context of this time. * Reviewed the XXX comments and addressed those that could be addressable in this timeframe. * Some renamings (e.g., ReLayout -> ReLayoutChildren to avoid ambiguities as to who does what in terms of the terminology used when referring to the frame hierarchy).
git-svn-id: svn://10.0.0.236/trunk@113879 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 04:38:08 +00:00
rbs%maths.uq.edu.au
ef52d88af3 Added two APIs, InheritAutomaticData() & TransmitAutomaticData(), to respond to dynamic changes that affect automatic data (i.e., data inferred from the actual definition of each MathML tag). The computation of the data was so far mostly locked in Init() and SetInitialChildList() which are meant to be called only once in the life-time of a frame. Factored this computation into the two APIs to be used to rebuild the data, and which can be called repeatedly as appropriate, when dynamic changes arise in the content model. Shuffled code to stay in sync and consolidated the hooks used dynamic changes with the APIs
git-svn-id: svn://10.0.0.236/trunk@113421 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:10:50 +00:00
rbs%maths.uq.edu.au
20005cee47 Another renaming for ease of readability: s/core/coreFrame/g and s/next/nextFrame/g
git-svn-id: svn://10.0.0.236/trunk@113008 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:10:45 +00:00
rbs%maths.uq.edu.au
8dbb385e2b Fix MathML bug 114909 - dynamically changing the displaystyle attribute in <mstyle> tag doesn't change display
git-svn-id: svn://10.0.0.236/trunk@111791 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 04:42:55 +00:00
rbs%maths.uq.edu.au
ba5c4f48d6 [MathML only] shuffle shared functions between files to balance the weights of the files
git-svn-id: svn://10.0.0.236/trunk@111711 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 18:51:30 +00:00
rbs%maths.uq.edu.au
3a31fba4c6 MathML only - Reset the stretchy flags also when presentation data get changed
git-svn-id: svn://10.0.0.236/trunk@111382 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 01:06:05 +00:00
rbs%maths.uq.edu.au
35b346c868 Reset the stretchy flags of underscript/overscript frames when their geometry is expected to be like subscript/superscirpt frames
git-svn-id: svn://10.0.0.236/trunk@111326 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 23:18:01 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
karnaze%netscape.com
d8577654db bug 113424 - mechanism for percent height frames inside table cells to receive special height reflow. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@110006 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 14:51:12 +00:00
bryner%netscape.com
7b3ce3a03b Fixing mathml bustage.
git-svn-id: svn://10.0.0.236/trunk@101290 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:54:04 +00:00
rbs%maths.uq.edu.au
589ac66d85 Ignorable whitespace frames are gone - Additions to the inter-frame spacing - Typos - Rework the style of scripting elements - fix for bugs 67451,15402 - this check-in was contingent on the check-in for bug 68411 - sr=waterson
git-svn-id: svn://10.0.0.236/trunk@87817 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 16:10:51 +00:00
rbs%maths.uq.edu.au
ad33435ec7 Keep things uniform by letting these frames fill the bounding metrics for the caller
git-svn-id: svn://10.0.0.236/trunk@86114 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 21:31:23 +00:00
rbs%maths.uq.edu.au
6e0b6f967b [not part of default build] Merged my tree with Shyjan changes, enabling the italic correction, the inter-frame spacing, and the support for moveablimits. Updated the returned bounding metrics to keep the bounding boxes aligned in the visual debug mode
git-svn-id: svn://10.0.0.236/trunk@86067 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 09:37:14 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
cls%seawood.org
e07c399878 nsString fixes for mathml.
git-svn-id: svn://10.0.0.236/trunk@67506 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:55:55 +00:00
rbs%maths.uq.edu.au
808cd0c5e8 Remove nsMathMLmnFrame
git-svn-id: svn://10.0.0.236/trunk@64351 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 09:38:24 +00:00
pp%ludusdesign.com
a2927ce43e Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
rbs%maths.uq.edu.au
fc2686eba5 [MATHML] *Restructuration to put member data into a mPresentationData struct. *Added support for accent and accentunder, with provision for embellished operators. *Changed usage of GetBoundingMetrics() to the X Windows character coordinate system
git-svn-id: svn://10.0.0.236/trunk@57807 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 08:38:25 +00:00