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

97 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd 21a2c67fd3 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 f355ff0241 Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
MozReview-Commit-ID: K3uFwojy6FZ

--HG--
extra : rebase_source : b4a671f8d97b1d11696c375d9af790ea27ccf0ca
extra : source : d458585bd00bbe6a503bfb0f1072c632b8f0e26f
2016-05-10 18:44:05 +10:00
Xidorn Quan 6a72181520 Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
MozReview-Commit-ID: Xh50g9hsH9

--HG--
extra : rebase_source : 7d1a2b5259f8c041c08536293f49b73071b428d7
extra : source : 4d400db27c134019063306fe5b5ef7d02c275af0
2016-05-10 18:44:05 +10:00
Xidorn Quan fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen f514ed495c 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 937594f842 Backed out changesets 4e949692600a and 6f7ecae8e663 (bug 1269976) for bustage. 2016-05-09 23:58:49 -04:00
Xidorn Quan 05db7e1bc8 Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
MozReview-Commit-ID: K3uFwojy6FZ

--HG--
extra : source : 9828f687af13af0d4e220ea440692b29cf14dcd0
2016-05-10 13:36:25 +10:00
Xidorn Quan 438b9dea89 Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
MozReview-Commit-ID: Xh50g9hsH9

--HG--
extra : source : 5455ce61582ef7c98a24f587a9212113487db984
2016-05-10 13:36:25 +10:00
Xidorn Quan 30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
Xidorn Quan 89008c7833 Bug 1268749 part 2 - Make pseudo-classes able to present conditionally like properties. r=heycam
MozReview-Commit-ID: 6D3UPQGrS71

--HG--
extra : rebase_source : e059616e5ec853c17614d119d58d3aeb5cb6c7af
2016-05-04 15:09:36 +10:00
Nicholas Nethercote 2ae68d12e9 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.

--HG--
extra : rebase_source : bf91836d7c3b159833c303a3716f4d9366f8b76a
2016-05-02 09:06:47 +10:00
Boris Chiou 41989567c2 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

--HG--
extra : rebase_source : bc8b6a5bb5a84782dea891054b8ea4c5d7ea3db8
2016-04-22 22:18:21 +08:00
Boris Chiou 66ed914313 Bug 1250820 - Part 2: Replace nsCSSPseudoClasses::Type with CSSPseudoClassType. r=heycam
MozReview-Commit-ID: 6w4SoaS7gRi

--HG--
extra : rebase_source : 6e3c05aedf910616def9f9f43fc0e135a2d84359
2016-04-22 21:38:46 +08:00
Boris Chiou 0fda46ccb4 Bug 1250820 - Part 1: Define scoped enum for CSSPseudoClass::Type. r=heycam
MozReview-Commit-ID: 6RHot1LaUOs

--HG--
extra : rebase_source : 8ad8ffa344091eb0bda6be7986de676be9f7f3ba
2016-04-22 20:40:45 +08:00
Markus Stange d2f8263023 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

--HG--
extra : rebase_source : 714de85d166e727a9f004c3321ae0c4352565d82
2016-04-21 20:22:46 -04:00
Wes Kocher 6521757101 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

--HG--
rename : layout/reftests/backgrounds/background-position-6b.html => layout/reftests/backgrounds/background-position-6.html
2016-04-29 14:47:43 -07:00
Markus Stange 5f2e22aaf2 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
***

--HG--
extra : rebase_source : 916519d7d6f603bb10721e01c9cc061976bc033e
2016-04-21 20:22:46 -04:00
Mats Palmgren 784d6b392f 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 d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Gabor Krizsanits 696b23001a Bug 1247420 - part1: removeContentState. r=smaug 2016-03-30 11:54:27 +02:00
Mats Palmgren 0524303c83 Bug 1253529 part 2 - [css-grid] Remove the 'grid-template' shorthand. r=dholbert 2016-03-08 23:03:26 +01:00
CJKu 27044084c1 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 0ecd5593cc 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 7c95c39734 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 5c37ed6ba0 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 e436478f26 Bug 1244049 - Part 2: Replace nsCSSPseudoElements::Type with CSSPseudoElementType. r=dbaron
Also, try to use forward declaraions for CSSPseudoElementType;

