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

46 Коммитов

Автор SHA1 Сообщение Дата
Boris Chiou 93878e807e Bug 1335942 - Part 5: Add AnimationValue::GetScaleValue(). r=hiro
Move the common part of GetScaleValue into nsStyleTransformMatrix, and add a
new method, GetScaleValue, on AnimationValue, which can get the scale value from
StyleAnimationValue or RawServoAnimationValue.

MozReview-Commit-ID: 4spi1LkZrWP

--HG--
extra : rebase_source : 81e352edb85c9abb16fb0ef2780ff27c4f264709
2017-02-06 16:32:21 +08:00
Xidorn Quan c3e6a81bc4 Bug 1316236 - Treat perspective(0) as perspective(infinity). r=dholbert
MozReview-Commit-ID: H9xlpjxrzht

--HG--
extra : rebase_source : 5060ae56163446a9dd6ae816c548ecd987a6e33e
2017-01-20 12:45:33 +11:00
Hiroyuki Ikezoe c661a36ecc Bug 1304886 - Part 8: Add Accumulate operator. r=boris,derf
MozReview-Commit-ID: Bzcn3IRSx6L

--HG--
extra : rebase_source : 854c39f38953a400407bcf976ebd68f25f4b6396
2016-11-16 20:32:33 +09:00
Boris Chiou 304026cd9d Bug 1272549 - Part 9: Compute distance for mismatched transform lists. r=birtles
MozReview-Commit-ID: JJWcMgj88GX

--HG--
extra : rebase_source : 3f1c314a2bf9c7c12991fb3873738c79b0152ea9
2016-10-05 15:36:16 +08:00
Boris Chiou 5e9077980f Bug 1272549 - Part 7: Compute distance for matrix and matrix3d. r=birtles
Decompose the 2d/3d matrix and calculate the Euclidean distance of
translate, scale, skew, quaternion, and perspective vectors.

MozReview-Commit-ID: 5nX9EeqvZi9

--HG--
extra : rebase_source : a15f2e4350e5c097eee8856a76244a81d589427a
2016-10-04 18:32:20 +08:00
Boris Chiou 17e5c4df16 Bug 1272549 - Part 6: Use enum class for shear in decomposition functions. r=birtles
MozReview-Commit-ID: 4exovhbjHI3

--HG--
extra : rebase_source : 99705c1bb2c980be06f7c662698241dde5ee9ab9
2016-10-12 12:36:58 +08:00
Boris Chiou c82cb7f0df Bug 1272549 - Part 5: Move decompose matrix to nsStyleTransformMatrix. r=birtles
Move Decompose2DMatrix and Decompose3DMatrix into nsStyleTransformMatrix
and remove some trailing spaces.

Both AddWeighted and ComputeDistance need Decompose2DMatrix and
Decompose3DMatrix on transform property, and both decomposition functions are
related to nsStyleTransformMatrix, so we move them into nsStyleTransformMatrix
to make StyleAnimationValue more concise.

MozReview-Commit-ID: 5aVK7971rDD

--HG--
extra : rebase_source : 75823b96a165ef65e3edfb00978b706d9db09393
2016-10-04 15:00:31 +08:00
Boris Chiou fe6b56e5e8 Bug 1272549 - Part 4: Compute distance for none and a valid transform list. r=birtles
Reuse AddTransformLists to get the identity transform functions to
replace none, and then treat them with another transform list as two matched
ones.

MozReview-Commit-ID: HwdBPCiUivg

--HG--
extra : rebase_source : 552ff668e2ac19dbfcfe2a37894b278f699f0c0b
2016-10-03 17:43:20 +08:00
William Chen 96cc20f039 Bug 1241575 - Use transform property syntax to parse WebKitCSSMatrix transform list. r=heycam 2016-02-01 16:45:09 -08:00
Kearwood (Kip) Gilbert c06afa1c7f Bug 1181240 - Part 2: Replace gfx3DMatrix with Matrix4x4 in layout,r=vlad
- Refactored code to use Matrix4x4 instead of gfx3DMatrix.
- There is not expected to be any functional effect.
2015-07-10 17:05:47 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Cameron McCormack 225f3dd70d Bug 804975 - Part 2: Add a RuleNodeCacheConditions class and use it instead of a boolean canStoreInRuleTree during style computation. r=dbaron 2015-06-23 11:48:18 +10:00
Jonathan Watt 13ebd5c893 Bug 923193, part 4 - Implement support for the 'transform-origin' property in SVG. r=heycam 2015-05-24 22:40:37 +01:00
Jonathan Watt b9b0d2b3c3 Bug 923193, part 1 - Avoid calculation of the reference box for transforms unless they're actually needed. r=roc
--HG--
extra : rebase_source : 8ffca8102a9648642f9166c213ce9e964c34b2af
2015-04-28 19:55:42 +01:00
Brian Birtles 65c7f861cb Bug 1010067 part 1 - Rename nsStyleAnimation::Value to mozilla::StyleAnimationValue; r=dbaron
This patch also moves the static methods defined on nsStyleAnimation so that
they are part of StyleAnimationValue class.

