dbaron%dbaron.org
453517be42
Keep old rule trees around until they are no longer referenced. (Bug 475128) r+sr=bzbarsky a=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@256054 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:17:11 +00:00
dbaron%dbaron.org
f9bdb8c46e
Add assertions to EndReconstruct that all style contexts have been reresolved. (Bug 473871) r+sr=bzbarsky a=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@256053 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:16:20 +00:00
Olli.Pettay%helsinki.fi
0ab87464e4
Bug 411054, Audit IsNativeAnonymous()/GetBindingParent() uses, r+sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@246523 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-26 12:40:21 +00:00
bzbarsky%mit.edu
adc1d6ec85
We can destroy style contexts during ruletree reconstruct. Bug 403454,
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@239417 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 06:13:48 +00:00
bzbarsky%mit.edu
a2a344562f
Fix bug 345609. r+sr+a=roc
...
git-svn-id: svn://10.0.0.236/trunk@237667 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-12 18:37:51 +00:00
Olli.Pettay%helsinki.fi
bd9a96d5b9
Backing out bug 275196, xml:id, to fix tp regression
...
git-svn-id: svn://10.0.0.236/trunk@231054 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 14:16:21 +00:00
Olli.Pettay%helsinki.fi
76bd637ef6
Bug 275196, xml:id, r=sicking, sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@231049 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 12:22:17 +00:00
vladimir%pobox.com
f223a46fa8
b=339553, drawString enhancement for canvas, r=me; patch from robarnold
...
git-svn-id: svn://10.0.0.236/trunk@230947 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 18:21:35 +00:00
sharparrow1%yahoo.com
cf85fbccb8
Bug 386640: ClearStyleDataAndReflow is fundamentally broken. r+sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@230941 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 17:14:14 +00:00
bzbarsky%mit.edu
b5b433a6b7
Make attribute changes that also cause a state change properly reresolve style
...
when a selector uses both the state and the attribute. Bug 315920, r=dbaron,
sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@229833 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 20:05:49 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
bzbarsky%mit.edu
d5faca0640
Don't apply user stylesheets to descendants of native anonymous subtrees. Bug
...
285140, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228160 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-16 05:09:51 +00:00
dbaron%dbaron.org
e8bf2016b6
Make rule nodes know their level in the cascade. b=374907 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@226543 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 21:08:51 +00:00
bzbarsky%mit.edu
3a2aee02f0
Don't apply user stylesheets to native anonymous content. Bug 286895, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@225952 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:47:09 +00:00
jonas%sicking.cc
7b8af22092
Bug 370332: Kill nsIBindingManager and nsIStyleRuleSupplier. r=dbaron for the layout/style parts, r/sr=jst for the rest.
...
git-svn-id: svn://10.0.0.236/trunk@220435 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-16 23:02:08 +00:00
bzbarsky%mit.edu
906e04c198
Make the assertions saner. Bug 342923, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@215153 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-11 06:30:40 +00:00
cvshook%sicking.cc
cec9ea1123
Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
dbaron%dbaron.org
73b1c5e452
Move assertion up to where we have a chance of actually seeing it.
...
git-svn-id: svn://10.0.0.236/trunk@195580 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:23:30 +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
dbaron%dbaron.org
57d21c02b0
Weaken assertions I added yesterday to fix orange on balsa. b=307939
...
git-svn-id: svn://10.0.0.236/trunk@180028 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-12 15:37:30 +00:00
dbaron%dbaron.org
7cde70873e
Document pseudo-element code a little better and add some assertions. b=307939 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@180003 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 23:17:28 +00:00
dbaron%dbaron.org
df4c1ed519
Fix typo in comment. b=305901.
...
git-svn-id: svn://10.0.0.236/trunk@178946 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 14:34:36 +00:00
bzbarsky%mit.edu
d33e0cbb78
Fix crashes when computed style is used on a dead presentation. Bug 291183,
...
r+sr=dbaron, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@174101 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-03 01:51:15 +00:00
bzbarsky%mit.edu
b74edc231a
Combine WalkRules and UseDocumentRules into one function. Bug 244252,
...
r=bryner, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162054 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 04:57:30 +00:00
tor%cs.brown.edu
8f57a74d59
Bug 254771 - Remove AssertNoCSSRules(lastPresHintRN, lastAgentRN) from
...
nsStyleSet::FileRules. Patch by jonathan.watt@strath.ac.uk , r=bz, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160607 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 15:59:30 +00:00
dbaron%dbaron.org
3ea4fea687
Implement @-moz-document at-rule for site-specific rules, particularly in user stylesheets. b=238099 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@160406 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 18:26:14 +00:00
neil%parkwaycc.co.uk
0bbab9b402
Bug 32372 should be possible to completely disable CSS p=fantasai@inkedblade.net r=me (xpfe) r/sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@160395 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 11:38:42 +00:00
bryner%brianryner.com
865734bf2f
Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
...
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +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
bzbarsky%mit.edu
1b04542f5d
Fix preshints in anonymous content some more (by moving all document sheet
...
styleset munging out of the document viewer and into the document and splitting
out the preshint levels completely from the other CSS levels). Bug 234861,
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159283 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 20:30:30 +00:00
bzbarsky%mit.edu
c0cd0937ba
Move presentation attributes into the UA level in non-HTML documents and a
...
separate preshint level in HTML. Bug 234861, r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@155949 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-05 00:30:57 +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
bryner%brianryner.com
e46f7c8143
More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@151927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
44cf91f9e8
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
...
git-svn-id: svn://10.0.0.236/trunk@151284 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 01:36:35 +00:00
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
cd70a3e4ce
Fix regression bug 230620. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@151185 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 22:03:41 +00:00
bryner%brianryner.com
9dfcd977cb
Additional cleanup related to bug 64116. r=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@151039 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 19:23:12 +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
bryner%brianryner.com
b5347dd60c
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.
...
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +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
uid502
f97b0819f2
Bug 165149. More cleanup. Make nsStyleContext::GetPseudoType return a weak pointer. Also remove unnecessary arguments to nsHTMLContainerFrame::CreateViewForFrame. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148055 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-17 02:38:37 +00:00
bsmedberg%covad.net
1b71e7ac3e
Bug 179834. Separate application resources and GRE resources. r=darin sr=dougt
...
git-svn-id: svn://10.0.0.236/trunk@146844 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 17:55:56 +00:00
dbaron%dbaron.org
593f58592d
Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +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
4f6b46a91e
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
...
git-svn-id: svn://10.0.0.236/trunk@143968 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:22:44 +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
69da9d4a19
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
...
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
roc+%cs.cmu.edu
d4ac9a5795
Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00
bzbarsky%mit.edu
3bd333c19e
Remove some style-data-clearing functions that no one uses and that don't do
...
the right thing anyway. Bug 169989, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139391 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 18:58:54 +00:00
dbaron%dbaron.org
efc8215ab8
Ensure that GetStyleData never returns null, even in out-of-memory, by storing a backup set of style structs to return in case of failure. b=154751 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@139384 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:29:36 +00:00