Boris Zbarsky
7be35161f4
Bug 555627. Make transitions actually work correctly on :before and :after. r=dbaron
2010-06-30 18:54:29 -07:00
Boris Zbarsky
753e4b833b
Bug 573241. When reparenting a style context, don't include any transition rules the old context might have had in the new one, since that can confuse transitions. r=dbaron
2010-06-23 00:46:27 -04:00
Boris Zbarsky
00f4b8a8ca
Bug 571105. Don't force creation of an if-visited style contest if we don't actually need one. r=dbaron
2010-06-14 16:06:48 -04:00
Boris Zbarsky
6fc99eb310
Bug 558943. Pass the right value for aIsLink from ReparentStyleContext. r=dbaron
2010-06-08 15:58:26 -04:00
Craig Topper
213b0d1c3f
Bug 566808 - "DeCOMtaminate nsIStyleRule method signatures" [r=dbaron]
...
(transplanted from 9a7be1835b530c72a46069a5c3951b80b16804a3)
--HG--
extra : transplant_source : %9A%7B%E1%83%5BS%0Cr%A4%60i%A5%C3%95%1B%80%B1h%04%A3
2010-05-19 22:28:00 -04:00
Craig Topper
29a342cd5f
Rename nsIStyleSheet::GetApplicable to IsApplicable and GetComplete to IsComplete. (Bug 239008) r=dbaron
2010-05-14 12:05:14 -07:00
Boris Zbarsky
95b761ff79
Bug 565818. Pass Elements to HasAttributeDependentStyle and HasStateDependentStyle. r=dbaron
2010-05-14 13:04:51 -04:00
Craig Topper
bd3c6ba927
DeCOMtaminate nsIStyleSheet method signatures. (Bug 239008) r=dbaron
2010-05-12 13:18:47 -07:00
Craig Topper
b08d6c5ef5
Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
Boris Zbarsky
fb534f9674
Bug 562971. Include Element.h as mozilla/dom/Element.h and don't use 'using namespace' quite as much. r=jst
2010-05-05 14:18:05 -04:00
Boris Zbarsky
3f7bc45256
Bug 562688 part 14. Eliminate eELEMENT usage in the rule processor; switch to Element as we can. r=dbaron
2010-04-30 09:12:06 -04:00
Boris Zbarsky
0466fc87f5
Bug 562688 part 13. Eliminate eELEMENT usage in layout/style, except the rule processor. r=dbaron
2010-04-30 09:12:06 -04:00
Timothy Nikkel
dbc078a9ef
Bug 559491. If a visited style context has no parent then add it to the list of roots. r=dbaron
2010-04-29 20:15:44 -05:00
L. David Baron
5412d20e69
Make style contexts know if they are the if-visited style. (Bug 557287) r=bzbarsky
2010-04-06 12:42:41 -07:00
L. David Baron
fa654ea00f
Set NS_STYLE_RELEVANT_LINK_IS_VISITED when appropriate. (Bug 147777) r=bzbarsky
2010-04-02 18:58:27 -07:00
L. David Baron
124bb33c2e
Pass through desired link-visitedness on the rule walker and construct if-visited style contexts in the style set when visited styles are present. (Bug 147777) r=bzbarsky
2010-04-02 18:58:27 -07:00
L. David Baron
eb2548e97d
Make nsStyleContext::FindChildWithRules deal with the visited style context. (Bug 147777) r=bzbarsky
2010-04-02 18:58:26 -07:00
L. David Baron
681596fa66
Split nsStyleSet::ResolveStyleForRules into two different APIs for the two different types of uses. (Bug 147777) r=bzbarsky
2010-04-02 18:58:25 -07:00
Zack Weinberg
835ff67dda
Bug 494117: remove PresContext argument to nsStyleSet::GetContext. r=bzbarsky
2010-04-01 23:07:42 -07:00
Zack Weinberg
8a8adc758b
Bug 494117 preliminary refactor: Search-and-replace 'ReStyle' with 'Restyle' throughout layout. r=roc
2010-03-31 17:43:32 -07:00
Markus Stange
21d217cfc3
Bug 554061 - Also check XBL stylesheets when determining whether a restyle is necessary when document state changes. r=dbaron
2010-03-25 10:22:58 +01:00
Markus Stange
00fbecd8b0
Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst
2010-03-17 18:10:57 +01:00
Markus Stange
d0207d99c6
Backed out changeset e17c076aceea, bug 508482 (:-moz-window-inactive pseudoclass) because of test_righttoleft.xul test failures.
2010-03-17 20:03:53 +01:00
Markus Stange
4a7a64bc2e
Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst
2010-03-17 18:10:57 +01:00
L. David Baron
305a488187
Add method to nsStyleSet to call EnsureUniqueInner on all CSS sheets. (Bug 536379) r=bzbarsky
2009-12-31 10:56:33 -05:00
Boris Zbarsky
dbe398c5f7
Bug 531933. Give HasStateDependentStyle a better signature. r=dbaron
2009-12-11 22:36:34 -08:00
Boris Zbarsky
9790daa9b2
Bug 529749. Make sure nsRuleWalker never has a null mCurrent. r=dbaron
2009-12-11 22:36:34 -08:00
Boris Zbarsky
e6b913a5da
Bug 525608 part 7. Make tree pseudos use a separate hashtable instead of riding along on the rulehash. r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
43f303198b
Bug 525608 part 6. Remove null-checks on RuleProcessorData::mContent. r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
a94a034494
Bug 525608 part 5. Change anonymous box rule matching to just use a separate hashtable and not ever run SelectorMatches. r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
430b782ab4
Bug 525608 part 4. Change pseudo-element probing and resolution to not use EnumerateTagRules. r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
5132d64872
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
8202b90f61
Backing out bug 525608 and bug 525952
2009-12-10 18:28:08 -08:00
Boris Zbarsky
88d6042335
Bug 525608 part 7. Make tree pseudos use a separate hashtable instead of riding along on the rulehash. r=dbaron
2009-12-10 14:36:06 -08:00
Boris Zbarsky
bc3772ed53
Bug 525608 part 6. Remove null-checks on RuleProcessorData::mContent. r=dbaron
2009-12-10 14:36:06 -08:00
Boris Zbarsky
ca2a7fe058
Bug 525608 part 5. Change anonymous box rule matching to just use a separate hashtable and not ever run SelectorMatches. r=dbaron
2009-12-10 14:36:06 -08:00
Boris Zbarsky
fbb842ae93
Bug 525608 part 4. Change pseudo-element probing and resolution to not use EnumerateTagRules. r=dbaron
2009-12-10 14:36:06 -08:00
Boris Zbarsky
6eb3c28de7
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-10 14:36:05 -08:00
Boris Zbarsky
f4635e997b
Bug 523294 part 2. Get rid of the aAttribute argument to SelectorMatches; handle attribute changes by checking for matches on selectors including the given attribute both before and after the change. r=dbaron
2009-12-10 14:36:03 -08:00
Boris Zbarsky
5d3ef89b12
Bug 523294 part 1. Change the signature of HasAttributeDependentStyle. r=dbaron
2009-12-10 14:36:03 -08:00
Boris Zbarsky
3257906042
Bug 523148. Speed up AddImportantRules. r=dbaron
2009-12-10 14:36:02 -08:00
Boris Zbarsky
7813eeb6d1
Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron
2009-10-29 17:17:56 -04:00
L. David Baron
2ccbe80f89
Implement CSS transitions: handle starting and animation of the transitions. (Bug 435441) r=bzbarsky sr=roc
2009-10-07 20:22:42 -07:00
L. David Baron
a0ff830b67
Make nsStyleSet use nsRuleWalker objects on the stack rather than in a member variable. (Bug 492675) r=bzbarsky
2009-10-02 14:06:42 -07:00
L. David Baron
ca967e9249
Add missing SetLevel call that is caught by assertions once the following patch lands. (Bug 492675) r=bzbarsky
2009-10-02 14:06:41 -07:00
L. David Baron
cc84606bde
Reset the rule walker before calling NS_NewStyleContext. (Bug 513741) r=bzbarsky
2009-09-29 12:24:18 -07:00
Boris Zbarsky
999ecb34d4
Bug 514773. Don't trigger rulenode gc unless we have rulenodes to gc. r=dbaron
2009-09-24 13:59:43 -04:00
L. David Baron
da3ed02210
Add more parameters to nsStyleSet::ResolveStyleForRules. (Bug 435441) r=bzbarsky
2009-08-10 15:52:29 -07:00
L. David Baron
f14734d0e5
Add assertions that the rule walker is at the root. (Bug 507457) r=bzbarsky
2009-08-04 15:39:53 -07:00
L. David Baron
7fbb9db0a5
Separate RuleProcessorData and derived structs into their own header file to reduce include dependencies. (Bug 435441) r=bzbarsky
...
--HG--
rename : layout/style/nsIStyleRuleProcessor.h => layout/style/nsRuleProcessorData.h
2009-08-01 08:53:40 -07:00
L. David Baron
53fb188c38
Keep old rule trees around until they are no longer referenced. (Bug 475128) r+sr=bzbarsky
2009-01-29 20:39:23 -08:00
L. David Baron
d8da73cb1f
Backed out changeset 24917a339f2e (bug 475128) because it didn't patch the IsRoot check nsRuleNode::Sweep, which it needs to.
2009-01-29 14:36:34 -08:00
L. David Baron
b81d7c8a40
Keep old rule trees around until they are no longer referenced. (Bug 475128) r+sr=bzbarsky
2009-01-29 12:39:19 -08:00
L. David Baron
cca2d5f9d3
Add assertions to EndReconstruct that all style contexts have been reresolved. (Bug 473871) r+sr=bzbarsky
2009-01-16 13:32:09 -08:00
L. David Baron
ac1bee2193
Replace mechanism for restricting the properties that apply to :first-line and :first-letter. (Bug 469227) r+sr=bzbarsky
2008-12-12 10:59:03 -08:00
John Daggett
470f5c3f5b
Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron,bz sr=dbaron
2008-11-27 12:50:16 +09:00
L. David Baron
f82a4ba107
Fix cascading bugs with @font-face rules (and prepare for handling dynamic changes) by accumulating the @font-face rules across rule processors through the style set. (Bug 457821) sr=bzbarsky r=jdaggett a=blocking1.9.1+
2008-11-25 15:22:38 -08:00
L. David Baron
b7c9a551d4
Back out 91690545debc0d3537fcb0598ebd6ac7e21f2072 due to mac startup failures.
2008-11-25 15:09:02 -08:00
L. David Baron
753588abda
Fix cascading bugs with @font-face rules (and prepare for handling dynamic changes) by accumulating the @font-face rules across rule processors through the style set. (Bug 457821) sr=bzbarsky r=jdaggett a=blocking1.9.1+
2008-11-25 13:27:54 -08:00
L. David Baron
04005c945f
Fix assertion about being too late to set quirks style sheet. (Bug 450191) r+sr=bzbarsky a=blocking1.9.1+
2008-11-25 13:27:54 -08:00
Boris Zbarsky
b031d1bb8c
Bug 454578. Load the quirk stylesheet separately from the general UA stylesheet, so it can be sensibly enabled/disabled in style sets. r+sr=dbaron
2008-11-02 21:29:51 -05:00
L. David Baron
c155fd6771
Assert when we set the quirk style sheet after building rule cascades. (Bug 448281) r+sr=bzbarsky
2008-08-06 10:42:56 -07:00
L. David Baron
a412906fd9
Handle effects of medium feature changes on XBL style sheets. (Bug 156716) r+sr=bzbarsky
2008-07-26 09:14:49 -07:00
L. David Baron
8cd01e114a
Implement media queries, part 3: infrastructure for dynamic change handling at the rule processor and style set level. (Bug 156716) r+sr=bzbarsky
2008-07-26 09:14:48 -07:00
L. David Baron
907424839d
Remove pointless null checks that are extremely unlikely to fail. (Bug 156716) r+sr=bzbarsky
2008-07-26 09:14:48 -07:00
L. David Baron
3b1ac9f515
Avoid stack overflow by not using recursion to add the important rules. (Bug 439184.) r=fantasai sr=bzbarsky
2008-07-13 13:57:38 -07:00
Olli.Pettay@helsinki.fi
652c1e007c
Bug 411054, Audit IsNativeAnonymous()/GetBindingParent() uses, r+sr=sicking
2008-02-26 04:40:18 -08:00
bzbarsky@mit.edu
02f1bf69e6
We can destroy style contexts during ruletree reconstruct. Bug 403454, r+sr=dbaron
2007-11-14 22:13:48 -08:00
bzbarsky@mit.edu
f22ec2a519
Fix bug 345609. r+sr+a=roc
2007-10-12 11:37:51 -07:00
Olli.Pettay@helsinki.fi
bd0b7ea6d7
Backing out bug 275196, xml:id, to fix tp regression
2007-07-26 07:16:19 -07:00
Olli.Pettay@helsinki.fi
e8dba5a1b4
Bug 275196, xml:id, r=sicking, sr=dbaron
2007-07-26 05:22:01 -07:00
vladimir@pobox.com
a232b51aff
b=339553, drawString enhancement for canvas, r=me; patch from robarnold
2007-07-25 11:21:34 -07:00
sharparrow1@yahoo.com
2217b2847d
Bug 386640: ClearStyleDataAndReflow is fundamentally broken. r+sr=bz
2007-07-25 10:14:13 -07:00
bzbarsky@mit.edu
4d53ccf996
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.
2007-07-12 13:05:45 -07:00
jwalden@mit.edu
6d7584839a
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.
2007-07-08 00:08:04 -07:00
bzbarsky@mit.edu
0c365324a5
Don't apply user stylesheets to descendants of native anonymous subtrees. Bug
...
285140, r+sr=dbaron
2007-06-15 22:09:51 -07:00
dbaron@dbaron.org
3546b59264
Make rule nodes know their level in the cascade. b=374907 r+sr=bzbarsky
2007-05-16 14:08:51 -07:00
bzbarsky@mit.edu
3fffd1fdc3
Don't apply user stylesheets to native anonymous content. Bug 286895, r+sr=dbaron
2007-05-04 23:47:09 -07:00
jonas%sicking.cc
073b1fd3fe
Bug 370332: Kill nsIBindingManager and nsIStyleRuleSupplier. r=dbaron for the layout/style parts, r/sr=jst for the rest.
2007-02-16 23:02:08 +00:00
bzbarsky%mit.edu
715c457c96
Make the assertions saner. Bug 342923, r+sr=dbaron
2006-11-11 06:30:40 +00:00
cvshook%sicking.cc
d3ec0aa5c5
Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
2006-05-05 06:52:21 +00:00
dbaron%dbaron.org
60e75026b0
Move assertion up to where we have a chance of actually seeing it.
2006-04-27 18:23:30 +00:00
dbaron%dbaron.org
30f8db359a
File comments that show up in LXR and provide a quick summary of what's in each file.
2006-03-25 05:47:31 +00:00
dbaron%dbaron.org
7a3633c66a
Weaken assertions I added yesterday to fix orange on balsa. b=307939
2005-09-12 15:37:30 +00:00
dbaron%dbaron.org
667d1f2104
Document pseudo-element code a little better and add some assertions. b=307939 r+sr=bzbarsky
2005-09-11 23:17:28 +00:00
dbaron%dbaron.org
18ff195e5d
Fix typo in comment. b=305901.
2005-08-25 14:34:36 +00:00
bzbarsky%mit.edu
ccf9ef3a04
Fix crashes when computed style is used on a dead presentation. Bug 291183,
...
r+sr=dbaron, a=chofmann
2005-06-03 01:51:15 +00:00
bzbarsky%mit.edu
df42e726bc
Combine WalkRules and UseDocumentRules into one function. Bug 244252,
...
r=bryner, sr=dbaron
2004-09-10 04:57:30 +00:00
tor%cs.brown.edu
8b7a521e30
Bug 254771 - Remove AssertNoCSSRules(lastPresHintRN, lastAgentRN) from
...
nsStyleSet::FileRules. Patch by jonathan.watt@strath.ac.uk , r=bz, sr=dbaron
2004-08-10 15:59:30 +00:00
dbaron%dbaron.org
d35f39cc02
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
neil%parkwaycc.co.uk
a33872e9fe
Bug 32372 should be possible to completely disable CSS p=fantasai@inkedblade.net r=me (xpfe) r/sr=dbaron
2004-08-05 11:38:42 +00:00
bryner%brianryner.com
5c02a6978c
Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
2004-07-31 23:15:21 +00:00
dbaron%dbaron.org
2faa2566a0
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
bzbarsky%mit.edu
89005ed71c
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
2004-07-15 20:30:30 +00:00
bzbarsky%mit.edu
32a4619a53
Move presentation attributes into the UA level in non-HTML documents and a
...
separate preshint level in HTML. Bug 234861, r=dbaron, sr=jst
2004-05-05 00:30:57 +00:00
gerv%gerv.net
9d2ee4928c
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-17 21:52:36 +00:00
bryner%brianryner.com
bc74f0b352
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.
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
d33950dfac
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
6996bca809
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.
2004-01-13 02:19:28 +00:00
bzbarsky%mit.edu
bc704c519e
Fix regression bug 230620. r+sr=dbaron
2004-01-11 22:03:41 +00:00