Commit Graph

64 Commits

Author SHA1 Message Date
dbaron@dbaron.org
ceaafcf715 Fix silly mistake. b=209091 r+sr=bzbarsky 2003-06-12 00:03:32 +00:00
dbaron@dbaron.org
cb886e55cc Put more information on the CSS properties in nsCSSPropList.h.
Use the property list in the tables for nsRuleNode::CheckSpecifiedProperties.
To reduce heap usage, redesign the storage of properties and values in nsCSSDeclaration to allocate all property-value pairs in a declaration block in a single allocation, and use temporary structures (like the old permanent structures) during parsing and modification.  Replace per-property switch statements in nsCSSDeclaration with table-based code to reduce code size.
b=125246  r+sr=bzbarsky
2003-06-07 22:14:42 +00:00
bzbarsky@mit.edu
5f4d2d1639 Avoid possible double-delete of CSS declaration. Bug 196271, r+sr=dbaron 2003-03-17 03:46:17 +00:00
bzbarsky@mit.edu
61b70b23de Fix bug 197090; foo.style.background="" would throw instead of just doing
nothing.  r+sr=dbaron
2003-03-12 21:54:50 +00:00
dbaron@dbaron.org
e9466869d1 Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830 2003-03-06 19:07:22 +00:00
bzbarsky@mit.edu
e22cf23e62 Make GetImportantRule and GetISupportsValue return already_AddRefed.
Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:59:43 +00:00
roc+@cs.cmu.edu
458e434a36 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
bzbarsky@mit.edu
5d9c3faa58 Initialize the hint, just in case. Bug 139968, r=jkeiser, sr=jst 2002-05-11 23:26:44 +00:00
dbaron@fas.harvard.edu
6a73e05779 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:56:05 +00:00
bzbarsky@mit.edu
a228065c7f |foo.style.cssText = "";| should work (need to take old hint into
account).  Bug 131905, r=caillon, sr=jst, a=scc.
2002-03-19 22:38:08 +00:00
bzbarsky@mit.edu
dd7fb07f3e Speed up edge case in RemoveProperty. Bug 131614, r=caillon, sr=jst,
a=dbaron
2002-03-18 05:08:23 +00:00
blythe@netscape.com
a348c79725 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
2002-01-15 22:43:37 +00:00
jst@netscape.com
f9c89a474e Whitespace changes. 2001-11-29 09:59:31 +00:00
dbaron@fas.harvard.edu
601f03cee7 Move nsDOMCSSAttributeDeclaration into its own file to progress towards moving all of the style system code back into the layout library. r=jst sr=hyatt b=108750 2001-11-07 07:06:31 +00:00