Renaming nsStyleAnimation.h to StyleAnimationValue.h is performed in a separate
patch to simplify the diff (since some tools may not handle file renames
elegantly).
2014-06-24 15:29:54 +09:00
Matt Woodrow da8180da9c Bug 995871 - Apply CSS transforms in CSS pixel space instead of device pixel space. r=dbaron 2014-05-08 17:35:00 +12:00
Ehsan Akhgari 6ada2899b2 Bug 916610 - Minimize the #includes in layout/style; r=roc 2013-09-15 21:06:52 -04:00
David Zbarsky 3250bd906e [Bug 847110] Fix up includes in layout/style r=dbaron 2013-03-02 19:31:48 -05:00
Nicholas Cameron c54f8d4754 Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz
--HG--
extra : rebase_source : 1207275df5c509ac1974e2b9333c738b995f9d5e
2012-12-12 10:12:43 +13:00
David Zbarsky bf4f8d3c97 Bug 755084 Part 2: Perform CSS animations of transform and opacity on the compositor r=roc, dbaron 2012-07-31 10:28:21 -07:00
Mark Finkle ecceaf8977 Backout 169ff207ed19, a34baed70c1b, f9ccdd490bd7, 39550ed860e6, 2194a2dd66b2, 908eb2e26843, a76e0a267f26 due to mobile viewport bustage (bug 778580) 2012-07-30 14:36:12 -04:00
David Zbarsky 93b20c52d3 Bug 755084 Part 2: Perform CSS animations of transform and opacity on the compositor r=roc, dbaron 2012-07-27 13:23:44 -07:00
Ed Morley 3ed23376d4 Backout 1244b8a8e57a (bug 755084), 32d16d0f87c9 (bug 706179), 8548e016d4a9 (bug 768440), 697f5b87eae9 (bug 768440), 808fc2bd4e8c (bug 755084), 54b1484cd125 (bug 755084), 876726b632c0 (bug 706179) for xul android R3 failures 2012-07-25 16:37:04 +01:00
David Zbarsky 630069520d Bug 755084 Part 2: Perform CSS animations of transform and opacity on the compositor r=roc, dbaron 2012-07-25 01:48:09 -07:00
Matt Brubeck 90029e0bf6 Back out f4f5189b1d0c, 3b4f0606c547, b8a5a1ab8a5f, 5078933d6954, 7e0260c45de9 (bug 768440, bug 755084, bug 706179) because of reftest failures 2012-07-23 20:25:51 -07:00
David Zbarsky ffaa635014 Bug 755084 Part 2: Perform CSS animations of transform and opacity on the compositor r=roc, dbaron 2012-07-23 17:34:46 -07:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Matt Woodrow 1c7000d5d8 Part 20 - Add more gfx3DMatrix transformation function and use these in nsStyleTransformMatrix. r=derf 2011-09-27 10:54:45 +13:00
Matt Woodrow bbeb8ef9e1 Bug 505115 - Part 19 - Make the matrix*() transform function handles both length and number values. r=dbaron 2011-09-27 10:54:30 +13:00
Matt Woodrow b4bfd8dd6a Bug 505115 - Part 9 - Implement the perspective() transform function and the perspective CSS property. r=dbaron 2011-08-03 15:04:22 +12:00
Matt Woodrow c2d638a2ab Bug 505115 - Part 6 - Implement the 3d -moz-transform functions. r=dbaron 2011-08-03 15:04:19 +12:00
Matt Woodrow d71d3420c7 Bug 505115 - Part 5 - Use gfx3DMatrix in layout. r=roc 2011-07-23 10:28:51 +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
Jonathan Watt 06594c58c1 Bug 614732 part 2 - Doc changes (clarify why nsDisplayTransform requires a bounds rect, and correctly associate nsStyleTransformMatrix's doxygen comment with it). r=roc. 2011-05-25 09:01:11 +01: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 5d4b53b370 Move ReadTransforms from nsRuleNode to nsStyleTransformMatrix. (Bug 531344) r=dholbert 2010-07-02 21:18:56 -07:00
L. David Baron d9e602a186 Fix comment in nsStyleTransformMatrix.h. 2009-12-11 08:13:19 -08:00
L. David Baron 8ba395c73e Rename aInherited/inherited to aCanStoreInRuleTree/canStoreInRuleTree. (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
L. David Baron 36813aa498 Reverse the boolean meaning of inherited/aInherited. (This patch, without the next patch to rename things, makes the code make less sense.) (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
L. David Baron d06d163f83 Fix failure to propagate aInherited result of nsRuleNode::CalcLength. (Bug 460440) r=kschwarz sr=bzbarsky 2008-10-20 14:07:09 +02:00
Keith Schwarz 2e601ee1e4 Bug 455138 - Bug 435293 landed failing tests; r=(dbaron + roc) sr=dbaron 2008-09-22 20:59:37 +02:00
Keith Schwarz 9b9583a852 Bug 455403 - -moz-transform translate functions result in incorrect origin; v5; r+sr=dbaron 2008-09-20 16:39:31 +02:00
L. David Baron eacac09939 Backed out changeset aab6b12f4a2b (Bug 455403) due to reftest failures from landing patches in the wrong order, and unexplained reftest hangs. 2008-09-19 16:04:34 -07:00
Keith Schwarz d0300d2843 Fix incorrect composition of translations with other transforms by making matrix multiplication code clearer, clarifying which matrices are for column vectors and which are for row vectors, and fixing incorrect matrix type conversions. (Bug 455403) r+sr=dbaron 2008-09-19 10:14:54 -07:00
Keith Schwarz 48a87265ac Bug 435293. Implement CSS transforms. r=dbaron,r+sr=roc 2008-09-13 21:42:11 +12:00