Manish Goregaokar
16276b38cd
Bug 1341086 - Part 3: stylo: Add thread-safe version of nsStyleUtil::IsSignificantChild(); r=emilio
...
MozReview-Commit-ID: 3l8cNwDHKFl
--HG--
extra : rebase_source : af2ed1c345991c894d482193a1fb654bd6a7ba69
2017-03-16 14:10:22 -07:00
Boris Chiou
af4598f9ae
Bug 1248340 - Part 4: Implement Frames in the style system. r=dholbert
...
Use eCSSUnit_Function to store the frames timing function. Also, add one more
css keyword: frames.
The following changes are included in this:
1. Parser changes.
2. Serialization.
3. Computation in nsRuleNode.
4. Invalid and other values in property_database.js
MozReview-Commit-ID: 887QcXHQ2pU
--HG--
extra : rebase_source : ca0135380ea432cb69c4f36cf502d404e04999e5
2017-02-24 14:50:08 +08:00
Tom Tromey
d2667a2b27
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Daniel Holbert
b6f1645a45
Bug 1326457: Remove redundant check for eCSSKeyword_UNKNOWN at callsites to nsCSSProps::FindKeyword(). r=xidorn
...
nsCSSProps::FindKeyword() has always failed when passed eCSSKeyword_UNKNOWN,
but it didn't used to have a fast-path for this sentinel value -- it used to
walk the whole array before failing. So it used to make sense to have a
dedicated check for it at the callsites, to avoid an unnecessary array
traversal. But now, there's an early-return in FindKeyword() (or actually in
its helper, FindIndexOfKeyword()) which catches eCSSKeyword_UNKNOWN right away,
before it walks the array. So there's no benefit to having a dedicated check at
the callsites anymore.
MozReview-Commit-ID: FOX48YZMomd
--HG--
extra : rebase_source : 2309d5f3f15e3cad2e4ae5ebe14af1c6beb43ebc
2016-12-30 12:03:08 -08:00
Jonathan Kew
1c18c32f59
Bug 1321022 pt 4.2 - Fix up some nits in existing font-feature-settings code as per review comments on the new font-variation-settings code. r=dholbert
2016-12-03 12:18:39 +00:00
Jonathan Kew
cd6fcd068a
Bug 1321022 pt 4 - Implement CSS parsing of the font-variations-setting property, storing the value into nsFont. r=dholbert
2016-12-03 12:18:36 +00:00
Jonathan Kew
7ce761007c
Bug 1321512 - Fix serialization of font-feature-settings tags to properly escape quote and backslash characters. r=dholbert
2016-12-03 10:58:44 +00:00
Xidorn Quan
dc820f67ee
Bug 1307357 part 2 - Fix issues appear after adding file to unified source. r=heycam
...
MozReview-Commit-ID: 5FkisMn3LKq
--HG--
extra : source : 1f83f48485df328f516b95f0c72f190441959068
2016-11-23 10:26:20 +11:00
Christoph Kerschbaumer
c267f70f91
Bug 1299483 - CSP: Implement 'strict-dynamic', enforcement changes. r=dveditz,freddyb
2016-11-08 12:55:23 +01:00
tlin@mozilla.com
6ac132dfe9
Bug 1295084 Part 4 - Rename Position::PositionCoord to Position::Coord. r=dholbert
...
--HG--
extra : rebase_source : 1b8b7019640f2db91167880899438cac7a2c49cd
2016-08-25 09:59:51 +00:00
tlin@mozilla.com
54d89b5a5c
Bug 1295084 Part 3 - Move nsStyleImageLayers::Position to mozilla::Position. r=dholbert
...
--HG--
extra : rebase_source : 6684d08700f9d7fed9fc1572871a0250d43b74cf
2016-08-25 09:59:51 +00:00
Jonathan Chan
4b87f11bd9
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
--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc
1794619188
Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
...
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.
CLOSED TREE
--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Jonathan Chan
9c62a2c11c
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
--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Daisuke Akatsuka
4f153efd27
Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
...
MozReview-Commit-ID: Dhrco8madlz
--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka
92b6c55c8d
Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
...
MozReview-Commit-ID: HBukw3qjyrr
--HG--
extra : rebase_source : 53bdcefc66cffa92c438bb3be794e6537533461c
2016-07-27 10:12:43 +09:00
Bobby Holley
23e90f9834
Bug 1283620 - Hoist ValueIncludes into nsStyleUtil. r=mrbkap
2016-07-07 09:59:07 -07:00
CJKu
2d363d1b79
Bug 686281 - Implement nsStyleImageLayers; r=dbaron
2016-01-28 06:24:00 +01:00
Boris Zbarsky
f1705741f0
Bug 1230172. Update CSS.escape to never throw and instead replace U+0000 with U+FFFD, per recent spec change. r=dbaron
2016-01-05 15:05:23 -05:00
Wes Kocher
c708d0c57f
Backed out changeset b7cd1bc458a3 (bug 1230172) because something from this push turned browser_video_test.js permafail on mulet CLOSED TREE
...
--HG--
extra : commitid : C1U7fyE3XPN
2016-01-05 15:14:44 -08:00
Boris Zbarsky
3e14025d0a
Bug 1230172. Update CSS.escape to never throw and instead replace U+0000 with U+FFFD, per recent spec change. r=dbaron
2016-01-05 15:05:23 -05:00
Cameron McCormack
cdc57a2245
Bug 1198708 - Part 3: Serialize computed {transition,animation}-timing-function using their specified values. r=birtles
...
The CSS Transitions and Animations specs define the computed value of
a {transition,animation}-timing-function property as being the same as
the specified value, so we should expose the specific value we recorded
on nsTimingFunction in Part 1 through nsComputedDOMStyle.
2015-09-29 12:20:14 +10:00
Cameron McCormack
821896781c
Bug 1198708 - Part 2: Factor out computed nsTimingFunction serialization to public utility methods. r=birtles
2015-09-29 12:20:14 +10:00
Christoph Kerschbaumer
ac507e201c
Bug 1026520 - CSP: Inline report sending into allows - callsite updates (r=dveditz)
2015-09-17 22:34:34 -07:00
Boris Zbarsky
be50caa66c
Bug 1157279. Escaping CSS identifiers should use lowercase letters for hex digits, not uppercase ones. r=dbaron
2015-04-22 20:30:10 -04:00
Cameron McCormack
fe3694d846
Bug 1143537 - Part 3: Serialize unicode-range without leading zeroes. r=jdaggett
2015-03-17 18:15:42 +11:00
Andrea Marchesini
522d158529
Bug 1134280 - Get rid of Tag() - patch 2.12 - layout/style, layout/svg - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Daniel Holbert
a03d3e37d5
Bug 1093316 part 1: Backout changeset aece7f9f944c (i.e. backout bug 1032922 part 2), to reflect CSSWG removing "flex-basis: main-size" from the flexbox spec.
2014-11-25 11:28:15 -08:00
Daniel Holbert
6ea2fe785e
Bug 624647 part 0: Don't use ASSUME_DRAWING_RESTRICTED_TO_CONTENT_RECT flag if 'object-fit' and/or 'object-position' might make our drawing overflow. r=roc
2014-11-14 16:45:23 -08:00
Cameron McCormack
cbc918194a
Bug 1069761 - Move AppendSerializedFontSrc to nsStyleUtil. r=jdaggett
2014-09-22 10:32:58 +10:00
Daniel Holbert
abbc77f1fc
Bug 1032922 part 2: Rename flex-basis's "auto" keyword to "main-size" (but retain "flex:auto" as shorthand for "1 1 main-size"). r=heycam
2014-08-07 22:11:48 -07:00
Cameron McCormack
ecfcc4d944
Bug 1031153 - Move unicode-range descriptor serialization to nsStyleUtil. r=dbaron
2014-07-04 11:19:33 +10:00
John Daggett
d3a7f06bbb
Bug 280443 p4 - properly escape unquoted font family names. r=heycam
2014-06-06 15:09:24 +09:00
John Daggett
861e272110
Bug 280443 p2 - parse font family lists into fontlist structs. r=heycam
2014-06-06 15:09:23 +09:00
Birunthan Mohanathas
0e6f3a6562
Bug 869836 - Part 3: Use `Append('c')` instead of `AppendLiteral("c")`. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
19bebbc68d
Bug 869836 - Part 2: Use AppendLiteral instead of `Append(NS_LITERAL_STRING(...))`. r=ehsan
2014-05-22 06:48:50 +03:00
Boris Zbarsky
b1e3f060e4
Bug 1008719. CSS syntax got changed to allow identifiers starting with "--", so update our escaping code accordingly. r=dholbert
2014-05-15 10:26:53 -07:00
Ryan VanderMeulen
9e342ce37a
Revert to revision 63dfac3c9c87 due to mass bustage pile-ups that landed after it on a CLOSED TREE.
2014-05-16 12:29:37 -04:00
Boris Zbarsky
d854d7d9f0
Bug 1008719. CSS syntax got changed to allow identifiers starting with "--", so update our escaping code accordingly. r=dholbert
2014-05-15 10:26:53 -07:00
Srirakshith Betageri
67824e20dd
Bug 955860. Implement the CSS.escape API for escaping CSS identifiers from script. r=bzbarsky
2014-03-20 23:19:43 -04:00
Garrett Robinson
eabe1d0a0f
Bug 883975 - CSP 1.1 hash-source. r=sstamm, r=dholbert, r=mrbkap
2014-01-02 11:14:06 -08:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Jon Coppeard
5d2c44915e
Bug 932102 - Fix rooting hazard in nsStyleUtil::AppendAngleValue r=dbaron
2013-11-21 01:00:57 +00:00
Garrett Robinson
b40f532521
Bug 902654 - refactor CSP call sites for readability r=dholbert r=mrbkap
2013-11-11 14:25:55 -08:00
Garrett Robinson
1da990368c
Bug 855326 - CSP 1.1 nonce-source for scripts and styles r=mrbkap r=dholbert r=geekboy
2013-11-08 15:44:39 -08:00
Daniel Holbert
9a3437dd77
backout 57213b64023b (bug 855326) for build bustage in debug builds
...
CLOSED TREE
2013-11-08 11:22:36 -08:00
Garrett Robinson
5add685cdd
Bug 855326 - CSP 1.1 nonce-source for scripts and styles. r=mrbkap r=dholbert r=geekboy
2013-11-08 09:20:43 -08:00