Commit Graph

963 Commits

Author SHA1 Message Date
Boris Zbarsky
fec842ecf2 Bug 525608 part 1. Introduce an enum for keeping track of pseudo-elements. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
e9f228c7d5 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Daniel Holbert
9ecf3cf108 Bug 529934 followup: Use "IsStringUnit()" instead of explicitly comparing unit, in nsStyleAnimation::FreeValue. r=dbaron 2009-12-10 16:38:17 -08:00
Boris Zbarsky
8f5e928be3 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
c86ac3e140 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky
9169c819a8 Bug 525952 part 2. Have different macros so nsCSSPseudoClassList.h consumers can tell apart state-related and not-state-related pseudo-classes. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky
88da9222b1 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
5b9e769f0b 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
7b8acbcaf3 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
a784f30c6a Bug 525608 part 6. Remove null-checks on RuleProcessorData::mContent. r=dbaron 2009-12-10 14:36:06 -08:00
Boris Zbarsky
bdb94e5fc6 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
e6128a1572 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
0a82b262db 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
d458769f84 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-10 14:36:05 -08:00
Boris Zbarsky
b4f32f993e Bug 525608 part 1. Introduce an enum for keeping track of pseudo-elements. r=dbaron 2009-12-10 14:36:04 -08:00
Boris Zbarsky
129197fdc7 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
9dc3b4cdd3 Bug 523294 part 1. Change the signature of HasAttributeDependentStyle. r=dbaron 2009-12-10 14:36:03 -08:00
Boris Zbarsky
f437bbbd4c Bug 523288 part 3. Do a bit less work still in the RuleProcessorData constructor. r=dbaron 2009-12-10 14:36:03 -08:00
Boris Zbarsky
368b43c231 Bug 523288 part 2. Get link state and content state lazily. r=dbaron 2009-12-10 14:36:03 -08:00
Boris Zbarsky
c993848554 Bug 523288 part 1. Move matching on id and class to right after matching on tag in SelectorMatches. r=dbaron 2009-12-10 14:36:02 -08:00
Boris Zbarsky
c117d41a73 Bug 523148. Speed up AddImportantRules. r=dbaron 2009-12-10 14:36:02 -08:00
Daniel Holbert
fad34e9220 Bug 520239, patch 2: Add support for shorthand properties in nsStyleAnimation's helper function 'BuildStyleRule'. r=dbaron 2009-12-10 09:26:28 -08:00
Daniel Holbert
a66fb56354 Bug 529934: Add "UnparsedString" unit to nsStyleAnimation, as catch-all for otherwise-unanimatable properties. r=dbaron 2009-12-10 09:26:27 -08:00
Daniel Holbert
446a2565b0 Bug 524539, patch 1: In nsStyleAnimation, represent "stroke-dasharray: none" with single-value nsCSSValueList. r=dbaron 2009-12-10 09:26:27 -08:00
Daniel Holbert
00537f3434 Bug 520239, patch 1: Split out a chunk of nsStyleAnimation::ComputeValue into its own function. r=dbaron 2009-12-10 09:26:27 -08:00
Daniel Holbert
ea15a6f6b5 Bug 529356: Add 'default' case in a switch statement in nsStyleAnimation, to fix build warning. r=dbaron 2009-12-10 09:26:27 -08:00
Robert O'Callahan
d866e87ce4 Bug 531371. Correctly propagate the backround from a <body style="display: table"> to the viewport as needed. r=bzbarsky 2009-12-01 12:21:00 -05:00
Peter Van der Beken
41824cb4bf Fix for bug 437449 (top crash [@ nsCycleCollector::MarkRoots(GCGraphBuilder&)][@ nsBaseContentList::cycleCollection::Traverse(void*, nsCycleCollectionTraversalCallback&)]). r=jst, a=blocking1.9.2+.
--HG--
extra : rebase_source : 5358561a463757cbfb77c542760dc1ea95fc6b82
2009-11-29 09:32:39 +01:00
Peter Van der Beken
5a63b1ad1c Back out fix for bug 437449 (top crash [@ nsCycleCollector::MarkRoots(GCGraphBuilder&)][@ nsBaseContentList::cycleCollection::Traverse(void*, nsCycleCollectionTraversalCallback&)]). 2009-11-28 23:30:49 +01:00
Peter Van der Beken
1f7d9b23d4 Fix for bug 437449 (top crash [@ nsCycleCollector::MarkRoots(GCGraphBuilder&)][@ nsBaseContentList::cycleCollection::Traverse(void*, nsCycleCollectionTraversalCallback&)]). r=jst, a=blocking1.9.2+. 2009-11-28 10:35:35 +01:00
L. David Baron
d0f535b30d Add mechanism for an individual mochitest to say it needs a longer timeout. (Bug 527614) r=ted 2009-11-19 09:35:09 -08:00
Boris Zbarsky
6fe6998aa1 Bug 528038. Make sure to propagate inherited changes properly for cases where the change hint doesn't apply to all descendants. r=dbaron 2009-11-18 08:25:02 -05:00
L. David Baron
a74df9df58 Add a test for bug 517224. 2009-11-17 13:11:14 -08:00
L. David Baron
fc88c5a60f Use property flags for which properties need StartLoadImage called. (Bug 528634) r=bzbarsky 2009-11-14 19:16:59 -08:00
L. David Baron
6e161b5b9c In the ValueList case, don't start image loads for declarations that are overridden by others (just like we already do for the Value case). (Bug 517224) r=bzbarsky 2009-11-14 19:16:59 -08:00
L. David Baron
d7d8f0ef43 Fix computed values of 'font-weight' to report integers for bold (like for normal) and to report usable values for bolder/lighter. (Bug 173331, Bug 77882) r=bzbarsky 2009-11-14 19:16:59 -08:00
L. David Baron
d2de4eeb32 Put the 'normal' values for 'font-weight' and 'font-stretch' into the keyword tables. (Bug 522320) r=dholbert 2009-11-14 19:16:59 -08:00
L. David Baron
86466092b9 Add support for animation of font-weight and font-stretch. (Bug 528234) r=dholbert 2009-11-14 19:16:59 -08:00
L. David Baron
eea2f3996a Pass property to nsStyleAnimation interpolation functions. (Bug 528234) r=dholbert 2009-11-14 19:16:58 -08:00
Mark Finkle
13b8532386 Bug 507817: BorderImage should not call ExtractCurrentFrame each time it draws [r=dbaron r=joedrew] 2009-11-13 23:23:00 -05:00
L. David Baron
db2e10e435 Add support for interpolation of integer-valued properties (i.e., z-index) to nsStyleAnimation. (Bug 524808) r=dholbert 2009-11-12 17:40:05 -08:00
KUROSAWA, Takeshi
c1928a15f8 Remove support for -moz-alias, -moz-context-menu, -moz-copy and -moz-spinning values of the 'cursor' property, no longer needed because of the standard alias, context-menu, copy, and progress cursors. (Bug 487942) r=dbaron 2009-11-12 17:40:05 -08:00
L. David Baron
194436e18a Bug 526402: Stop accepting unitless 0 for angles, times, and frequencies. r=zwol 2009-11-04 18:36:18 -08:00
Zack Weinberg
951c3c0079 Typo fix in an assertion expression in nsCSSValue.h (from bug 513395)
--HG--
extra : rebase_source : a522a501688af566c8a7a937a240a1afc42ddafc
2009-11-03 12:17:17 -08:00
Zack Weinberg
4439b4953d Bug 526075: Clamp tiny sines to zero when computing transformation matrices. 2009-11-02 21:00:46 -08:00
Robert O'Callahan ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
3ad4c03640 Bug 513395: Implement revised CSS gradient notation (2/2): rendering
--HG--
rename : layout/reftests/css-gradients/radial-ref.html => layout/reftests/css-gradients/radial-1-ref.html
rename : layout/reftests/css-gradients/radial.html => layout/reftests/css-gradients/radial-1a.html
rename : layout/reftests/css-gradients/twostops-ref.html => layout/reftests/css-gradients/twostops-1-ref.html
rename : layout/reftests/css-gradients/twostops.html => layout/reftests/css-gradients/twostops-1a.html
2009-11-02 11:36:43 -08:00
Zack Weinberg ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
dbd6355ce6 Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes 2009-11-02 11:36:43 -08:00
Jeff Walden
9e35e4594c Bug 509329 - Various issues with invalidation of backgrounds propagated from body to the canvas, and with sized backgrounds. r=dbaron
--HG--
extra : rebase_source : ade87923afbccfb4c4b5016d8421aae57c4b0e4e
2009-10-22 16:46:08 -07:00
Boris Zbarsky
44e7bf4e25 Bug 522390 followup. Fix test orange 2009-10-29 23:43:52 -04:00
Boris Zbarsky
9ef06c6d93 Bug 520563. Shouldn't predefine xml and xmlns prefixes for CSS selectors. r=dbaron,sicking 2009-10-29 21:47:48 -04:00