Commit Graph

453 Commits

Author SHA1 Message Date
bzbarsky@mit.edu
4d02579678 Remove nsIStyledContent. Bug 313968, r=sicking, r=dbaron on nsCSSStyleSheet
changes, sr=jst
2005-11-02 00:41:51 +00:00
cvshook@sicking.cc
77710748bc Bug 311827: Make GetAttr return a bool rather then an nsresult.
r/sr=bz
2005-10-28 11:25:24 +00:00
doronr@us.ibm.com
3b3bc9f203 Bug 302188 - Support :read-only and :read-write pseudoclasses. patch by allan, r/sr=bz 2005-10-18 21:16:27 +00:00
bzbarsky@mit.edu
11ff0cc60b Try fixing bug 288064 again. r=biesi, sr=dbaron 2005-10-17 00:50:39 +00:00
bzbarsky@mit.edu
7a1f8ef6f0 Implement :-moz-empty-except-children-with-localname() pseudo-class. Bug
309067, r+sr=dbaron
2005-10-16 15:57:13 +00:00
bryner@brianryner.com
cf2eb512d9 Convert CSSGroupRule and CSSStyleSheet to use nsCOMArray. Bug 312491, r+sr=bzbarsky. 2005-10-15 20:21:20 +00:00
peterv@propagandism.org
51b0cd6709 Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz. 2005-10-14 09:07:29 +00:00
bryner@brianryner.com
fec48bf35e Speed up matching class rules by caching the class attribute, rather than looking it up for each rule. Remove HasClass now that it's no longer needed. Bug 310236, r+sr=dbaron. 2005-10-08 23:06:27 +00:00
bzbarsky@mit.edu
3525d53a41 Backing out bug 288064 because of the Tp hit. 2005-10-01 01:35:56 +00:00
bzbarsky@mit.edu
201eb079fd Implement a LOADING state, have a :-moz-loading selector to match on it, use it
for images.  Bug 288064, r=biesi, sr=dbaron
2005-10-01 00:34:03 +00:00
bryner@brianryner.com
b52d69f0da Avoid nsIStyledContent QI in RuleProcessorData (bug 309927). r+sr=dbaron. 2005-09-25 06:09:27 +00:00
bzbarsky@mit.edu
7b00c997a1 Use AttrValueIs, not GetAttr, for [attr="foo"] comparisons. Bug 308093, r+sr=dbaron 2005-09-18 23:09:48 +00:00
bzbarsky@mit.edu
a6c8685ff9 Implement :-moz-broken, :-moz-user-disabled, and :-moz-suppressed
pseudo-classes to allow styling of broken/blocked/disabled images, applets,
objects, embeds.  Bug 11011, r=biesi and roc, sr=dbaron
2005-09-18 18:05:40 +00:00
bzbarsky@mit.edu
16d0db8fb3 Improve the CSSLoader API: make it clear which methods return results
sync and which return async, move the handling of alternates more completely
into the CSSLoader, make it possible for observers to tell whether the load
actually succeeded.  Bug 293825, r+sr=peterv
2005-09-12 18:41:15 +00:00
peterv@propagandism.org
9d1684be63 Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz. 2005-09-11 10:08:43 +00:00
bzbarsky@mit.edu
661909af90 Add support for :valid, :invalid, :in-range, and :out-of-range pseudo-classes.
Bug 302462, patch by Allan Beaufour <allan@beaufour.dk>, r+sr=bzbarsky
2005-08-30 20:56:46 +00:00
bzbarsky@mit.edu
684588bce7 Implement :enabled and :disabled CSS pseudo-classes. Bug 84400, patch by Allan
Beaufour <allan@beaufour.dk>, r+sr=bzbarsky
2005-08-30 03:31:47 +00:00
bsmedberg@covad.net
432e9cc9a1 Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin 2005-08-15 18:29:55 +00:00
bsmedberg@covad.net
44a6531d52 Backout bug 299992 - too much odd platform-specific bustage 2005-08-11 22:07:08 +00:00
bsmedberg@covad.net
0203b6eec5 Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard 2005-08-11 20:40:53 +00:00
roc+@cs.cmu.edu
116c7af9d3 Bug 78510. Maintain a per-document hashmap from URI-spec-hash to set of pointers to content elements that are links to those URIs whose state has been queried by the style system. Use this map to efficiently mark visited any links to URIs which get visited. r+sr=dbaron, with input from bryner and bzbarsky, a=jesup with support from dbaron. May impact Tp and other metrics, be careful out there. 2005-08-10 20:21:44 +00:00
allan@beaufour.dk
5704919a83 Support :required and :optional pseudoclasses. Bug 302608, r+sr=bzbarsky, a=mkaply 2005-08-02 08:29:03 +00:00
peterv@propagandism.org
af5c8b9c83 Fix for bug 286300 (Clean up HTML tags enum and related code). r=mrbkap, sr=bz, a=asa. 2005-06-16 13:10:58 +00:00
bzbarsky@mit.edu
30db68e596 Add an nsIContent api for getting the intrinsic state of the content; this can
be used to implement more pseudo-classes (eg CSS3 UI ones for XForms).  Bug
296309, r+sr=dbaron, a=chofmann
2005-06-03 02:02:45 +00:00
bzbarsky@mit.edu
78973062e8 Create CSSLoaders when the document object is created and deCOMify the getter.
Bug 290068, r=sicking, sr=peterv, a=brendan
2005-04-19 01:27:11 +00:00
bzbarsky@mit.edu
ec8211b6e1 Clean up includes a bit in CSSLoader. Bug 290107, r+sr=dbaron, a=brendan 2005-04-14 15:27:16 +00:00
dbaron@dbaron.org
b1497c8162 Consolidate and deCOMtaminate parsing and storage of media lists. b=156716 r+sr=bzbarsky 2005-03-30 00:36:57 +00:00
bryner@brianryner.com
cf349ccb13 Rename nsNameSpaceMap to nsXMLNameSpaceMap to avoid symbol collision in static builds (bug 281728). r=dbaron. 2005-02-19 00:10:38 +00:00
bryner@brianryner.com
409fe8659a Simplifying this a bit to try to fix bustage. 2005-02-18 19:58:13 +00:00
bryner@brianryner.com
480cafec28 Remove nsINameSpace and replace with a simple array-based list of namespace mappings for CSS. Bug 281728, r+sr=bzbarsky. 2005-02-18 19:18:37 +00:00
bzbarsky@mit.edu
b33720bcd8 Fix HTML nodes to not claim to be in the XHTML namespace (unless they are, of
course).  Bug 103225, r+sr=jst
2005-01-12 02:41:36 +00:00
bryner@brianryner.com
827af9d405 Move nsIContent::GetClassAttributeName() onto nsIStyledContent (bug 274402). r+sr=jst. 2004-12-14 03:54:01 +00:00
bryner@brianryner.com
fe246a43b0 deCOMtaminate nsIContent::GetNameSpaceID. Bug 272079, r+sr=jst 2004-12-13 04:14:28 +00:00
bzbarsky@mit.edu
287b67addc Fix comment. More bug 157395. 2004-12-03 04:48:32 +00:00
bzbarsky@mit.edu
b54194a524 :empty should not match nodes that have whitespace children. Introduce a
:-moz-only-whitespace pseudo-class to do what :empty used to do (so we can use
it in quirk.css and the like).  Bug 157395, patch by Justin Wood
<116057@bacon.qcc.mass.edu>, r+sr=bzbarsky
2004-12-03 04:25:21 +00:00
bzbarsky@mit.edu
6c92361b07 deCOMify nsIStyledContent::GetID (make it return we a weak pointer to the ID
atom).  Bug 244249, patch by jpl24 <jlurz24@gmail.com>, r=sicking, sr=bzbarsky
2004-11-23 17:21:37 +00:00
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