Boris Zbarsky
7f8d92e598
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
17194e597d
Back out bug 851892 for Windows build bustage on CLOSED TREE
2017-01-13 11:47:22 -05:00
Boris Zbarsky
f5cfc1f710
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Jared Wein
d082f94cb9
Bug 1323618 - Allow locking off of psuedo-classes through inIDOMUtils. r=heycam
...
MozReview-Commit-ID: DppYTmILpwy
2017-01-12 12:10:07 -05:00
Sebastian Hengst
2c0af86386
Backed out changeset 6c4807171f00 (bug 1323618) on jaws' request. r=backout
2017-01-12 18:45:39 +01:00
Jared Wein
4da6b820c7
Bug 1323618 - Allow locking off of psuedo-classes through inIDOMUtils. r=heycam
...
This patch doesn't currently work. The test fails in two test cases. Right now the styles for a 'locked-off' psuedo class are still being applied.
MozReview-Commit-ID: DppYTmILpwy
* * *
[mq]: temp
MozReview-Commit-ID: 74iIOQumfrw
2017-01-12 12:10:07 -05:00
Xidorn Quan
cc24e912e2
Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
...
MozReview-Commit-ID: DkrMkzMq5qM
2016-12-21 18:16:50 +11:00
Cameron McCormack
91829cff51
Bug 1322661 - Expose (non-XBL) style sheets to devtools. r=xidorn
...
MozReview-Commit-ID: 72Lyf8Ak7Ib
2016-12-09 08:27:32 -10:00
Xidorn Quan
2d70bdcd07
Bug 1307357 part 1 - Make css::Rule hold StyleSheet rather than CSSStyleSheet. r=heycam
...
MozReview-Commit-ID: JsJa4YqpCZy
2016-11-23 10:26:20 +11:00
Cameron McCormack
9c8abdea63
Bug 1312331 - Build up list of applicable rules in reverse to avoid quadratic time array manipulations. r=erahm
...
MozReview-Commit-ID: HAjtxQVZo8X
2016-10-24 02:59:00 +02:00
Eric Rahm
2d5dca3055
Bug 1311191 - Part 2: Convert |inIDOMUtils.getCSSStyleRules| to |nsIArrayExtensions|. r=heycam
...
This converts |getCSSStyleRules| to return an |nsIArrayExtensions| instead of
an |nsISupportsArray|. |nIArrayExtensions| still provides the iteration
mechanisms -- |Count| and |GetElementAt| -- that add-ons expect so they should
not be affected.
MozReview-Commit-ID: ZdrFrbclX8
2016-10-24 13:24:28 -07:00
Xidorn Quan
7ba350b0a6
Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
...
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.
This commit is generated by the following command:
find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
-e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
-e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +
MozReview-Commit-ID: 54H5x27Pmso
2016-09-26 22:03:25 +10:00
Bobby Holley
e55613ed13
Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug
...
We need to call it on some hot paths in stylo, and this allows us to do
quick inline check before delegating to the slow path.
2016-08-19 14:43:53 -07:00
Jonathan Chan
23ccd0531f
Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
...
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):
hg stat -c \
| cut -c 3- \
| tr '\n' '\0' \
| xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''
Then:
hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h
... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.
MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
Ting-Yu Lin
1bcd857cd6
Bug 1288626 Part 8 - Add shape-outside support to style system. r=heycam
...
I have to move the definition of StyleBasicShape and StyleShapeSource prior to
where nsStyleDisplay::mShapeOutside is defined since the template struct need to
be fully defined before using as a member variable.
Use SetIdent() in CreatePrimitiveValueForBasicShapeOrURL() in
nsComputedDOMStyle.cpp per bug 1288626 comment 6.
MozReview-Commit-ID: 1KZS299CFul
2016-07-22 15:40:01 +08:00
Jeremy Chen
2c264512f6
Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
...
MozReview-Commit-ID: E0eXolZ93oJ
2016-07-28 15:23:36 +08:00
Thomas Wisniewski
dec381fbce
Bug 843579 - Unprefix -moz-any-link. r=bz
2016-07-19 23:13:13 -04:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Nathan Froyd
f2611f3a7d
Bug 1272397 - use AppendElements in GetColorsForProperty; r=tromey
...
Creating an array of exactly the size that we need is faster than
possibly going through several rounds of reallocation and copying.
2016-05-19 21:48:59 -04:00
Xidorn Quan
59e42a1031
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 18:44:05 +10:00
Xidorn Quan
cdfeba343a
Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
...
MozReview-Commit-ID: Xh50g9hsH9
2016-05-10 18:44:05 +10:00
Xidorn Quan
90f7282451
Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
...
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
39f3eff072
Backed out 4 changesets (bug 1269975) for bustage.
...
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Ryan VanderMeulen
32bd5582e6
Backed out changesets 4e949692600a and 6f7ecae8e663 (bug 1269976) for bustage.
2016-05-09 23:58:49 -04:00
Xidorn Quan
eab81e400b
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 13:36:25 +10:00
Xidorn Quan
110f9c2db9
Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
...
MozReview-Commit-ID: Xh50g9hsH9
2016-05-10 13:36:25 +10:00
Xidorn Quan
38e4a7340d
Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
...
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 13:36:25 +10:00
Xidorn Quan
0ddba99531
Bug 1268749 part 2 - Make pseudo-classes able to present conditionally like properties. r=heycam
...
MozReview-Commit-ID: 6D3UPQGrS71
2016-05-04 15:09:36 +10:00
Nicholas Nethercote
cb5d744c69
Bug 1268772 (part 4) - Use MOZ_MUST_USE with NS_NewISupportsArray(). r=erahm.
...
A few callers of NS_NewISupportsArray() didn't use the return value to detect
failure, but instead checked if the |array| argument was null after the call.
This is inconsistent with the majority of the calls to NS_NewISupportsArray().
This patch changes them to be checked in the normal way.
2016-05-02 09:06:47 +10:00
Boris Chiou
e8ffbe2852
Bug 1250820 - Part 4: Add MAX to CSSPseudoClassType. r=heycam
...
Just like CSSPseudoElementType, which uses a special type to represent the
maximum length. We can replace "CSSPseudoClassType::NotPseudo + 1" with
"CSSPseudoClassType::MAX", which means the maximum length.
MozReview-Commit-ID: 4xH0avpWPqX
2016-04-22 22:18:21 +08:00
Boris Chiou
37ef670bc3
Bug 1250820 - Part 2: Replace nsCSSPseudoClasses::Type with CSSPseudoClassType. r=heycam
...
MozReview-Commit-ID: 6w4SoaS7gRi
2016-04-22 21:38:46 +08:00
Boris Chiou
861e9b960e
Bug 1250820 - Part 1: Define scoped enum for CSSPseudoClass::Type. r=heycam
...
MozReview-Commit-ID: 6RHot1LaUOs
2016-04-22 20:40:45 +08:00
Markus Stange
bca45f9ee7
Bug 550426 - In PropertySupportsVariant, add {background,mask}-position-{x,y} to the list of properties that are parsed by functions. r=dbaron
...
MozReview-Commit-ID: 8PFNIic38f5
2016-04-21 20:22:46 -04:00
Wes Kocher
1a290e54b0
Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
...
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)
MozReview-Commit-ID: AlUihrLtlhL
2016-04-29 14:47:43 -07:00
Markus Stange
da30816412
Bug 550426 - In PropertySupportsVariant, add {background,mask}-position-{x,y} to the list of properties that are parsed by functions. r=dbaron
...
MozReview-Commit-ID: 8PFNIic38f5
***
2016-04-21 20:22:46 -04:00
Mats Palmgren
4d2666847a
Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert
2016-04-21 16:18:34 +02:00
Nicholas Nethercote
7f7c26ed62
Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
...
do_GetAtom() is currently just a synonym for NS_NewAtom().
2016-03-29 10:09:43 +11:00
Gabor Krizsanits
7a09c24e69
Bug 1247420 - part1: removeContentState. r=smaug
2016-03-30 11:54:27 +02:00
Mats Palmgren
da36c44e1d
Bug 1253529 part 2 - [css-grid] Remove the 'grid-template' shorthand. r=dholbert
2016-03-08 23:03:26 +01:00
CJKu
3c9eb1e509
Bug 1243734 - Part 1. Use MOZ_ENABLE_MASK_AS_SHORTHAND to define the type of mask property; r=dbaron
...
MozReview-Commit-ID: FkPgdh8YHOC
2016-03-01 19:52:17 +08:00
Cameron McCormack
c0e9a631c2
Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert
2016-02-24 18:01:12 +11:00
Cameron McCormack
8a879b8032
Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert
2016-02-24 18:01:11 +11:00
Boris Chiou
865378aff1
Bug 1244049 - Part 4: Define CSSPseudoElementTypeBase. r=dbaron
...
In order to convert CSSPseudoElementType into its underlying type easier,
we define CSSPseudoElementTypeBase. However, keep using uint8_t directly for
forward declarations.
2016-02-18 19:18:00 +01:00
Boris Chiou
32cdf253b7
Bug 1244049 - Part 2: Replace nsCSSPseudoElements::Type with CSSPseudoElementType. r=dbaron
...
Also, try to use forward declaraions for CSSPseudoElementType;
2016-02-17 21:37:00 +01:00
Boris Chiou
16edfa82cd
Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
2016-02-16 23:07:00 +01:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
CJKu
bf17fc7340
Bug 686281 - Implement CSS mask style; r=dbaron.
2016-01-28 06:28:00 +01:00
Tom Tromey
cefce483bd
Bug 1224121 - change getRelativeRuleLine to return 0 for line-less rules; r=heycam
2015-12-03 08:55:13 -07:00