bzbarsky@mit.edu
e761e5984e
Fix crash if insertRule() is called on an empty string. Bug 261798, r+sr=dbaron
2004-10-06 00:34:06 +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
dbaron@dbaron.org
de930a6ef8
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
2004-09-10 06:45:59 +00:00
tor@cs.brown.edu
61b7b0a744
Bug 216563 - implement <svg:switch>.
...
Patch by scootermorris@comcast.net , r=afri, sr=dbaron
2004-08-23 21:10:39 +00:00
dbaron@dbaron.org
cbf836f0d2
Implement @-moz-document at-rule for site-specific rules, particularly in user stylesheets. b=238099 r+sr=bzbarsky
2004-08-05 18:26:14 +00:00
dbaron@dbaron.org
75ce5a4cf5
Give nsCSSStyleSheet a header file and rename the class in preparation for deCOMtamination. b=239008 r+sr=bzbarsky
2004-08-04 03:27:28 +00:00
bryner@brianryner.com
6cde4639f0
Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
2004-07-31 23:15:21 +00:00
dbaron@dbaron.org
5ee747ef7d
Fix Windows bustage. b=252578
2004-07-28 07:52:03 +00:00
dbaron@dbaron.org
08d6baff75
Move things that aren't author stylesheets out of nsDocument's mStyleSheets array to simplify stylesheet management code. Add a level of the cascade for style attributes and ensure that there's only one rule processor per level of the cascade, and simplify the logic of nsCSSRuleProcessor creation. b=252578 r+sr=bzbarsky
2004-07-28 07:08:41 +00:00
dbaron@dbaron.org
e1e9f51f01
Clean up string usage in nsFont::EnumerateFamilies and nsCSSStyleSheet.cpp's ValueIncludes, although not all the other places to which this pattern was copied. b=235755 r+sr=roc
2004-07-17 19:03:13 +00:00
dbaron@dbaron.org
54fac12ac3
Make :active hierarchical. b=65917 r+sr=bzbarsky
2004-07-14 22:27:24 +00:00
dbaron@dbaron.org
45445cc4fd
Use string comparators more to simplify code. b=249172 r+sr=bryner
2004-07-06 23:29:31 +00:00
roc+@cs.cmu.edu
d9edea9d71
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
2004-06-17 00:13:25 +00:00
mvl@exedo.nl
b87a31bb43
Add CSS3 pseudo-class selector :only-child
...
bug 237568, patch by Sander <mybugzilla@juima.org >, r=bzbarsky, sr=dbaron
2004-05-25 13:43:52 +00:00
mvl@exedo.nl
f11744a83d
Didn't mean to check this in just yet
2004-05-13 20:09:10 +00:00
mvl@exedo.nl
cb1b5e2f60
Make content policy api (nsIContentPolicy) not suck.
...
bug 191839. Original patch and hard work by Tim <riceman+bmo@mail.rit.edu >, r=bzbarsky (on backend stuff), r=neil (on the tabbrowser stuff), sr=bzbarsky
2004-05-13 18:34:18 +00:00
jst@mozilla.jstenback.com
3ab9c6162d
Fixing bug 242734. deCOMtaminate nsITextContent. r+sr=bryner@brianryner.com
2004-05-07 20:55:17 +00:00
bzbarsky@mit.edu
070f6bb322
Fix HasAttributeDependentStyle to not assume that class and ID attributes are
...
named "class" and "id". Bug 240766, r+sr=dbaron
2004-04-20 19:48:20 +00:00
gerv@gerv.net
cf0b0c064a
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-17 21:52:36 +00:00
bzbarsky@mit.edu
edbc092878
Give GetClasses a better signature. Bug 233636, r=sicking, sr=dbaron
2004-03-09 23:22:02 +00:00
darin@meer.net
33f7ab6e0c
landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
2004-02-28 22:34:07 +00:00
bryner@brianryner.com
f485f95ee8
deCOMtaminate nsIPresContext::GetEventStateManager. Bug 229371, r+sr=roc.
2004-02-27 17:17:37 +00:00
bryner@brianryner.com
72299bd16a
Consolidate SetEnabled and SetDisabled; make sure both of them clear the rule cascade on the rule processors. Bug 230651, r+sr=bzbarsky.
2004-01-15 03:26:56 +00:00
dbaron@dbaron.org
7ce9a23a65
Implement CSS3 indirect adjacent sibling combinator (~). Roughly identical patches independently written by Daniel Glazman <daniel@glazman.org>, Bradley Baetz <bbaetz@acm.org>, and me. r+sr=dbaron b=135141
2004-01-14 20:12:03 +00:00
dbaron@dbaron.org
50a661cc7a
Do style resolution of later siblings required by the CSS + combinator on event state and attribute changes by changing the result of Has(Attribute|State)DependentStyle into a bitfield and setting and handling the restyle-later-siblings bit appropriately. b=15608 r+sr=bzbarsky
2004-01-14 01:36:35 +00:00
bzbarsky@mit.edu
a64d636f14
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
2004-01-13 23:14:49 +00:00
bryner@brianryner.com
3eed1ae792
Don't create new rule processors when a style sheet is enabled or disabled, just clear the rule cascade on the existing processors. Bug 230651, r=dbaron, sr=bzbarsky.
2004-01-13 02:19:28 +00:00
bzbarsky@mit.edu
584f221f82
Don't use HTML rules to parse (redundantly) media strings in CSS @import
...
rules. Bug 153755, r+sr=dbaron
2004-01-10 02:27:41 +00:00
bryner@brianryner.com
a90ec6ff21
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.
2004-01-07 22:30:53 +00:00
dbaron@dbaron.org
61a820c06d
Fix two case-sensitivity issues with attribute selectors. b=229172 Patch from Gilles Durys <mozbug@durys.net>. r+sr=dbaron
2003-12-30 17:58:17 +00:00
bryner@brianryner.com
01533e488c
deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky.
2003-12-24 21:51:50 +00:00
jst@mozilla.jstenback.com
d47517f6dc
Fixing bug 225837. DeCOMtaminating nsIContent more, making GetTag() return a weak raw pointer, and renaming GetTag() to Tag(), and making GetRangeList() return an const nsVoidArray*, and changing GetContentID() to return the id, and renaming it to ContentID(). r=jonas@sicking.cc, sr=bryner@brianryner.com.
2003-11-19 01:20:56 +00:00
caillon@returnzero.com
5e556dfe05
Make content grab the cached security manager off of nsContentUtils rather than ask the service manager to find one.
...
Bug 223192; r+sr=bzbarsky
2003-10-30 03:01:25 +00:00
bryner@brianryner.com
1f9609e30b
deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
2003-10-22 06:09:48 +00:00
bzbarsky@mit.edu
894b1d7fe3
Fix handling of id attrs to not assume that they are named "id" as much. Bug
...
208744, r=caillon, sr=peterv
2003-10-21 16:16:42 +00:00
bzbarsky@mit.edu
88358c59ac
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
2003-10-16 18:14:25 +00:00
dbaron@dbaron.org
0251da09a2
Forgot to address review comment. b=221531 r+sr=bzbarsky
2003-10-14 21:06:58 +00:00
dbaron@dbaron.org
6b31715607
Miscellaneous cleanup of selector matching code:
...
* remove extra |if| around loop, and convert it from |while| to |for|.
* remove extra test for |result|
* rename |curdata| -> |prevdata| and |newdata| -> |data|.
* use |IsContentOfType| instead of |GetTag|
b=221531 r+sr=bzbarsky
2003-10-13 21:54:33 +00:00
bzbarsky@mit.edu
1e56927f9d
Make sure that sheets in a document always know their URL. Bug 218031, r+sr=dbaron
2003-10-06 13:24:55 +00:00
bzbarsky@mit.edu
9b4a152c55
Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
...
notifications). Bug 200931, r=peterv, sr=jst
2003-10-02 21:29:40 +00:00
stephend@netscape.com
8b2e12ee72
Trivial grammatical comment change (from 'is that when it recurs' to 'in that when it recurs'... r/sr=bz
2003-09-28 06:20:24 +00:00
dbaron@dbaron.org
a5854558a8
Spelling too. b=220464
2003-09-28 05:39:03 +00:00
dbaron@dbaron.org
be9fe601ac
Fix 80th column violations in code that I just reindented. b=220464
2003-09-28 05:35:25 +00:00
dbaron@dbaron.org
87adc1ec61
Eliminate excess variables and their baroque (and broken, thanks to the previous checkin) reference counting. b=220464 r+sr=bzbarsky
2003-09-28 05:30:09 +00:00
jst@mozilla.jstenback.com
c11c6bf27e
Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
2003-09-27 04:18:26 +00:00
bryner@brianryner.com
147ceaa429
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
2003-09-07 21:50:21 +00:00
bzbarsky@mit.edu
1ef435b6ff
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
...
r+sr=jst
2003-07-28 21:17:26 +00:00
bzbarsky@mit.edu
cf880e34ef
Fixing build bustage.
2003-07-18 02:00:01 +00:00
caillon@returnzero.com
6918aba572
Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
...
r=bzbarsky@mit.edu , sr=dbaron@dbaron.org
2003-07-18 01:26:47 +00:00
bzbarsky@mit.edu
087d682a96
Make the URI of a sheet be its final URI after all the redirects, not the URI
...
linked to from the original document. Bug 96858, r+sr=dbaron
2003-07-18 00:35:49 +00:00