reed%reedloden.com
dda31ecdc2
Bug 105708 - "move nsUnitConversion.h" [p=reg@openpave.org (Jeremy Lea) r+sr+a1.9=roc]
...
git-svn-id: svn://10.0.0.236/trunk@242241 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-01 10:11:08 +00:00
bzbarsky%mit.edu
afdd80c5eb
Have the rule take ownership of the parsed selector when we're done parsing it
...
instead of cloning the selector. Bug 386123, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@230720 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 01:48:10 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
bzbarsky%mit.edu
c6a333df55
Propagate a stylesheet's principal to the URI and Image CSSValues derived from
...
that sheet. Bug 377091, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225504 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 01:15:54 +00:00
martijn.martijn%gmail.com
763e744b1b
Bug 377017 Javascript - crash on accessing a css rule after deleteRule() [@ nsCSSSelector::ToStringInternal], r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@224450 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-12 16:23:43 +00:00
cvshook%sicking.cc
ccd1d6884d
Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
...
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
sayrer%gmail.com
1173d9db39
bug 361005. remove nsCRT::strdup from layout. r+sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@215393 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-17 01:49:06 +00:00
dbaron%dbaron.org
b4b6b65828
Fix leak when cloning negations caused by previous patch. b=333634 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@195655 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-28 18:02:53 +00:00
dbaron%dbaron.org
da1715c1ff
Do iterative cloning and destruction of linked list selector data structures. b=333634 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@195395 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 21:48:11 +00:00
dbaron%dbaron.org
9911a9b756
Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
dbaron%dbaron.org
a02fd2d2f8
File comments that show up in LXR and provide a quick summary of what's in each file.
...
git-svn-id: svn://10.0.0.236/trunk@192979 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 05:47:31 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
silver%warwickcompsoc.co.uk
9d892236bc
Bug 321195 - stop cloning stylesheets from losing rule weighting and line numbers. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@186540 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-23 21:04:35 +00:00
dbaron%dbaron.org
0b5387e028
Fix selector serialization bugs related to namespaces. b=315648 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@184610 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-14 23:40:37 +00:00
dbaron%dbaron.org
175a29a940
Change storage of :not() selectors so that there is one item in mNegations per :not(), and simplify various code accordingly. Simplify SelectorMatches a little more. b=315567 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@184337 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-09 04:17:26 +00:00
bzbarsky%mit.edu
62937cbc08
Create CSSLoaders when the document object is created and deCOMify the getter.
...
Bug 290068, r=sicking, sr=peterv, a=brendan
git-svn-id: svn://10.0.0.236/trunk@172416 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-19 01:27:11 +00:00
bzbarsky%mit.edu
d43af1e05f
Fix serialization of attribute-existence selectors. Bug 286010, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@171234 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-26 02:36:15 +00:00
dbaron%dbaron.org
afd1471cb7
Clean up GetImportantRule and null-check for out-of-memory case to bulletproof against null dereference topcrash. b=287504 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@171191 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-25 04:09:13 +00:00
bryner%brianryner.com
5379a88c76
Rename nsNameSpaceMap to nsXMLNameSpaceMap to avoid symbol collision in static builds (bug 281728). r=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@169449 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 00:10:38 +00:00
bryner%brianryner.com
32c824e02b
Remove nsINameSpace and replace with a simple array-based list of namespace mappings for CSS. Bug 281728, r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@169414 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 19:18:37 +00:00
bzbarsky%mit.edu
78058598f5
Fix GetSelectorText to truncate the out string. Bug 142648, patch by Daniel
...
Kraft <domob@daniel-kraft.net>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168756 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 18:31:24 +00:00
bzbarsky%mit.edu
651458ff22
Getting the selector text should properly escape and quote attribute value
...
strings. Bug 142648, patch by Daniel Kraft <domob@daniel-kraft.net>, r=dbaron,
sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@168528 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-30 18:01:57 +00:00
dbaron%dbaron.org
cbc49eb4ea
Remove nsIStyleRule::GetStyleSheet (and move it to nsICSSRule). b=266991 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@164706 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-31 17:33:50 +00:00
dbaron%dbaron.org
0c2068f65a
Separate sheet URI and base URI for style attributes and for CSS parsing from DOM APIs. b=258707 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162122 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 23:31:48 +00:00
dbaron%dbaron.org
a4ca9058c6
Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +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
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bzbarsky%mit.edu
783231f694
Fix serialization of selectors when namespaces are around to be smarter; fix
...
serialization of pseudo-elements to prepend '*' as needed. Bug 173586,
r=glazou, sr=roc
git-svn-id: svn://10.0.0.236/trunk@156494 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-18 02:42:13 +00:00
gerv%gerv.net
98831918fc
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
sicking%bigfoot.com
d0464befea
Bug 232016: Kill SetHTMLAttribute and do minor cleanups in .foo -> set/getAttribute("foo") mapping code.
...
r=peterv sr=jst
git-svn-id: svn://10.0.0.236/trunk@153183 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-24 23:55:18 +00:00
bzbarsky%mit.edu
86fee95b4d
Remove nsIHTMLContentContainer, merge those three functions into nsIDocument,
...
and make XUL style attribute dynamic changes get a proper CSSLoader off the
document. Bug 211376, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@151268 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 23:14:49 +00:00
bryner%brianryner.com
468d3e2e8d
Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
dbaron%dbaron.org
76562c28eb
Remove no-longer-needed hook for inspector. b=224164
...
git-svn-id: svn://10.0.0.236/trunk@150771 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-29 19:17:22 +00:00
bzbarsky%mit.edu
3e2e83624b
Create a mozAutoDocUpdate class to handle automatically calling
...
BeginUpdate/EndUpdate on documents. Use this in a bunch of places to make sure
that EndUpdate is called in the face of early returns. Bug 131775, also fixes
bug 211022, r=caillon, sr=jst
git-svn-id: svn://10.0.0.236/trunk@148033 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-16 18:14:25 +00:00
bzbarsky%mit.edu
62c2420626
Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
...
notifications). Bug 200931, r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@147516 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-02 21:29:40 +00:00
dbaron%dbaron.org
2f071d5ceb
Don't create style rule DOM wrappers for inline style, since we are not supposed to, and ours crash when used on inline style. b=218222 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@146845 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 19:18:52 +00:00
bzbarsky%mit.edu
071d3b4a75
Add support for '::' notation for CSS pseudo-elements (bug 62843). Drop
...
selectors containing unrecognized pseudo-classes and pseudo-elements (bug
145968). Fix some CSS rules in quirk.css and xul.css that were bogus (no
bug). Patch in bug 62843. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144455 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 01:33:10 +00:00
dbaron%dbaron.org
d2387d2402
Fix crash bug 209575 by ensuring that mDeclaration is never null. Remove unneeded null checks. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144300 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:31:25 +00:00
dbaron%dbaron.org
b868e5ce74
Fix windows bustage. b=188803
...
git-svn-id: svn://10.0.0.236/trunk@144089 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 06:20:18 +00:00
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
bsmedberg%covad.net
03384bfad0
Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz
...
git-svn-id: svn://10.0.0.236/trunk@144063 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 20:31:43 +00:00
dbaron%dbaron.org
2ec3b927fc
OOM check. r+sr=bzbarsky b=188803
...
git-svn-id: svn://10.0.0.236/trunk@143838 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 03:02:01 +00:00
dbaron%dbaron.org
906d582953
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
...
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +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
bf4ec31727
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
git-svn-id: svn://10.0.0.236/trunk@143421 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-07 22:14:42 +00:00
bryner%netscape.com
0c66a2052e
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.
git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
dbaron%dbaron.org
10f629714d
Remove lines that do nothing except leak. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@141007 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:26:36 +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