Граф коммитов

143 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky c8d7e9da79 Bug 571347. In HasAttributeDependentStyle when the class attribute is changing, walk only selectors with classes that might be relevant. r=dbaron 2010-06-18 12:23:05 -04:00
Boris Zbarsky fa30dc0437 Bug 494117 part 2. Don't force selector matching on the whole subtree rooted at an element when the element's style changes. r=dbaron 2010-06-18 12:23:05 -04:00
Boris Zbarsky 43f065f6ae Bug 494117 part 1. Rename eRestyle_Self to eRestyle_Subtree. r=dbaron 2010-06-18 12:23:05 -04:00
Markus Stange 98b0d9be1f Bug 426082, part 2: Make nsEventStateManager::GetContentState return the state directly instead of using an outparam. r=dbaron 2010-05-31 19:49:04 +02:00
L. David Baron 86bba93f79 Make the 'noappend' selector optimizations only restyle later siblings, which is what they need to do. (Bug 534804) r=bzbarsky 2010-05-14 22:01:46 -07:00
L. David Baron 76df418748 Additional restyling is needed for :empty + E and :empty ~ E selectors. (Bug 534804) r=bzbarsky 2010-05-14 22:01:45 -07: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
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 9c2ad4b2aa Bug 562688 part 4. Change GetRootContent and the like to return Elements. r=jst, sr=sicking 2010-04-30 09:12:05 -04:00
Mitchell Field f544d71a9d Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov 2010-04-29 18:59:13 +02:00
Boris Zbarsky d6ac020246 Bug 561516. Switch from an array of function pointers to a switch to make it easier to modify this code in the future. r=dbaron 2010-04-26 16:27:01 -04:00
L. David Baron b9449d47f3 Implement :-moz-any() selector to allow simplification of user-agent style sheets. (Bug 544834) r=bzbarsky 2010-04-23 19:59:47 -07:00
Ehsan Akhgari 43363953fd Backed out changeset 9786ae3984b3 (bug 553124) because of potential privacy risks 2010-04-07 13:29:10 -04:00
Ehsan Akhgari 6f84f45be3 Bug 553124 - After bug 147777 lands, private browsing doesn't need to disable coloring of visited links any more; r=sdwilsh,bzbarsky
--HG--
extra : rebase_source : 7aff54b4357ca411278e906ecd022adfd1bb09cc
2010-04-06 13:47:42 -04:00
L. David Baron 3a0a941202 Add method to munge the content state appropriately for how we're matching so that matching operations in HTML and CSS style sheets follow the new rules. (Bug 147777) r=bzbarsky 2010-04-02 18:58:27 -07:00
L. David Baron 77b2baaacc Put visited handling in the tree match context. (Bug 147777) r=bzbarsky 2010-04-02 18:58:27 -07:00
L. David Baron fa5650511b Propagate whether we have a relevant link from rule processors to style set. (Bug 147777) r=bzbarsky 2010-04-02 18:58:27 -07:00
L. David Baron 12aeda8a30 Propagate whether we have a relevant link out of selector matching. (Bug 147777) r=bzbarsky 2010-04-02 18:58:26 -07:00
L. David Baron 179665d6ce Introduce NodeMatchContext for additional input into SelectorMatches. (Bug 147777) r=bzbarsky 2010-04-02 18:58:26 -07:00
L. David Baron 9b0db9e924 Introduce TreeMatchContext for additional output from SelectorMatchesTree. (Bug 147777) r=bzbarsky 2010-04-02 18:58:26 -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
Zack Weinberg 223c22a153 Bug 508466 part 2: In a CSS selector group, use distinct mOperator codes for the descendant combinator (' ') and the end of the chain ('\0'). r=dbaron 2010-03-31 11:08:09 -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
Ehsan Akhgari a563c6e375 Bug 549887 - Make sure we don't crash if for some reason the layout init fails; r=dbaron
--HG--
extra : rebase_source : a112310d69c86f727471e2abaea31e1898f68ca1
2010-03-15 11:13:52 -04:00
Jonas Sicking c7c7514f75 Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap 2010-03-08 07:45:00 -08:00
Ehsan Akhgari 27a8c70900 Bug 461199 (Part 20) - Rewrite the private browsing visited link coloring test to make it work with the new async API
r=mconnor
r=sdwilsh
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher 5a72540281 Bug 461199 (Part 15) - Rely on nsIContent::IntrinsicState instead of nsIContent::GetLinkState in layout.
Layout should call IntrinsicState instead of GetLinkState.  Simplifies a lot of
logic, and makes the code easier to follow.
r=bz
sr=dbaron
2009-12-15 16:04:12 -08:00
Shawn Wilsher f968dfb0d2 Backed out changeset bca0b6ed92e4 2010-02-18 10:02:49 -08:00
Shawn Wilsher 35bd533654 Bug 461199 (Part 15) - Rely on nsIContent::IntrinsicState instead of nsIContent::GetLinkState in layout.
Layout should call IntrinsicState instead of GetLinkState.  Simplifies a lot of
logic, and makes the code easier to follow.
r=bz
sr=dbaron
2009-12-15 16:04:12 -08:00
Boris Zbarsky dbe398c5f7 Bug 531933. Give HasStateDependentStyle a better signature. r=dbaron 2009-12-11 22:36:34 -08:00
L. David Baron 10f147165d Call RuleMatched method on CSS rules when they are matched. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky 7c20a79598 Bug 525952 part 4. Use the new pseudoclass enum in IsStateSelector and SelectorMatches. r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky 537e44933f Bug 525952 part 1. Make sure pseudo-element selectors never land inside SelectorMatches (because tree pseudo-elements do weird stuff with pseudo-classes). r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky 0ce4669888 Bug 525608 part 8. Reorder the cases in AddRule in order of likelihood. r=dbaron 2009-12-11 02:37:40 -05: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 8202b90f61 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky ed30b4065d Bug 525952 part 4. Use the new pseudoclass enum in IsStateSelector and SelectorMatches. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky 453f48a20f Bug 525952 part 1. Make sure pseudo-element selectors never land inside SelectorMatches (because tree pseudo-elements do weird stuff with pseudo-classes). r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky 09521a0bf2 Bug 525608 part 8. Reorder the cases in AddRule in order of likelihood. r=dbaron 2009-12-10 14:36:06 -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