Commit Graph

982 Commits

Author SHA1 Message Date
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
Boris Zbarsky
4ee4e6154d Bug 507764. No need to reflow on z-index changes. r=roc 2009-10-29 21:47:46 -04:00
Boris Zbarsky
21f0b83225 Bug 522390. Fix percentage-height kids of scrollframes in quirks mode to deal with the height of the scrollframe becoming auto. r=dbaron 2009-10-29 21:47:43 -04:00
Boris Zbarsky
5215a681c7 Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron 2009-10-29 17:17:56 -04:00
Gijs Kruitbosch
41ba1acfa5 Back out bug 487059, fix tests and EM to cope, r=gavin,beltzner, bug 524995
--HG--
extra : rebase_source : d8414b8de165cf2fa534719c36416d82d21872c6
2009-10-29 14:44:10 +01:00
L. David Baron
f08400b737 Remove option for aTakeOwnership==PR_FALSE for nsStyleAnimation::Value setters for complex types. (Bug 523450) r=dholbert 2009-10-28 20:22:27 -07:00
L. David Baron
e694a7d0fe Add support for animation of -moz-{border,outline}-radius-*. (Bug 523450) r=dholbert 2009-10-28 20:22:27 -07:00
L. David Baron
0bc6a1f9f4 Add tests for correct behavior of CSS property values under cloning. 2009-10-28 20:22:27 -07:00
Daniel Holbert
e441521399 Bug 522320: Mask out internally-used OVERRIDE_ALL bit before trying to convert "text-decoration" values to strings. r=dbaron 2009-10-24 20:51:45 -07:00
L. David Baron
5228cb6cef Make test_transitions report either PASS or TODO for its timing-related tests since we just can't test timing on the unit test VMs. (Bug 522862) 2009-10-24 18:47:29 -04:00
Boris Zbarsky
a15350e46e Bug 524175. Compute weight correctly again for selectors involving pseudo-elements, and fail parsing selectors with more than one pseudo-element. r=zwol 2009-10-23 21:41:59 -04:00
Daniel Holbert
750877547e Bug 523755: Remove two unneeded nsCSSValue variable declarations in nsCSSDeclaration. r=dbaron 2009-10-22 15:13:10 -07:00
Daniel Holbert
2129f0b766 Followup to Bug 522320 bustage fix: in modified chunk of nsCSSDeclaration, check nsCSSValue unit before querying its integer value 2009-10-21 17:25:30 -07:00
Daniel Holbert
389de9359d Bug 522320 bustage fix (handle 'normal' value for font-variant/font-style in two other places). 2009-10-21 17:05:07 -07:00
Daniel Holbert
ba53e336e3 Bug 520486 (patch 1): Extend nsStyleAnimation to support enumerated values. r=dbaron 2009-10-21 14:57:57 -07:00
Daniel Holbert
6a6d66990d Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 2 (handle remaining properties). r=dbaron 2009-10-21 14:57:57 -07:00
Daniel Holbert
6d5899f9b0 Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 1 addendum (handle font-style, font-variant, overflow). r=dbaron 2009-10-21 14:57:57 -07:00
Daniel Holbert
5510f297d0 Bug 522320: Put auto/none/normal keywords in CSS keyword tables for properties that take enum values. Patch 1 (handle single-valued SVG-animatable properties). r=dbaron 2009-10-21 14:57:57 -07:00
L. David Baron
0832157c6a Add support for animation of stroke-dasharray to nsStyleAnimation. (Bug 523355) r=dholbert sr=bzbarsky 2009-10-21 10:17:40 -04:00
L. David Baron
27faacf80b Add support for animation of text-shadow and -moz-box-shadow (the first complex value types that we animate). (Bug 523196) r=dholbert sr=bzbarsky 2009-10-21 06:53:46 -04:00
L. David Baron
863b69812a Serialize type selectors with original case. (Bug 523341) r=bzbarsky 2009-10-21 06:53:46 -04:00
Boris Zbarsky
74eef1d572 Bug 523089. Fix serialization of [*|foo] selectors. r=dbaron 2009-10-20 13:27:47 -04:00
Daniel Holbert
bbb012c014 Bug 521335: explicitly handle 'eUnit_None' in nsStyleAnimation's ComputeDistance & AddWeighted methods, so that none-to-none animations won't spam assertions. r=dbaron 2009-10-20 09:54:50 -07:00
L. David Baron
33cf1c9250 Implement nsStyleAnimation::Add and Interpolate using the same code underneath. (Bug 523193) r=dholbert sr=bzbarsky 2009-10-20 07:46:16 -04:00
L. David Baron
e57591b530 Switch nsStyleAnimation from using nsStyleCoord to using its own nsStyleAnimation::Value, so we don't have to add nontrivial destructors to nsStyleCoord. (Bug 522852) r=dholbert,bzbarsky 2009-10-20 07:46:16 -04:00
L. David Baron
547f5923a6 Increase transitions test bezier tolerance to 0.0015 since bug 522862 comment 0 has an example that requires it to be 0.0012. (Bug 522862, Bug 435441) 2009-10-17 10:56:38 -04:00
L. David Baron
653c9c5c2f Make ReResolveStyleContext no longer rerun selector matching on next-continuations by making both ReResolveStyleContext and ReParentStyleContext enforce the invariant that all continuations have the same style context. (Bug 522563) r=bzbarsky 2009-10-17 10:31:47 -04:00
L. David Baron
7c16cf86f8 Add comment about additional place new system metrics should be added. 2009-10-17 10:31:47 -04:00
Taras Glek
a8c40146d6 Bug 522649: author styled select widget is missing arrow on button r=bz
--HG--
extra : rebase_source : 74aeb4467822896f4bc0e5ceaf73578de75c2222
2009-10-16 11:48:04 -07:00
L. David Baron
48e18ed038 Add bug numbers for the FIXME comments in CSS transitions patches. (Bug 435441) 2009-10-15 17:23:19 -07:00
L. David Baron
5ed2b51cec Add tests for media queries of system metrics. (Bug 522149) 2009-10-15 17:23:19 -07:00
L. David Baron
30ac481d4d Add media queries for all of our system metrics exposed in :-moz-system-metric(). (Bug 522149) r=bzbarsky 2009-10-15 17:23:19 -07:00
L. David Baron
2c64d5b55a Pass the media feature to media feature value getters. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
L. David Baron
b52b7d6d82 Make nsMediaFeature::mKeywordTable an mData union. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
L. David Baron
87dadf6778 Put :-moz-system-metric values in nsGkAtoms. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
Zack Weinberg
a1d38cb54a Bug 522292: Make the table of character properties in nsCSSScanner.cpp a compile-time constant. 2009-10-15 13:18:21 -07:00
Daniel Holbert
e98e00b7d5 Bug 517882 follow-up: Reorder nsStyleText constructor's initializer list to fix build warning. r=dbaron 2009-10-14 19:42:03 -07:00
L. David Baron
09ca90ac3c Increase test tolerance to reflect observed errors in bug 435441 comments 103 and 105, and handle timer firing after 8 seconds (comment 104). 2009-10-14 17:51:38 -07:00
Taras Glek
d4fe44eb8b Bug 522050 - select menus appear huge on bugzilla r=bzbarsky 2009-10-14 14:59:21 -04:00
L. David Baron
34d6f3a24f Better disambiguate nsStyleCoord constructors taking nscoord and nscolor. (Bug 521352) r=bzbarsky 2009-10-13 19:38:20 -07:00
L. David Baron
fcf766ba60 nsCSSValue constructor taking nscolor is a bad idea since nscolor is just PRInt32. (Bug 521350) r=bzbarsky 2009-10-13 19:38:20 -07:00
L. David Baron
b13bce9c1c Add bug numbers for FIXME comments in transitions landing. (Bug 435441) 2009-10-13 19:38:20 -07:00
L. David Baron
2f1013d988 Add previously-skipped border and outline properties to nsStyleAnimation. (Bug 521292) r=dholbert, bzbarsky 2009-10-13 19:38:20 -07:00
Daniel Holbert
582391de5f whitespace-only: clean up trailing whitespace in nsCSSProps.cpp & nsRuleNode.cpp 2009-10-12 23:35:57 -07:00
Taras Glek
45c73c60d8 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz
--HG--
extra : rebase_source : c6ba6e900ceed210620d47f70c9b962a808a29fe
2009-10-12 12:31:50 -07:00
Boris Zbarsky
aa6dadf4c4 Bug 520421. HasAttributeDependentStyle is broken on HTML for cased attribute selectors. r=dbaron 2009-10-12 12:27:51 -04:00
L. David Baron
3721a39441 Oops, sign of error_direction needs to change only for its second use. (Bug 435441) 2009-10-10 11:01:12 -07:00
L. David Baron
5095db87e0 Allow more error in bezier computation to fix random orange. 2009-10-10 10:02:32 -07:00
L. David Baron
d74253a76d Make transitions test more reliable by measuring the positions of transitions relative to a pair of reference linear transitions, and testing the progress of those reference linear transitions with considerably more latitude. (Bug 435441) 2009-10-09 19:11:09 -07:00
Daniel Holbert
ab77c7beaa Bug 520485, patch 3 of 5: add support for 'font-size-adjust' property in nsStyleAnimation. r=dbaron 2009-10-08 18:30:51 -07:00
Daniel Holbert
22a5e591ce Bug 520485, patch 1 of 5: add support for float values in nsStyleAnimation. r=dbaron 2009-10-08 18:30:49 -07:00
Taras Glek
c7f069ab70 Backed out changeset e22bef491d84 2009-10-08 16:43:55 -07:00
Taras Glek
4c56f842c8 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz 2009-10-08 11:22:50 -07:00
L. David Baron
35482a83e3 Increase test tolerance to try to fix random orange. 2009-10-08 08:13:49 -07:00
L. David Baron
a5dfc584cc Revert 9ef12a27ab14 and c87e6a6a41bb (patches 6 and 7 from bug 435441) which are no longer needed after bug 520396. 2009-10-07 22:10:58 -07:00
L. David Baron
d89495d9f4 Add tests for :-moz-tree-* pseudo-elements. (Bug 521044) 2009-10-07 20:22:42 -07:00
L. David Baron
dc02c8f330 Existing callers call IsCSS2PseudoElement on non-pseudo-elements (in particular, anon boxes), so we need to make that not assert and be deterministic. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
383e2263fa Fix serialization of tree pseudo-elements with arguments. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
780e6d0206 Parse pseudo-elements into their own pointer so we don't have to go through the trouble of removing them from the pseudo-class list. (Bug 520848) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
9bc18753bc Make parsing of tree pseudo-elements do proper parenthesis matching. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
86a7c76d23 Add per-property tests for CSS transitions to test the code in nsStyleAnimation. (Bug 435441, Bug 504652) 2009-10-07 20:22:42 -07:00
L. David Baron
bc34d93c16 Eliminate nsStyleAnimation::StoreComputedValue. (Bug 520396) r=dholbert,bzbarsky 2009-10-07 20:22:42 -07:00
L. David Baron
125bd1103e 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
3db591bcb4 Fix comment in nsStyleStruct.h about value types for -moz-column-gap. 2009-10-07 20:22:42 -07:00
jhorak@redhat.com
6dd5a51f91 Bug 509671 - Remove icons from buttons due to Gnome changes. r=roc,gavin 2009-10-06 16:20:59 +02:00
Boris Zbarsky
6476afe861 Bug 519905. Avoid some QIs to nsWrapperCache. r=peterv 2009-10-05 19:16:22 -04:00
Mark Finkle
5431eed7c0 Bug 520341: Implement a way to detect a pre-Fremantle Nokia Maemo tablet, r=roc 2009-10-04 21:31:26 -04:00
Daniel Holbert
9a32ba4fee Bug 520325: Extend nsStyleAnimation to support "none" value. r=dbaron 2009-10-03 15:16:16 -07:00
Daniel Holbert
50268f016b Bug 474049: Add support for SMIL animation of CSS properties in SVG. r=birtles sr=roc 2009-10-02 14:37:25 -07:00
L. David Baron
ecd4b94d27 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
b08500bbbb 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
Nochum Sossonko
33de430128 Bug 513461 - Implement pseudo classes for lightweight theme handling. r=dao,dbaron 2009-10-02 08:22:18 +02:00
Robert O'Callahan
e4bc55769e Bug 514660. Use classes instead of an explicit 'style' attribute to style the anonymous DIV of a text control, so that the styles are treated as user-agent styles and not removed when author styling is disabled. r=bzbarsky
--HG--
extra : rebase_source : 949e902529b2e0f48539d40141614038dfea0ea2
2009-09-23 23:02:27 +12:00
David Zbarsky
8d8553ee41 Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00
L. David Baron
1000b88c61 Reset the rule walker before calling NS_NewStyleContext. (Bug 513741) r=bzbarsky 2009-09-29 12:24:18 -07:00
David Zbarsky
bb6a0e81f4 Bug 507762: Parse CSS style sheets independently of case-sensitivity, and instead check case correctly when using the stylesheets. r=dbaron 2009-09-28 23:07:45 -07:00
Geoff Lankow
bd900ff5fd Bug 517882: Implement a -moz-tab-size CSS property that specifies the number of spaces between tab stops in preformatted text. r=roc, dbaron 2009-09-26 13:23:47 -07:00
Boris Zbarsky
ce54997bc6 Bug 516286. No need to clear ancestor intrinsic widths on top/left/right/bottom changes anymore. r=dbaron 2009-09-24 13:59:43 -04:00
Boris Zbarsky
dd0fc89b33 Bug 514773. Don't trigger rulenode gc unless we have rulenodes to gc. r=dbaron 2009-09-24 13:59:43 -04:00
Markus Stange
670c6722c8 Bug 517412 - 64 Bit fixes for nsLookAndFeel.mm. Also removes some unused colors. r=josh, r=dbaron 2009-09-22 20:03:17 +12:00
Peter Van der Beken
8646309708 Fix for bug 508780 (Stop using tearoff from quickstubs for nsDOMCSSDeclaration/nsComputedDOMStyle), part 2. r=jst.
--HG--
extra : rebase_source : 31cf92522c323b3acf062903a4e5c33ed568230c
2009-09-18 15:09:55 +02:00
Jonathan Kew
7f99e7a86f Bug 507970, part 2: implement support for downloadable WOFF fonts, r=jdaggett
--HG--
extra : rebase_source : e68c49d2dbea815e453f9ab52ba89bd9127d3f51
2009-08-30 14:55:24 +01:00