--HG--
extra : rebase_source : c00eb9753e8f618a33aa711538ac45c0132b353c
2016-02-17 21:37:00 +01:00
Boris Chiou 185a769719 Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
--HG--
extra : rebase_source : e53dd269e47fa97eb259ebd9295d012eacbdb612
2016-02-16 23:07:00 +01:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d381b4bca6 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 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
CJKu 577578571f Bug 686281 - Implement CSS mask style; r=dbaron. 2016-01-28 06:28:00 +01:00
Tom Tromey 98339c1437 Bug 1224121 - change getRelativeRuleLine to return 0 for line-less rules; r=heycam 2015-12-03 08:55:13 -07:00
Tom Tromey 718d4cfd73 Bug 1216234 - add inIDOMUtils.getCSSPseudoElementNames; r=heycam,pbrosset 2015-12-01 09:52:09 -07:00
L. David Baron 96383fc767 Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r=heycam
--HG--
extra : commitid : B2iM8wFeMUs
2015-11-19 18:09:07 -08:00
L. David Baron f4b9c949b7 Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r=heycam
--HG--
extra : commitid : 5YOv7qQkUeW
2015-11-19 18:08:57 -08:00
Cameron McCormack fd2fba0c73 Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron 2015-11-17 17:04:09 +11:00
L. David Baron bd9bbaa522 Bug 978833 patch 12 - Use the css::Declaration instead of the css::StyleRule as the matching rule. r=heycam
This is the key change in this patch series; it changes the object we
use for style data (currently nsIStyleRule) identity.  It allows
removing some hacks we have to deal with that for StyleRule, and avoids
having to write similar hacks for nsCSSKeyframeRule and nsCSSPageRule
(which are broken without this).

I confirmed locally that it is this patch that fixes both of the todo_is
mochitests, by building and testing with the patch queue through patch
11, and again through patch 12.

--HG--
extra : commitid : AzgBp6KfPhJ
2015-11-05 16:44:10 +08:00
Cameron McCormack 2f1046d287 Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Xidorn Quan a95c705ccf Bug 1069192 part 1 - Force users of nsCSSProps::IsEnabled() to pass in the enabled state. r=dbaron
--HG--
extra : source : a63fb100e63d26e35d09bdfc35e44be6c0ed1d6b
2015-10-03 11:12:09 +10:00
Nigel Babu d86528af5e Backed out 3 changesets (bug 1069192) for OS X debug M(oth) crashes
Backed out changeset e86111412050 (bug 1069192)
Backed out changeset a5f11c5c5bcb (bug 1069192)
Backed out changeset a4aaaac8f133 (bug 1069192)
2015-10-02 15:08:43 +05:30
Xidorn Quan bddc82fcb3 Bug 1069192 part 1 - Force users of nsCSSProps::IsEnabled() to pass in the enabled state. r=dbaron
--HG--
extra : source : a63fb100e63d26e35d09bdfc35e44be6c0ed1d6b
2015-10-02 11:01:54 +10:00
Tom Tromey c3e2a29d05 Bug 1202095 - re-use @imported style sheets from inIDOMUtils.parseStyleSheet. r=heycam 2015-09-18 07:27:00 +02:00
Tom Tromey 71a0434d49 Bug 1201136 - treat "currentColor" as a valid color. r=heycam 2015-09-02 11:53:00 +02:00
Tom Tromey 01fd372c45 Bug 1187409 - make CssPropertyIsShorthand handle CSS variables r=heycam
--HG--
extra : rebase_source : 9006fb95bd6d371367a74c9f687b46c4c9ddffa6
2015-08-19 14:48:55 -07:00
Wes Kocher 292ed85eba Merge m-c to inbound, a=merge 2015-08-17 17:15:24 -07:00
Gijs Kruitbosch ecccf6ff1a Bug 1157292 - include XBL stylesheets in the inspector's list of stylesheets, r=dholbert,heycam
--HG--
extra : commitid : FaWwCEWPkKA
extra : rebase_source : 4d4568f1c30cb8d062106f71099e21a3c33f25ab
2015-08-12 13:43:39 +01:00
Tom Tromey 131556a889 Bug 1013814 - add inIDOMUtils.getRelativeRuleLine; r=heycam,pbrosset 2015-08-17 15:19:21 -07:00
Tom Tromey 38f293ac40 Bug 1142206 - Let GetSubpropertiesForCSSProperty handle custom property. r=heycam, r=pbrosset 2015-07-20 16:25:00 -04:00
Masatoshi Kimura 52428897a6 Backed out changeset acb7eb7f5ad4 (bug 1176496) for web compat problems 2015-07-15 23:37:22 +09:00