bryner%brianryner.com
a607b89df2
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.
...
git-svn-id: svn://10.0.0.236/trunk@151243 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 02:19:28 +00:00
bzbarsky%mit.edu
3e32bc588c
Don't use HTML rules to parse (redundantly) media strings in CSS @import
...
rules. Bug 153755, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151128 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 02:27:41 +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
d0f32a43bc
Fix two case-sensitivity issues with attribute selectors. b=229172 Patch from Gilles Durys <mozbug@durys.net>. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@150779 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 17:58:17 +00:00
bryner%brianryner.com
4cca78120d
deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@150720 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 21:51:50 +00:00
jst%mozilla.jstenback.com
2affc5b4f0
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.
...
git-svn-id: svn://10.0.0.236/trunk@149527 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:20:56 +00:00
caillon%returnzero.com
e64c44f945
Make content grab the cached security manager off of nsContentUtils rather than ask the service manager to find one.
...
Bug 223192; r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148524 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 03:01:25 +00:00
bryner%brianryner.com
eeddf02bde
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.
...
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
bzbarsky%mit.edu
e081726408
Fix handling of id attrs to not assume that they are named "id" as much. Bug
...
208744, r=caillon, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@148205 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 16:16:42 +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
dbaron%dbaron.org
f5465331af
Forgot to address review comment. b=221531 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147968 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-14 21:06:58 +00:00
dbaron%dbaron.org
39d7b6c84c
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
git-svn-id: svn://10.0.0.236/trunk@147925 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-13 21:54:33 +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
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
stephend%netscape.com
a0d49a147a
Trivial grammatical comment change (from 'is that when it recurs' to 'in that when it recurs'... r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@147391 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 06:20:24 +00:00
dbaron%dbaron.org
430fe54987
Spelling too. b=220464
...
git-svn-id: svn://10.0.0.236/trunk@147388 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 05:39:03 +00:00
dbaron%dbaron.org
bf3d007e09
Fix 80th column violations in code that I just reindented. b=220464
...
git-svn-id: svn://10.0.0.236/trunk@147387 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 05:35:25 +00:00
dbaron%dbaron.org
d62ef933ed
Eliminate excess variables and their baroque (and broken, thanks to the previous checkin) reference counting. b=220464 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147386 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 05:30:09 +00:00
jst%mozilla.jstenback.com
ef67a47aab
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.
...
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
bryner%brianryner.com
978d05c917
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@146614 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 21:50:21 +00:00
bzbarsky%mit.edu
67e7a64c5d
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
...
r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@145285 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:17:26 +00:00
bzbarsky%mit.edu
7111a9cc92
Fixing build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@144939 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 02:00:01 +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
bzbarsky%mit.edu
7c1787f026
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
git-svn-id: svn://10.0.0.236/trunk@144934 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 00:35:49 +00:00
jaggernaut%netscape.com
36ab3d76a9
Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
dbaron%dbaron.org
794f9a036b
A little selector matching cleanup. b=212603 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144806 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-13 23:09:10 +00:00
bzbarsky%mit.edu
1c3e765c18
Don't bother reresolving style when empty stylesheets get added (eg from empty
...
<style> elements). Also remove the methods for blowing away the ruletree
during a style reresolve, since ruletrees are now garbage-collected. Bug
196557, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144457 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 01:44:24 +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
9b0895c752
Fix dynamic changes to negated attribute or state selectors. b=210458 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144086 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:34:30 +00:00
bzbarsky%mit.edu
600f1dae13
Fix matching when attribute selectors with "*" as a namespace are involved.
...
Bug 210314, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144083 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 04:50:05 +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
jst%netscape.com
45f72e0474
Fixing one more part of bug 209699. Replace NS_Convert* with Copy/Append*. r=dwitte@stanford.edu, sr=alecf@flett.org.
...
git-svn-id: svn://10.0.0.236/trunk@144012 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:26:28 +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
bzbarsky%mit.edu
e006bb47d1
Minor tweak to never match in an error case we better not be hitting anyway.
...
Bug 77519, r=glazou (who also posted the first patch version; r=me on the part
he did), sr=dbaron, a=sspitzer
git-svn-id: svn://10.0.0.236/trunk@142190 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-08 01:59:25 +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
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
alecf%netscape.com
59c2bfe187
fix for bug 195262:
...
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin
this is an experimental landing - if there are performance issues, I will back it out.
git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +00:00
bzbarsky%mit.edu
f0eaf3702e
Make all CSSStyleSheets have a useful mDocument so that they can pass change
...
notifications properly. Parent sheets are responsible for keeping their kids'
mDocument pointers up-to-date. Bug 194543, r=dbaron, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@139589 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:44:02 +00:00
dbaron%dbaron.org
de7999bf43
Fix dynamic style changes resulting from change to href attribute on HTML links. b=194972 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@139036 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:19:55 +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
dbaron%dbaron.org
22283f6fd1
Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@138196 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 16:10:53 +00:00
dbaron%dbaron.org
e6a2b29ebf
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
dbaron%dbaron.org
7055283d0d
Apply the quirk that simple selectors of the form ':hover' apply only to links to those of the form '.class:hover' as well. b=169078 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@136319 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 21:50:27 +00:00
dbaron%dbaron.org
19a9279a84
Implement CSS3 :target pseudo-class, which matches the target of the fragment identifier of the document's URL. Change the semantics of nsIPresShell::GoToAnchor by requiring that it be called whenever the current target changes, with an additional boolean parameter specifying whether to scroll. b=188734 r=glazman sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@136266 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 23:10:53 +00:00
dbaron%dbaron.org
30879d2c9e
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
peterv%netscape.com
3a3c75b9f7
Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +00:00