dbaron%dbaron.org
51e6755ccd
Add nsIFrame::GetPresContext, which gets the pres context from the rule node which it gets from the style context. DeCOMtaminate nsStyleContext::GetRuleNode, nsRuleNode::GetRule, and nsRuleNode::GetPresContext. Remove unused nsRuleNode::PathContainsRule. b=208190 r+sr=roc
2003-06-20 01:22:44 +00:00
dbaron%dbaron.org
fe7914e2c9
Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky
2003-06-18 01:59:57 +00:00
dbaron%dbaron.org
75ff60c62f
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
2003-05-15 03:42:21 +00:00
bryner%netscape.com
3a3ec0cbd5
Make --disable-xul work (bug 69995). We build enough XUL to support
...
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree. r=bzbarsky, sr=alecf.
2003-04-11 00:56:27 +00:00
dbaron%dbaron.org
20ae0c288c
No more experiments. Back to plain old macros. r+sr=roc b=196603
2003-03-16 04:51:56 +00:00
dbaron%dbaron.org
5966b88a27
Well, the OS/2 compiler does not like the cool way of doing this, so on to the ugly way... b=197277
2003-03-16 01:34:48 +00:00
dbaron%dbaron.org
c4811e9e52
Ensure that CalcStyleDifference populates the new context with all of the structs present on the old context to ensure that the PeekStyleData optimization is valid. Avoid copy-and-pasted code. b=196603 r+sr=roc
2003-03-16 00:20:21 +00:00
bzbarsky%mit.edu
b55d3bdb7f
Remove some style-data-clearing functions that no one uses and that don't do
...
the right thing anyway. Bug 169989, r+sr=dbaron
2003-03-13 18:58:54 +00:00
dbaron%dbaron.org
c3fb353790
Implement garbage collection of the rule tree to fix some cases of memory growth and to allow us to move towards style rule immutability. b=117316 r+sr=bzbarsky
2003-03-06 19:14:17 +00:00
dbaron%dbaron.org
6dd68f3c64
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
2003-02-22 15:34:38 +00:00
bryner%netscape.com
e43f5a49fd
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.
2003-02-22 00:32:13 +00:00
caillon%returnzero.com
0ab3beee78
189533, background-position has low accuracy. Specifically, it was not allowing fractional percentages.
...
r+sr=dbaron
2003-01-19 02:36:04 +00:00
dbaron%dbaron.org
48544669f3
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
2003-01-08 19:24:38 +00:00
peterv%netscape.com
d96051a4a2
Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
2002-12-11 14:24:49 +00:00
bzbarsky%mit.edu
279ffda515
Make GetParent on nsStyleContext return an
...
already_AddRefed<nsIStyleContext>. Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:46:15 +00:00
dbaron%fas.harvard.edu
29c30c5f3e
Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf
2002-09-30 14:18:27 +00:00
roc+%cs.cmu.edu
cb32a0f906
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
2002-08-24 14:41:28 +00:00
dbaron%fas.harvard.edu
79638e5f49
Implement CSS2 :lang() selector. Fix problems with dynamic changes of 'quotes' property. Patch mostly by Ulrich Drepper (drepper@redhat.com), with some changes by Pierre Saslawsky and dbaron. r=rbs, dbaron sr=bzbarsky b=35768
2002-08-14 12:34:39 +00:00
dbaron%fas.harvard.edu
886e6f1527
Add comments explaining lookups in nsCachedStyleData. b=156902 sr=bzbarsky
2002-08-06 13:46:35 +00:00
dbaron%fas.harvard.edu
27b9d4524f
To make maintainance easier and allow more data-as-data rather than data-as-code, create a preprocessable list of style structs and use it in many places where we previously listed all (or half) of the style structs. b=155745 r=bzbarsky sr=waterson
2002-07-09 04:10:10 +00:00
seawood%netscape.com
0597412383
The c++ standard requires that the throw list be used when declaring functions as well as defining them.
...
commercial compiler fixes for bug #149032
2002-07-03 17:14:41 +00:00
seawood%netscape.com
03ace271f0
Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
...
Bug 149032 r=timeless sr=scc
2002-07-02 20:25:30 +00:00
dbaron%fas.harvard.edu
b350a0fd0f
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
2002-03-31 16:59:00 +00:00
smontagu%netscape.com
37ebf6848d
Converting bidi utilities to non-XPCOM interfaces. Bug 120818; r=mkaply, nhotta; sr=attinasi
2002-02-19 20:41:32 +00:00
dbaron%fas.harvard.edu
4459392c85
Restore optimization of getting data from parent context only when there is actually inheritance (except correctly this time), to prevent unnecessary struct computation and creation. Rename nsRuleNode::mInheritBits to mDependentBits. Use none bits (and thus prevent struct recomputation and copying) in the case where explicit inheritance overrides a non-inherited specified value, but still only for inherited structs. Other minor cleanup. b=113098 sr=hyatt r=bzbarsky
2002-02-17 01:53:40 +00:00
karnaze%netscape.com
860a0532c2
bug 125426 - terminate xul style data when writing regression data. sr=dbaron
2002-02-14 14:54:06 +00:00
peterlubczynski%netscape.com
38bb699d49
Adding TextReset case to GetUniqueStyleData, bug 36997 r=dbaron sr=attinasi a=brendan
2001-12-14 03:47:02 +00:00
bbaetz%cs.mcgill.ca
5c8cc975a2
Bug 80142 (among others) - landing of SVG_20010721_BRANCH. Work by
...
alex.fritze@crocodile-clips.com , james.turner@crocodile-clips.com , and
everyone else how helped on the branch. Thanks to peterv for last minute
build changes
r=cls for build changes
r=jst, rs=brendan for #ifdef'd parts touching existing files.
NOT ON BY DEFAULT
2001-12-12 07:59:31 +00:00
attinasi%netscape.com
bfbe71bf7e
Adding parent to StyleContext listing for help in debugging. b= 113518 r=dbaron sr=kin
2001-12-07 00:38:27 +00:00
dbaron%fas.harvard.edu
a2ee74f9f3
Various cleanup and commenting in nsRuleNode and nsStyleContext. A few minor performance tweaks to nsRuleNode::WalkRuleTree. Fix correctness / crash errors that were caused by not setting the parent struct in the Compute*Data functions for inherited structs. b=111815 r=hewitt sr=hyatt
2001-12-02 00:44:45 +00:00
hyatt%netscape.com
62e1620a29
MIssed a spot in 109261. same reviewers apply as for previous checkin of bug fix.
2001-11-15 07:31:13 +00:00
hyatt%netscape.com
257658ac62
Inline PeekStyleData for 109261.
2001-11-14 08:29:11 +00:00
hyatt%netscape.com
cec98cc49a
Perf and footprint opt. Make style re-resolution cheaper. r=glazou, sr=hewitt, bug 109261
2001-11-14 08:19:13 +00:00
dbaron%fas.harvard.edu
6095c74c92
My guess at AIX and OS/2 bustage was wrong -- backing it out. Someone with access to a machine with one of those compilers will have to try various things here.
2001-10-24 09:03:46 +00:00
dbaron%fas.harvard.edu
da56284412
Wild guess at fixing AIX and OS/2 bustage.
2001-10-24 06:53:39 +00:00
hyatt%netscape.com
0c8c1348b3
Fix for 104336, deCOMtaminate rulenode, rulewalker, frames, r=dbaron, sr=waterson
2001-10-24 00:01:09 +00:00
dougt%netscape.com
942988df26
Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172, 104316, 104420, 104426, 104461, 104511, 104527
2001-10-19 20:59:33 +00:00
pierre%netscape.com
2e03c268a6
91665 "Dump Style Contexts doesn't work anymore". Fixed nsStyleContext::List(). r=attinasi/sr=hyatt
2001-10-17 00:25:26 +00:00
dbaron%fas.harvard.edu
5a357eea01
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
2001-10-16 05:31:36 +00:00
dbaron%fas.harvard.edu
ed869c764e
Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc
2001-10-16 03:53:44 +00:00
rbs%maths.uq.edu.au
7f1638d039
bug 99010 - font changes. r=attinasi@netscape.com, sr=hyatt@netscape.com
2001-09-27 18:33:58 +00:00
hewitt%netscape.com
8c19fc069c
93519 - new box-ordinal-group xul layout feature, r=waterson, sr=hyatt
2001-09-25 23:35:36 +00:00
hewitt%netscape.com
433ff11b78
93519 - new box-ordinal-group xul layout feature, r=waterson, sr=hyatt
2001-09-25 22:17:00 +00:00
gerv%gerv.net
1968b7dad2
License changes, take 2. Bug 98089. mozilla/content/.
2001-09-25 01:32:19 +00:00
hyatt%netscape.com
e1abe2c919
Fix for 71471. r=blake, sr=hewitt
2001-08-02 00:09:27 +00:00
hyatt%netscape.com
84f1ff48ed
Fix for 90081, r=dbaron, sr=attinasi
2001-07-25 06:33:06 +00:00
hyatt%netscape.com
cbfec5d9f3
Backing out 90081 fix until I understand why opt builds only crash.
2001-07-19 19:43:51 +00:00
hyatt%netscape.com
1f794f1074
Fix for 90081, r/sr=waterson,attinasi
2001-07-18 22:48:35 +00:00
hyatt%netscape.com
b135c5b55a
Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson
2001-05-31 22:19:43 +00:00
mkaply%us.ibm.com
a817d2f3f3
#76020
...
r=waterson, sr=attinasi
Remove mDefaultDirection stuff - IBMBIDI does this correctly
2001-05-20 22:44:05 +00:00