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

157 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar 1f4cd33169 Bug 660662. Eliminate NS_(ceil|floor). r=roc
These just called the system versions.
2011-05-30 15:08:55 -04:00
Matt Woodrow 601ed53b80 Bug 675470 - Handle eCSSKeyword_interpolatematrix in AddTransformLists. r=dbaron 2011-08-04 14:08:37 +12:00
Matt Woodrow b84eabcf4a Bug 505115 - Part 12a - Implement -moz-perspective-origin style property. r=dbaron 2011-08-03 15:04:24 +12:00
Matt Woodrow 236f72943c Bug 505115 - Part 11a - Add nsCSSValueTriplet and optionally read a z component to -moz-transform-origin. r=dbaron 2011-08-03 15:04:23 +12:00
Matt Woodrow 5afc317166 Bug 505115 - Part 3 - Convert nsStyleTransformMatrix to be backed by a 4x4 matrix. r=dbaron 2011-07-23 10:28:07 +12:00
L. David Baron 4f2850eae4 Don't assert when interpolating font-weight to a result less than 100. (Bug 664927) r=bzbarsky 2011-06-29 14:39:21 -07:00
Dominic Fandrey 968bf5196a Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Ed Morley f13392fb42 Bug 614515 - Remove MOZ_SVG conditions. r=roc 2011-05-30 09:34:50 +02:00
Boris Zbarsky 7d1956e063 Bug 647885 part 2. Keep better track of whether our computed background-size was specified with percentages. r=dbaron a=sheriff 2011-05-23 16:36:18 -04:00
Boris Zbarsky 95558bbf2b Bug 647885 part 1. Keep better track of whether our computed background-position was specified with percentages. r=dbaron 2011-05-23 16:36:18 -04:00
L. David Baron 944194d47c Ensure nsStyleAnimation doesn't produce values outside valid ranges. (Bug 653842, patch 3) r=bzbarsky 2011-05-09 15:02:35 -04:00
L. David Baron a9d5f524ee Remove null-checks of nsCSSParser, since construction is infallible. (Bug 542058, patch 1) r=bzbarsky
Note that many callers already skipped the null-checks.
2011-04-21 20:17:31 -07:00
Craig Topper 6096667acd Bug 645956 - Part 1: Remove NS_NewCSSStyleRule, r=bzbarsky 2011-03-22 19:56:47 -07:00
Masayuki Nakano 4ac1042cce Bug 59109 Part 1: Adding -moz-text-decoration-color and -moz-text-decoration-style r=dbaron, sr=bzbarsky 2011-03-31 21:26:35 +09:00
Ehsan Akhgari 692c3a0600 Merge cedar into mozilla-central 2011-03-29 10:39:07 -04:00
L. David Baron 6964725cc6 Remove nsCSSStruct.h/cpp. (Bug 645620, patch 4) r=bzbarsky 2011-03-28 16:07:26 -07:00
Ms2ger 3c41948d77 Bug 562701, part c: Use Element in nsStyleAnimation::ComputeValue; r=dbaron 2011-03-28 12:51:59 -04:00
Craig Topper 678b9c7c11 Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
Brian Birtles 4a591481a9 Bug 607537 - SVG SMIL: Support paint servers an animation values; r=dholbert,dbaron; a=roc 2010-12-29 10:31:14 +09:00
timeless@mozdev.org 9f3c6ae963 Bug 617971 nsStyleAnimation::ExtractComputedValue leaks pair when StyleCoordToCSSValue fails.
r=bz a=bz
2010-12-10 10:31:37 -08:00
Daniel Holbert 0a34a22927 Bug 615977: Make nsCSSValue::BufferFromString() return an already_AddRefed pointer. r=dbaron a=roc
--HG--
extra : rebase_source : b4048d8fbde522f05a01df693887e0e26a5afb97
2010-12-05 13:17:29 +00:00
Daniel Holbert b7242977c5 Bug 606722 followup: Remove now-unused variable "tfunc" from nsStyleAnimation::ComputeDistance. r+a=dbaron 2010-11-16 15:19:21 -08:00
L. David Baron 8c6808d7f3 Animate skew in angle space rather than tangent space for interop and to avoid issues with infinite tangents. (Bug 606722) r=bzbarsky a2.0=blocking 2010-11-16 09:56:03 -08:00
L. David Baron 3b8d68ee17 Add test for nsStyleAnimation::ComputeDistance. (Bug 598099) r=bzbarsky a2.0=blocking-betaN 2010-10-23 16:31:55 -07:00
L. David Baron dae2d3f4f5 Change distance computation for transforms so that distance ratios match interpolation. (Bug 598099) r=bzbarsky a2.0=blocking-betaN 2010-10-23 16:31:55 -07:00
L. David Baron 4bf96ebd3a Remove null-checks for infallible array allocations. (Bug 520234) r=bzbarsky a=blocking2.0:beta7 2010-09-15 08:11:27 -07:00
L. David Baron 15e8f8b737 Allow calc() as an intermediate common animation unit for background-position and background-size. (Bug 520234) r=bzbarsky a=blocking2.0:beta7 2010-09-15 08:11:26 -07:00
L. David Baron 5d09552b98 Allow calc() as an intermediate common animation unit between lengths, percentages, and calc(). (Bug 520234) r=bzbarsky a=blocking2.0:beta7 2010-09-15 08:11:26 -07:00
L. David Baron 5c9c223438 Extract calc() values in nsStyleAnimation when needed. (Bug 520234) r=bzbarsky a=blocking2.0:beta7 2010-09-15 08:11:26 -07:00
L. David Baron 26d6758faf Add calc() unit to nsStyleAnimation::Value. (Bug 520234) r=bzbarsky a=blocking2.0:beta7 2010-09-15 08:11:26 -07:00
L. David Baron d4d2946639 Support calc() on background-position, background-size, -moz-transform-origin, and background-image gradient stop positions. (Bug 594934) r=bzbarsky a=blocking2.0:betaN
(Note:  this also depends on the change to nsStyleAnimation.cpp's StyleCoordToValue in bug 520234 and on other changes in that bug.)
2010-09-15 08:11:26 -07:00
L. David Baron 04ad76518f Change storage of background-size and background-position to allow percentages and lengths. (Bug 594934) r=bzbarsky a=blocking2.0:betaN 2010-09-15 08:11:26 -07:00
Zack Weinberg 6c2d721b71 Bug 576044 (12/12): fix assertions in nsStyleAnimation triggered by part 3. r=dbaron a2.0=dbaron 2010-08-19 15:33:45 -04:00
Zack Weinberg f892a0765b Bug 576044 (6/12): remove vestiges of nsCSSType. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg ca47f883ec Bug 576044 (5/12): eliminate ValueList as a storage type. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg 69b647977d Bug 576044 (4/12): eliminate ValuePairList as a storage type. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg 124282380a Bug 576044 (3/12): eliminate Rect as a storage type. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg c95db1a5f9 Bug 576044 (2/12): eliminate ValuePair as a storage type. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg 24feb13867 Bug 569719 part 16: Don't refcount declarations and data blocks; don't have style rules hold direct pointers to data blocks. r+a=dbaron 2010-07-23 11:00:52 -07:00
Zack Weinberg b184cb662d Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron 2010-07-23 11:00:34 -07:00
Zack Weinberg 785d0ccdde Bug 569719 part 7: Add AppendToString methods to nsCSSRect and friends as well, replacing Declaration::AppendStorageToString. r=dbaron 2010-07-23 11:00:29 -07:00
Zack Weinberg 2d38832142 Bug 569719 part 5: in nsCSSValueList and nsCSSValuePairList, convert Equal() to operator==, and remove unnecessary argument from Clone(). r=dbaron 2010-07-23 11:00:24 -07:00
Zack Weinberg 2f4426c2f1 Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron
--HG--
rename : layout/style/nsCSSDeclaration.cpp => layout/style/Declaration.cpp
rename : layout/style/nsCSSDeclaration.h => layout/style/Declaration.h
rename : layout/style/nsCSSLoader.cpp => layout/style/Loader.cpp
rename : layout/style/nsCSSLoader.h => layout/style/Loader.h
2010-06-28 15:49:35 -07:00
Zack Weinberg d60d9e623f Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron 2010-06-28 15:49:35 -07:00
L. David Baron 1006454fbb Fix typo in comment as followup from bug 531344. 2010-07-16 22:36:34 -07:00
timeless@mozdev.org d758de761b Bug 577993 mark debug code in InsertFontFaceRule and nsStyleAnimation::ComputeDistance
r=dbaron

--HG--
extra : rebase_source : a8b1ed0732f8f06a192dbcc485dffe0bb10d4a50
2010-07-15 15:55:05 +03:00
L. David Baron c843e5b33a Make nsStyleAnimation::ComputeDistance not crash when given -moz-transform: none. (Bug 576761) (pending review)
--HG--
extra : transplant_source : _hY%B1%23%2Cb%D2%19R%BB%24%A4%9C%1B%16R%5C%8Ee
2010-07-03 12:25:37 -07:00
L. David Baron a5966c5522 Implement animation of -moz-transform property. (Bug 531344) r=dholbert 2010-07-02 21:18:56 -07:00
L. David Baron 96ae9617aa Add some helper functions for common CSS value to CSS value interpolations. (Bug 531344) r=dholbert 2010-07-02 21:18:56 -07:00
Daniel Holbert 013e10d651 Bug 574750: Use size_t for counter, in loops over contents of an nsCSSValue::Array. r=bz 2010-06-25 12:38:57 -07:00
Ms2ger@gmail.com 91560b026e Bug 538362 - rename nsIDocument::GetPrimaryShell to nsIDocument::GetShell. r=smaug 2010-06-25 15:59:57 +02:00
L. David Baron 534169bd6e Rename -moz-background-size to background-size. (Bug 549809) r=roc 2010-06-08 18:44:33 -07:00
Mounir Lamouri 9b26ae26de Bug 569337 - Fix compilation issues when SVG and SMIL are disabled. r=dbaron 2010-06-06 19:45:18 +02: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
timeless f3cdc36c53 Bug 334571 Coverity 702, NS_SIDES array limit check - replace NS_FOR_CSS_SIDES defines with enum. r=zwol,mats 2010-04-27 18:15:02 +02:00
timeless aa22afa674 Bug 334571 strip trailing whitespace. r=zwol 2010-04-27 18:15:01 +02:00
L. David Baron 34a3f166a8 Make nsStyleAnimation extract -moz-column-rule-color correctly. (Bug 557580) r=dholbert 2010-04-06 19:03:12 -07:00
L. David Baron e4ae9159cc Use the appropriate color based on visitedness for 'outline-color'. (Bug 147777) r=zweinberg 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
Daniel Holbert 3de1190d72 Bug 556404: Put CSS parser in SVG mode when parsing SMIL animation endpoints for XML attributes. r=roc r=dbaron 2010-04-02 09:34:31 -07:00
Mats Palmgren 348f3082bf Bug 383488: don't accept trailing tokens in 'value' in style.setProperty(prop,value,"important"). r=dbaron 2010-04-01 23:07:40 -07:00
Zack Weinberg 6ce13b76a5 Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Zack Weinberg 1fdb0388ba Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSParser.h => layout/style/nsCSSParser.h
2010-03-02 12:59:32 -08:00
Daniel Holbert 426093642e Bug 530983, patch 1: Extend nsStyleAnimation to support computing/uncomputing 'clip: auto'. r=dbaron 2010-01-04 16:32:11 -08:00
L. David Baron d2274a58eb Add support for animation of 'background-position' and 'background-size'. (Bug 532307) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron 5c1293a60a Add support for animation of 'visibility' to transitions (but make it a special case for transitions). (Bug 531942) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron 4cb8a38d3f Add support for animation of nsRect values. (Bug 520488) r=bzbarsky 2009-12-21 16:46:25 -05:00
Daniel Holbert 2ff0edce4d Bug 533421: Handle eUnit_Normal and eUnit_Auto in nsStyleAnimation::UncomputeValue. r=dbaron 2009-12-12 22:27:31 -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
L. David Baron f9a3949d79 Remove unneeded SlotForValue calls (since SlotForValue will soon require EnsureMutable has been called). (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
L. David Baron 42f41f3069 Add support for animation of border-spacing and -moz-transform-origin. (Bug 524861) r=bzbarsky 2009-12-11 08:13:19 -08:00
L. David Baron 97bb930d4b Add support for animation of -moz-column-rule-width. (Bug 524855) r=bzbarsky 2009-12-11 08:13:19 -08:00
L. David Baron d31af7cbc0 Add support for animation of -moz-column-count. (Bug 524854) r=bzbarsky 2009-12-11 08:13:19 -08: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
Daniel Holbert 7fb24e97d7 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 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
Daniel Holbert 45a32254c2 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 e6e85fc399 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 e06110f8e8 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 1cb5b1c508 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 3fe8b28b26 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
L. David Baron 44da7ceaf8 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 ff1edb3161 Pass property to nsStyleAnimation interpolation functions. (Bug 528234) r=dholbert 2009-11-14 19:16:58 -08:00
L. David Baron 0d05534e08 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
Boris Zbarsky 7813eeb6d1 Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron 2009-10-29 17:17:56 -04:00
L. David Baron 7b93863703 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 bcd165bbd6 Add support for animation of -moz-{border,outline}-radius-*. (Bug 523450) r=dholbert 2009-10-28 20:22:27 -07:00
Daniel Holbert 03220db402 Bug 520486 (patch 1): Extend nsStyleAnimation to support enumerated values. r=dbaron 2009-10-21 14:57:57 -07:00
L. David Baron 4d6a859d90 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 4c0fa8e623 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
Daniel Holbert 1b6c4332af 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 d035804a7a 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 8461beec27 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 5f26cfff3f Add previously-skipped border and outline properties to nsStyleAnimation. (Bug 521292) r=dholbert, bzbarsky 2009-10-13 19:38:20 -07:00
Daniel Holbert 4a60a39633 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 c78ecfe798 Bug 520485, patch 1 of 5: add support for float values in nsStyleAnimation. r=dbaron 2009-10-08 18:30:49 -07:00
L. David Baron 0d432cd83f Eliminate nsStyleAnimation::StoreComputedValue. (Bug 520396) r=dholbert,bzbarsky 2009-10-07 20:22:42 -07:00
Daniel Holbert 7ad5a1c2e6 Bug 520325: Extend nsStyleAnimation to support "none" value. r=dbaron 2009-10-03 15:16:16 -07:00
L. David Baron 84fc6b1932 Add bug number for FIXME comment. 2009-09-16 12:01:18 -07:00