Commit Graph

90 Commits

Author SHA1 Message Date
Zack Weinberg
03936acdb3 Bug 569719 part 14: replace DeclarationChanged() with SetCSSDeclaration(), which takes the new declaration as an argument. r=dbaron 2010-07-23 11:00:47 -07:00
Zack Weinberg
797a393635 Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron 2010-07-23 11:00:34 -07:00
Zack Weinberg
a308ab9843 Bug 569719 part 3: collapse nsDOMCSSDeclaration::ParseDeclaration into its sole caller (nsDOMCSSDeclaration::SetCSSText); remove always-constant flag arguments to nsCSSParser::ParseAndAppendDeclaration; rename that method to ParseDeclarations. r=dbaron 2010-07-23 11:00:19 -07:00
Zack Weinberg
867b6d344a Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron 2010-06-28 15:49:35 -07:00
Zack Weinberg
71207447f1 Bug 558235 part 2: Kill CSS2PropertiesTearoff. r=dbaron 2010-07-14 13:58:56 -07:00
Mats Palmgren
dcab92f9c1 Bug 383488: don't accept trailing tokens in 'value' in style.setProperty(prop,value,"important"). r=dbaron 2010-04-01 23:07:40 -07:00
Zack Weinberg
09642046d8 Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron 2010-03-02 13:00:53 -08:00
Zack Weinberg
7351c020a1 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron 2010-03-02 12:59:32 -08:00
Robert Longson
69f805d43c Bug 374216 - Setting element.style.someSvgProperty has no effect. r=dbaron,sr=roc 2010-02-06 13:46:54 +00:00
L. David Baron
49b68bc235 Call BeginUpdate before going into the guts of updating a style attribute so that the resulting flush happens sooner. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Peter Van der Beken
55fa0d8c2e Fix for bug 508780 (Stop using tearoff from quickstubs for nsDOMCSSDeclaration/nsComputedDOMStyle), part 2. r=jst. 2009-09-18 15:09:55 +02:00
Peter Van der Beken
692b7b0459 Part 1 of fix for bug 500850 (Make inline style use wrapper cache and slimwrappers). r/sr=bz. 2009-07-13 13:14:57 +02:00
L. David Baron
f04d8823d6 Put nsIDOMNSCSS2Properties in its own file to reduce risk of bumping the IID of the wrong interface. (Bug 473418) r+sr=jst 2009-01-16 13:32:09 -08:00
9e4b29a9ba Propagate a stylesheet's principal to the URI and Image CSSValues derived fromthat sheet. Bug 377091, r+sr=dbaron 2007-05-02 18:15:53 -07:00
dbaron@dbaron.org
bdeea6cda8 File comments that show up in LXR and provide a quick summary of what's in each file. 2006-03-25 05:47:31 +00:00
dbaron@dbaron.org
41e94af61f Separate sheet URI and base URI for style attributes and for CSS parsing from DOM APIs. b=258707 r+sr=bzbarsky 2004-09-10 23:31:48 +00:00
bzbarsky@mit.edu
e4e1b8add4 Use property ids from the property list, as long as we're using preprocessing
to create all the Set/Get* functions for nsIDOMCSS2Properties.  Bug 243728, r+sr=dbaron
2004-06-08 01:32:29 +00:00
gerv@gerv.net
cf0b0c064a Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
dbaron@dbaron.org
77c091ec0e Implement element.style for XUL elements. Fully fault XUL attributes when style attribute is modified, and ensure that string and style rule versions of style attribute stay in sync. (HTML elements only store the latter.) b=7639 r+sr=bzbarsky 2003-10-30 01:40:33 +00:00
bzbarsky@mit.edu
e069401097 Make DOM CSS declarations smaller by mRefCnt, since they are refcounted
together with their DOM rules (except for inline style).  Bug 215735,
r+sr=dbaron
2003-09-24 03:34:27 +00:00
dbaron@dbaron.org
86130c3207 Fix leak caused by CSS2PropertiesTearoff by simplifying aggregation. b=212269 r+sr=bzbarsky 2003-07-11 20:44:25 +00:00
dbaron@dbaron.org
e881013acf 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 2003-06-24 05:40:37 +00:00
dbaron@dbaron.org
99d81c4dbc 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
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
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
caillon@returnzero.com
4e71df6daa Bug 170895. Reducing footprint. Use XPCOM aggregation to get at CSS2Properties.
r=dbaron sr=alecf
2002-10-03 19:41:42 +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
blythe@netscape.com
a348c79725 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
2002-01-15 22:43:37 +00:00
bzbarsky@mit.edu
07955e8016 Make setting element.style.foo just parse the value instead of creating
a property:value pair and parsing that.  Speeds up setting of
element.style.top by about 5%.  Bug 99797, r=attinasi, sr=jst
2001-09-28 01:38:36 +00:00
gerv@gerv.net
5ba3ff1a0d License changes, take 2. Bug 98089. mozilla/content/. 2001-09-25 01:32:19 +00:00
jst@netscape.com
650643b391 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 16:46:42 +00:00
jst@netscape.com
3ba32f670e DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2000-08-23 17:27:06 +00:00
jst@netscape.com
2da3548568 WIP for supporting setting the cssText property on css declarations through the CSS DOM, approved and partly reviewed by Pierre. 2000-05-03 21:42:00 +00:00
jst@netscape.com
f33eb325c8 Updating the DOM interface CSSStyleDeclaration to DOM Level 2. 2000-04-20 13:50:56 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
peterl@netscape.com
cb93e59a56 route declaration parsing through subclasses 1999-08-04 05:08:04 +00:00
warren@netscape.com
753ac43fff Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
peterl@netscape.com
2a250898af better base url support
Checkin during red tree approved by sar
1999-01-15 02:07:46 +00:00
peterl@netscape.com
b3f287d4fe style change notification support 1998-11-26 01:34:53 +00:00
vidur@netscape.com
5e881108dc Implemented style sheet and style rule interfaces on CSS classes. Made public new entry point for CSSParser for adding new imports. 1998-10-06 01:39:33 +00:00