31 Commits

Author SHA1 Message Date
dbaron%dbaron.org
3bdd5c558b Implement the DOM interfaces for CSS style rules on a wrapper object which allows the immutable rule object to be swapped out underneath. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144087 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:40:37 +00:00
dbaron%dbaron.org
80187c571f Remove |aPresContext| and |aPresShell| parameters from |nsIFrameManager| methods. b=208190 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143961 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:52:58 +00:00
dbaron%dbaron.org
1b41fc35f5 Create only one CSSStyleRuleImpl per rule rather than one per comma-separated selector to fix CSSOM compliance bugs and make rule immutability easier. Store list of selectors on the CSSStyleRuleImpl, each with their own weight. b=98765 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143715 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-14 23:50:54 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +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
alecf%netscape.com
f24ccb3da0 landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
alecf%netscape.com
2a83f1b2d9 backout my static atom patch for now until I figure out the performance loss! :(
bug 195262


git-svn-id: svn://10.0.0.236/trunk@139962 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:13:08 +00:00
alecf%netscape.com
59c2bfe187 fix for bug 195262:
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin

this is an experimental landing - if there are performance issues, I will back it out.


git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +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
e58a799bfe fix assertions when manipulating the MathML attribute style sheet, b=188103, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@135956 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 23:19:56 +00:00
bzbarsky%mit.edu
8d092fcca8 ReResolveStyleContext needs to deal with :before/:after pseudos correctly. Bug
126072, r=dbaron, sr=roc+moz.  Also fixes bug 141259 (incorrect warnings about
style tree integrity).


git-svn-id: svn://10.0.0.236/trunk@135852 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-05 05:05:17 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
roc+%cs.cmu.edu
c6bb83f66a Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128041 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 14:41:28 +00:00
rbs%maths.uq.edu.au
65cf3c1192 Treat the attributes of <mpadded> correctly, b=148326, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123366 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:20:03 +00:00
rbs%maths.uq.edu.au
ed6af20424 sync the CSS mapping of MathML attributes that affect the style (e.g. color) when these attributes are changed dynamically, b=142592, r=roc, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@121587 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 01:11:09 +00:00
rbs%maths.uq.edu.au
0b3c5b285b Bug 132844 - detect the MathML namespace to load mathml.css on demand. This allows MathML to be styled properly in documents without a DOCTYPE, e.g., in the case of transformed documents that are produced on the fly from XSLT; r=heikki, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@118125 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 15:42:45 +00:00
rbs%maths.uq.edu.au
981693a06a Generous null checks to protect against crashes, and removal on a debug-only only function, b=132492, r=dbaron, sr=attinasi, a=asa
git-svn-id: svn://10.0.0.236/trunk@117896 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 03:57:56 +00:00
dbaron%fas.harvard.edu
94075d45c2 Remove |aForceUnique| parameter from style context resolving methods, and corresponding flag from nsStyleContext, since the only caller was ReResolveStyleContext (on the assumption that other callers used it). Allow ReResolveStyleContext to benefit from FindChildWithRules and allow it to re-resolve to the same tree even when called on the root style context. b=133821 r=attinasi sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@117795 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-31 16:59:00 +00:00
rbs%maths.uq.edu.au
07186d47ad bug 126619 - fixups for the final metrics of certain MathML characters, and add transliteration for U+2212 the official Unicode minus sign (ongoing bug 119664), r=roc+moz, rs=attinasi/blizzard, a=shaver
git-svn-id: svn://10.0.0.236/trunk@115399 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 01:35:27 +00:00
rbs%maths.uq.edu.au
612caf8375 bug 124619: initializations to silence the compiler
git-svn-id: svn://10.0.0.236/trunk@114829 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:16:33 +00:00
rbs%maths.uq.edu.au
7476da1396 Extend the support of MathML styling attributes to the root <math> element itself
git-svn-id: svn://10.0.0.236/trunk@114565 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 02:44:53 +00:00
rbs%maths.uq.edu.au
27e6f13d75 Add support for MathML styling attributes (e.g., color, fontsize, etc) by creating an internal attribute stylesheet on the fly, and populating it by mapping attributes to CSS rules as frames get created. This is a work-around to bug 69409 which is is not scheduled to be addressed by the Gecko team anytime soon. Also Cleaned-up the debug rules in mathml.css and removed the (in)famous red color of <mi>
git-svn-id: svn://10.0.0.236/trunk@114503 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 12:26:43 +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
2ff8bf1765 Continuing to factor handlers to rebuild automatic data during dynamic changes
git-svn-id: svn://10.0.0.236/trunk@113515 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:43:03 +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
8df8af8ad7 revert an unintended change that crept in
git-svn-id: svn://10.0.0.236/trunk@113009 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:23:07 +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
9389ef38e6 Continuation of tyding
git-svn-id: svn://10.0.0.236/trunk@112020 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 08:06:08 +00:00
rbs%maths.uq.edu.au
526b3dfa82 [MathML only] Rename the pointer on the embellished operator from |firstChild| to |next| because it is more clearer with the latter that it is an hierarchy. Also made the inheritance of the displaystyle more reliable by walking up to the root <math> tag if necessary, e.g., if a MathML frame happens to be surrounded by non-MathML helper frames needed for its support
git-svn-id: svn://10.0.0.236/trunk@111885 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 23:40:40 +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
842edf4946 First check-in
git-svn-id: svn://10.0.0.236/trunk@87816 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 16:09:14 +00:00