bryner@brianryner.com
cf2eb512d9
Convert CSSGroupRule and CSSStyleSheet to use nsCOMArray. Bug 312491, r+sr=bzbarsky.
2005-10-15 20:21:20 +00:00
bzbarsky@mit.edu
93240998ef
Make nsIPresShell::GetPrimaryFrameFor return nsIFrame* instead of using an out
...
param. Bug 303779, patch by Bastiaan Jacques <b.jacques@planet.nl >, r+sr=bzbarsky
2005-08-22 22:24:29 +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
bzbarsky@mit.edu
9d506b60da
Fix border width inheritance by keeping track of both the border width we'd
...
have if our style were not none/hidden and the actual computed border width.
Bug 290377, r+sr=dbaron, a=asa
2005-04-29 15:44:38 +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
dbaron@dbaron.org
9a45e14d92
Remove nsIStyleRule::GetStyleSheet (and move it to nsICSSRule). b=266991 r+sr=bzbarsky
2004-10-31 17:33:50 +00:00
bmlk@gmx.de
1c2f85f28e
reorganize CalCDominantBorder, reduce the number of arguments, change the border structure. make the rules handling more evident, bug 229883, With more than a little help from my friends (fantasai, boris) r/sr=bzbarsky
...
bustage fix
2004-10-09 12:25:31 +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
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
bryner@brianryner.com
8fc0179c66
Remove non-inlined version of nsIPresShell::GetDocument(). Bug 253889, r+sr=roc.
2004-08-02 04:52:55 +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
bryner@brianryner.com
15745b0b06
Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
2004-07-29 19:41:39 +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
da4019813c
Reduce headers brought in by nsRuleNode.h. Split nsRuleData into its own file. b=64023 r+sr=bzbarsky
2004-07-20 06:11:27 +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
gerv@gerv.net
cf0b0c064a
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-17 21:52:36 +00:00
dbaron@dbaron.org
a62301690c
De-COM-ify nsHTMLStyleSheet. b=239008 r+sr=bryner
2004-04-12 21:56:09 +00:00
dbaron@dbaron.org
e73abfbe89
Improve comments and function names related to attribute mapping and HasAttributeDependentStyle. b=235342 r+sr=jst
2004-02-25 21:04:50 +00:00
sicking@bigfoot.com
976289521d
More bug 195350 work: Make html use new nsAttrAndChildArray class.
...
r=caillon sr=jst
2004-01-26 19:22:05 +00:00
bryner@brianryner.com
d9d66e38d5
DeCOMtaminate nsCSSFrameConstructor (bug 231157). This gets rid of the nsIStyleFrameConstruction and nsICSSFrameConstructor interfaces. The frame constructor now has the same lifetime as the pres shell. r+sr=dbaron.
2004-01-21 23:05:10 +00:00
peterv@propagandism.org
e00186c47b
Miscellaneous cleanup. r/sr=jst.
2004-01-18 10:45:26 +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
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
7863eae7c9
Add a correct comment.
2003-12-29 16:39:50 +00:00
bryner@brianryner.com
640685cbe9
Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
2003-12-21 05:36:36 +00:00
bzbarsky@mit.edu
412f8efa86
Remove unused variable.
2003-07-25 04:06:31 +00:00
dbaron@dbaron.org
660339f971
Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
2003-07-11 21:16:12 +00:00
bzbarsky@mit.edu
cfe82976bb
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
2003-07-04 01:44:24 +00:00
bsmedberg@covad.net
de6e481b1f
Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz
2003-06-23 20:31:43 +00:00
dbaron@dbaron.org
2ac380ff71
Add nsIFrame::GetPresContext, which gets the pres context from the rule node which it gets from the style context. DeCOMtaminate nsStyleContext::GetRuleNode, nsRuleNode::GetRule, and nsRuleNode::GetPresContext. Remove unused nsRuleNode::PathContainsRule. b=208190 r+sr=roc
2003-06-20 01:22:44 +00:00
dbaron@dbaron.org
f6d7672a85
Fix minor inconsistency between functions. b=208548 r+sr=bzbarsky
2003-06-10 22:09:58 +00:00
dbaron@dbaron.org
a934a33821
Fix bugs with colors in tables in cases where some content comes before the start tag of BODY by rechecking the computed color of BODY more often. b=94688 Patch from Mats Palmgren <mats.palmgren@bredband.net>. r+sr=dbaron
2003-06-08 19:52:22 +00:00
dbaron@dbaron.org
f98e358469
Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
2003-05-15 03:42:21 +00:00
dbaron@dbaron.org
12b7350e07
Make HTMLDocumentColorRule immutable. b=196795 r+sr=bzbarsky
2003-03-13 15:30:32 +00:00
peterv@netscape.com
627a38d0b9
Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
2003-03-05 15:08:41 +00:00
dbaron@dbaron.org
b6513faade
Fix dynamic change bugs by making HTMLColorRule immutable. b=99850 r+sr=bzbarsky
2003-02-22 19:15:46 +00:00
dbaron@dbaron.org
66297fd7bc
Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky
2003-02-22 16:10:53 +00:00
dbaron@dbaron.org
834096485c
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
2003-02-22 15:34:38 +00:00
bryner@netscape.com
ba58162e96
Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
2003-02-22 00:32:13 +00:00
dbaron@dbaron.org
47922f2a26
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
2003-01-08 19:24:38 +00:00
bzbarsky@mit.edu
de205739a0
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.
2002-12-03 05:48:14 +00:00
dbaron@fas.harvard.edu
72f2298b73
Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
2002-11-17 15:37:56 +00:00
dbaron@fas.harvard.edu
f9d8824f57
Back out patch for bug 161109 that implemented a pref for disabling marquee. b=161109 r=hixie a=asa
2002-10-30 14:31:32 +00:00
dbaron@fas.harvard.edu
a1f4ab6833
Add preference for whether to enable marquee, and set the default to disabled. b=161109 r=caillon sr=bzbarsky a=rjesup
2002-10-15 00:06:57 +00:00
dbaron@fas.harvard.edu
f1b88231da
Remove unused ability to optionally arena-allocate certain stylesheet objects. b=174256 r=kin sr=bzbarsky a=rjesup
2002-10-14 23:57:17 +00:00
bzbarsky@mit.edu
39f7aebfb1
Make GetParent on nsStyleContext return an
...
already_AddRefed<nsIStyleContext>. Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:46:15 +00:00
alecf@netscape.com
c5fda62e7b
re-fix bug 166147 - autoinitialize mRefCnt to 0 for more efficient constructors
...
r=dougt, sr=jag, this time including some CSS stuff that has 31-bit refcounts.
2002-09-17 04:49:28 +00:00
dougt@netscape.com
46ce738546
166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
2002-09-07 17:13:19 +00:00
dbaron@fas.harvard.edu
b06f7464af
Remove unused Equals and HashValue methods (methods that were once on nsIStyleRule). b=163058 r=hyatt sr=kin
2002-08-20 19:40:23 +00:00
dbaron@fas.harvard.edu
4a173671cc
Convert mapped attribute table from nsHashtable to pldhash. b=148368 sr=bzbarsky r=sicking
2002-08-17 12:17:03 +00:00