Cameron McCormack
575cca4528
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
e4bad7f4aa
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
b3ae778a80
Bug 1026520 - CSP: Inline report sending into allows - callsite updates (r=dveditz)
2015-09-17 22:34:34 -07:00
Boris Zbarsky
43c8895dcf
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
e633424a52
Bug 1143537 - Part 3: Serialize unicode-range without leading zeroes. r=jdaggett
2015-03-17 18:15:42 +11:00
Andrea Marchesini
2ce3453b15
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
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Daniel Holbert
50490b2d65
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
56a69f5c83
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
1bb97cae82
Bug 1069761 - Move AppendSerializedFontSrc to nsStyleUtil. r=jdaggett
2014-09-22 10:32:58 +10:00
Daniel Holbert
14a5e3d758
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
08fbb3c674
Bug 1031153 - Move unicode-range descriptor serialization to nsStyleUtil. r=dbaron
2014-07-04 11:19:33 +10:00
John Daggett
dfa72b3398
Bug 280443 p4 - properly escape unquoted font family names. r=heycam
2014-06-06 15:09:24 +09:00
John Daggett
348e0cd17d
Bug 280443 p2 - parse font family lists into fontlist structs. r=heycam
2014-06-06 15:09:23 +09:00
Birunthan Mohanathas
9f41043f62
Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
1ebdb921a5
Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan
2014-05-22 06:48:50 +03:00
Boris Zbarsky
235d2f2063
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
be6ccfea53
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
29d23739e3
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
8a54a6f761
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
255c476a9c
Bug 883975 - CSP 1.1 hash-source. r=sstamm, r=dholbert, r=mrbkap
2014-01-02 11:14:06 -08:00
Ehsan Akhgari
68bfe70f09
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
1e34637f3a
Bug 932102 - Fix rooting hazard in nsStyleUtil::AppendAngleValue r=dbaron
2013-11-21 01:00:57 +00:00
Garrett Robinson
e88f208357
Bug 902654 - refactor CSP call sites for readability r=dholbert r=mrbkap
2013-11-11 14:25:55 -08:00
Garrett Robinson
e199359d3b
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
55f11eebd3
backout 57213b64023b (bug 855326) for build bustage in debug builds
...
CLOSED TREE
2013-11-08 11:22:36 -08:00
Garrett Robinson
b7dceb979f
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
Cameron McCormack
566bdc6572
Bug 918156 - Silence uninitialized variable warning in an unreachable branch of nsStyleUtil::ComputeFunctionalAlternates. r=jdaggett
2013-09-19 11:35:22 +10:00
Ehsan Akhgari
1089e71462
Bug 916610 - Minimize the #includes in layout/style; r=roc
2013-09-15 21:06:52 -04:00
Sid Stamm
a1bd9445fb
bug 836922 - support mulitiple CSP policies at the same time. r=jst,grobinson
2013-09-12 09:25:32 -07:00
Ehsan Akhgari
30bea3a588
Bug 913619 - Minimize the #includes in image/src; r=jrmuizel
...
This patch was generated by running include-what-you-use on image/src,
and then removing the #include statements suggested by that tool, either
replacing them with forward declarations of the used names in headers,
or dropping the ones that were completely unnecessary, and then adding
new #include statements in other places that were implicitly relying on
some of the removed #include statements.
2013-09-07 09:01:08 -04:00
Seth Fowler
2479b470ee
Bug 825771 (Part 1) - Add CSS support for the image-orientation property. r=dbaron
2013-08-28 15:39:06 -07:00
Ehsan Akhgari
1ab9c7bcb4
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
2013-07-18 13:59:53 -04:00
L. David Baron
a690f8de0a
Bug 511803 patch 2: Convert all eCSSUnit_Function storage to use nsCSSKeyword. This leads to one behavior change, which is case canonicalization for font-variant-alternates function values. r=bzbarsky
2013-05-23 09:08:29 +08:00
L. David Baron
bf1f7b637e
Bug 511803 patch 1: Fix serialization of font-variant-alternates values with more than one function. (Tested in patch 2.) r=jdaggett
2013-05-23 09:08:29 +08:00
John Daggett
0237527ef8
Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey
2013-05-20 11:59:20 +09:00
Ms2ger
071b72992d
Merge backout.
2013-05-19 20:26:58 +02:00
Ms2ger
4582dd6af1
Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review.
2013-05-19 20:23:19 +02:00
John Daggett
5a24d36a26
Bug 549861. Changes based on review comments for parsing of font-variant-alternates. r=dbaron
2013-05-13 18:45:38 +09:00
John Daggett
61b05b94d1
Bug 549861. Implement CSS parsing of font-variant-alternates. r=dbaron
2013-05-13 18:45:37 +09:00
Ian Melven
ca5b9f7eb8
Bug 763879 - implement inline stylesheet blocking for CSP (r=dbaron)
2012-08-30 10:58:24 -07:00
Ryan VanderMeulen
c5e83dc51e
Backed out 2 changesets (bug 763879, bug 842657) for landing with an r-. DONTBUILD
...
Backed out changeset 254c1ac4ab8b (bug 842657)
Backed out changeset 58a2011beeac (bug 763879)
2013-05-16 11:15:07 -04:00
Ian Melven
8daac8aa7a
Bug 763879 - implement inline stylesheet blocking for CSP (r=dbaron)
2012-08-30 10:58:24 -07:00
David Zbarsky
1c27c4d045
[Bug 847110] Fix up includes in layout/style r=dbaron
2013-03-02 19:31:48 -05:00
Cameron McCormack
d2bd541d5c
Bug 828805 - Implement SVG paint-order property. r=bz,roc
2013-01-13 10:27:53 +11:00
Zack Weinberg
1f6375c862
Bug 229827: escape unprintable characters in CSS parser diagnostics. r=dbaron
2012-11-16 21:53:38 -05:00
Ryan VanderMeulen
59c93fcd27
Backed out changesets b242651c3c1b (bug 229827), b36eaac9ecf8, and 40f38a8aa660 (bug 663291) for mochitest-3/4 failures.
...
CLOSED TREE
2012-11-16 16:59:38 -05:00
Zack Weinberg
627ac26ca3
Bug 229827: escape unprintable characters in CSS parser diagnostics. r=dbaron
2012-11-16 15:29:21 -05:00