bzbarsky%mit.edu
cc24d0fe78
Add an internal security-check-less method for adding rules to stylesheets to
...
fix bug 386939. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@243422 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-18 05:23:44 +00:00
bzbarsky%mit.edu
19f3323d77
Make the "href" property of stylesheets reflect the original URI that was
...
reflected to load the sheet. Bug 397427, r=dbaron,biesi, sr=dbaron, a=dsicore
git-svn-id: svn://10.0.0.236/trunk@238046 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-23 21:56:43 +00:00
bzbarsky%mit.edu
6e86d03b2e
Stylesheets should know what their principal is, and it should be based on the
...
URI the sheet was loaded from, its certificate (if any) and the loader
principal, not just on the page the sheet is being applied to. Propagate this
principal as the loading principal to @import loads from stylesheets. Change
sheet access checks to use this principal instead of the sheet URI. Bug
221428, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@225401 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 19:26:15 +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
bsmedberg%covad.net
0217e2f9a9
Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver
...
git-svn-id: svn://10.0.0.236/trunk@184456 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 14:36:26 +00:00
dbaron%dbaron.org
be07cbe034
Consolidate and deCOMtaminate parsing and storage of media lists. b=156716 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@171350 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 00:36:57 +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
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
dbaron%dbaron.org
03b3717bb3
Give nsCSSStyleSheet a header file and rename the class in preparation for deCOMtamination. b=239008 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@160332 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 03:27:28 +00:00
dbaron%dbaron.org
59572fab24
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
...
git-svn-id: svn://10.0.0.236/trunk@159965 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-28 07:08:41 +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
bzbarsky%mit.edu
4651d2cebb
Make sure that sheets in a document always know their URL. Bug 218031, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@147623 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 13:24:55 +00:00
caillon%returnzero.com
e69f301e32
Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
...
r=bzbarsky@mit.edu , sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@144937 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 01:26:47 +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
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
peterv%netscape.com
c96c6fa64f
Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
...
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
bzbarsky%mit.edu
b8de299d37
Make CSSStyleSheetImpl::Clone properly set various weak refs on the clone
...
(parent sheet, parent rule, owning node, document). Bug 167415, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@138277 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:44:41 +00:00
bzbarsky%mit.edu
c3731640d3
Make the CSSLoader correctly order stylesheets as they are dynamically added
...
and removed via the DOM. Clean up the nsIDocument stylesheet accessors. Clean
up nsIDocumentObserver stylesheet stuff a bit. Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off. Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
bzbarsky%mit.edu
c2ec1d4ec6
dynamically adding @import rules does not trigger all the updates it
...
should. Bug 160065, r=peterv, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@126440 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 05:08:47 +00:00
dbaron%fas.harvard.edu
7e821aaa94
Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner
...
git-svn-id: svn://10.0.0.236/trunk@124073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:38:55 +00:00
dbaron%fas.harvard.edu
b447eec349
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117348 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:56:05 +00:00
dougt%netscape.com
1f7520e927
Extraneous Symbol Removal. Patch by Jon Smirl jonsmirl@mediaone.net. r=dougt@netscape.com, sr=alecf@netscape.com. Bug 104172, 104316, 104420, 104426, 104461, 104511, 104527
...
git-svn-id: svn://10.0.0.236/trunk@105810 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:59:33 +00:00
gerv%gerv.net
ed9b258739
License changes, take 2. Bug 98089. mozilla/content/.
...
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +00:00
bzbarsky%mit.edu
0f2651a119
Fix the nsIDOMMediaList interface to have the right properties. Make
...
media rules implement nsIDOMCSSMediaRule. Fix insertRule() to be able
to insert into the middle of a rule list. Fix issues with stylesheets
not getting dirtied when media lists are modified. bug 93977,
r=pierre, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102234 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:00:18 +00:00
bzbarsky%mit.edu
8cca381b47
Making import rules implement the nsIDOMCSSImportRule interface. Bug 90290, r=pierre, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@100358 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-04 21:19:53 +00:00
attinasi%netscape.com
3da8003982
Implemented QuirkMode style sheet and moved some initial quirk style rules from html.css to the new quirk.css. b=38026 r=rods a=karnaze
...
git-svn-id: svn://10.0.0.236/trunk@71391 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 21:45:06 +00:00
braddr%puremagic.com
2ecf22f141
eliminiate NS_COMFALSE and remove a layer of logical negation.
...
r=brendan
git-svn-id: svn://10.0.0.236/trunk@66111 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:23:57 +00:00
dmose%mozilla.org
92d791b7b0
updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
peterl%netscape.com
d1916dab07
First step at fixing 12106, factored out style rule processing from
...
style sheets into a seperate style rule processor interface
r=troy
git-svn-id: svn://10.0.0.236/trunk@50193 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 03:09:31 +00:00
warren%netscape.com
06d707be48
Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too.
...
git-svn-id: svn://10.0.0.236/trunk@36440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:29:44 +00:00
peterl%netscape.com
64aa772a58
added default namespace id
...
git-svn-id: svn://10.0.0.236/trunk@35393 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:18:37 +00:00
peterl%netscape.com
bf9b5f28c1
Cleanup API
...
Added support for other rule types
Added namespace support
git-svn-id: svn://10.0.0.236/trunk@34563 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:22:13 +00:00
peterl%netscape.com
4d95b1fb3d
added modified test to api
...
git-svn-id: svn://10.0.0.236/trunk@33469 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:55:02 +00:00
peterl%netscape.com
e487e20991
added Clearmedia
...
git-svn-id: svn://10.0.0.236/trunk@32808 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:51:42 +00:00
peterl%netscape.com
578aa44744
added insert child sheet & clone methods
...
git-svn-id: svn://10.0.0.236/trunk@32146 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 23:10:09 +00:00
scc%netscape.com
817f56596f
rename |IID()| --> |GetIID()|
...
git-svn-id: svn://10.0.0.236/trunk@22744 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 19:48:57 +00:00
scc%netscape.com
d20b401d1b
Added static IID() method. This member function will be generated automatically in the future.
...
git-svn-id: svn://10.0.0.236/trunk@16636 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 03:43:29 +00:00
waterson%netscape.com
c4b7624c9b
Added initializer that can be used from the repository.
...
git-svn-id: svn://10.0.0.236/trunk@15710 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 20:19:46 +00:00
peterl%netscape.com
4c21a94564
changed medium type to atom
...
git-svn-id: svn://10.0.0.236/trunk@15582 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:36:00 +00:00
peterl%netscape.com
983d848263
made css style sheet public (for mac)
...
git-svn-id: svn://10.0.0.236/trunk@15357 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 05:17:03 +00:00