Benoit Jacob
7f3cdabc47
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-06 11:38:17 -05: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
Cameron McCormack
4afd66d2e7
Bug 731271 - Part 4: Add ability for nsCSSValues to serialize themselves in their original syntactic form. r=dbaron
2013-09-16 09:35:49 +10:00
Cameron McCormack
da34406ae7
Bug 773296 - Part 27: Support 'unset' in CSS variables. r=dbaron
2013-12-12 13:09:47 +11:00
Cameron McCormack
1c1d2c9506
Bug 773296 - Part 23: Support variables in CSSStyleDelcaration methods. r=dbaron
...
This adds support for custom properties on the remainder of the
CSSStyleDeclaration methods.
A shorthand that was specified using a variable reference is serialized
to its originally specified value, rather than by concatenating the
serializations of its longhand components.
A shorthand that was not specified using a variable references but which
has a component longhand that was is serialized to the empty string.
2013-12-12 13:09:46 +11:00
Cameron McCormack
62a3eadf14
Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
...
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com >
This defines a CSSVariableDeclarations class that holds a set of
variable declarations. This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have). The variables are stored in a hash table. Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").
Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations. So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties. mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.
We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.
The changes to nsCSSParser are straightforward. Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration. We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-12 13:09:40 +11:00
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Daniel Holbert
3b42b8cf68
Bug 939905: Add support for CSS "flex-flow" shorthand property. r=heycam
2013-12-05 10:57:51 -08:00
Cameron McCormack
dda8384b91
Bug 842329 - Part 3: Serialize the "all" shorthand property as the empty string unless all components are inherit/initial/unset. r=bzbarsky
2013-10-04 04:49:20 +10:00
Cameron McCormack
32f1604090
Bug 921731 - Part 9: Serialize shorthands using "unset" like those containing "inherit" or "initial". r=bzbarsky
2013-10-04 04:49:19 +10:00
Ehsan Akhgari
1089e71462
Bug 916610 - Minimize the #includes in layout/style; r=roc
2013-09-15 21:06:52 -04:00
John Daggett
25dc392786
Bug 904263 - check pref settings more efficiently. r=dbaron
2013-08-19 13:49:49 +09:00
John Daggett
912515edd4
Bug 904263 - don't set disabled subproperties within font shorthand parsing. r=dbaron
2013-08-15 09:37:57 +09:00
Masayuki Nakano
90fdab154e
Bug 812995 Support 'blink' value at -moz-text-decoration-line and drop -moz-text-blink r=dbaron
2013-08-06 23:02:34 +09:00
Ms2ger
112d8c8556
Backout changeset f2ac3d57b445 for insufficient review.
2013-08-08 19:37:47 +02:00
Masayuki Nakano
c3e406d353
Bug 812995 Support 'blink' value at -moz-text-decoration-line and drop -moz-text-blink r=dbaron
2013-08-06 23:02:34 +09: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
John Daggett
d565a99a98
Bug 886691 - switch from references to pointers for values within GetValue. r=dbaron
2013-07-25 15:02:15 +09:00
John Daggett
477748c5df
Bug 886691 - make tests and serialization code sensitive to font features pref. r=dbaron
2013-07-25 15:01:41 +09:00
Birunthan Mohanathas
638d862256
Bug 887502 - Part 2: Refactor Declaration::GetValue for 'margin' and friends. r=dbaron
2013-07-02 08:11:21 -04:00
Birunthan Mohanathas
afbb59bc7a
Bug 887502 - Part 1: Coalesce corners rather than repeating when serializing specified values of 'border-radius'. r=dbaron
2013-07-02 08:10:43 -04:00
Ryan VanderMeulen
bc0ee57010
Backed out changesets 0047417b0635 and 5729545971af (bug 887502) for test failures.
2013-07-01 11:18:58 -04:00
Birunthan Mohanathas
e364503f2c
Bug 887502 - Part 2: Refactor Declaration::GetValue for 'margin' and friends. r=dbaron
2013-07-01 09:47:45 -04:00
Birunthan Mohanathas
dbdf213b12
Bug 887502 - Part 1: Coalesce corners rather than repeating when serializing specified values of 'border-radius'. r=dbaron
2013-07-01 09:47:27 -04:00
John Daggett
cd7bad430f
Bug 873222 - check unit-type of font-synthesis value before use. r=dbaron
2013-06-27 14:43:00 +09:00
Catalin Iacob
f88cdc0744
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
2013-06-23 14:03:39 +02:00
Daniel Holbert
a80d1a2bbd
Bug 864553 part 1: Remove ifdefs for MOZ_FLEXBOX and configure.in MOZ_FLEXBOX chunk. r=dbaron
2013-05-22 11:44:25 +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
4582dd6af1
Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review.
2013-05-19 20:23:19 +02:00
John Daggett
61b05b94d1
Bug 549861. Implement CSS parsing of font-variant-alternates. r=dbaron
2013-05-13 18:45:37 +09:00
John Daggett
bc5affcad7
Bug 549861. Parse simple font-variant subproperties. r=dbaron
2013-05-13 18:45:36 +09:00
L. David Baron
4e5882f5e8
Bug 570896: Allow separate background-origin and background-clip to be set in the background shorthand. r=bzbarsky
2013-03-07 17:59:32 -08:00
John Daggett
54261d1a2d
Bug 833624. Bump up size of int's in mOrder to allow more than 256 CSS properties. r=dbaron
2013-01-24 02:24:27 +09:00
Isaac Aggrey
990e90e88a
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
L. David Baron
aec0b2e067
Bug 774169, patch 3: Treat -moz-transform as a shorthand rather than an alias so the parsing function can know whether it is parsing a prefixed transform. r=bzbarsky
2012-09-18 11:37:14 -07:00
Anthony Ricaud
c788070e08
Bug 570326 - Add support for background-size in background shorthand property. r=dbaron
2012-09-16 20:20:15 -04:00
Boris Zbarsky
e66935618b
Bug 753517 part 3. Expose the API needed for Paris bindings on nsDOMCSSDeclaration and nsICSSDeclaration. r=dbaron,peterv
2012-08-23 21:08:08 -07:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
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 "*.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Boris Zbarsky
7cd2a35b7b
Bug 771594. Allow preference control over what CSS properties we parse. r=dbaron,dholbert
2012-07-13 19:59:05 -04:00
Daniel Holbert
3f1d242779
Bug 696253, patch 8: implement parsing/computation for CSS shorthand property 'flex'. r=dbaron
2012-07-06 17:06:23 -07:00
L. David Baron
40cf0b9c3a
Make the serialization of the 'border' shorthand fail when we have a 'border-image' subproperty or a '-moz-border-*-colors' property with a non-default value. (Bug 713643, patch 2) r=bzbarsky
2012-05-30 22:19:49 -07:00
L. David Baron
862641f67e
Serialize border-image shorthand to shortest form, with the exception that we'll always serialize 'border-image-source'. (Bug 713643, patch 1) r=bzbarsky
2012-05-30 22:19:49 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Patrick Wong
c9bcb02a6e
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Lazar Sumar
dab3e2b171
Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron
2012-02-24 21:23:14 -08:00
Zack Weinberg
cb5a4ee507
Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron
2012-02-23 08:19:00 -08:00
Lazar Sumar
9ce1964cd3
Bug 522607 - New css3-background background-position syntax. r=dbaron
2012-02-20 13:14:42 +13:00
Nicholas Nethercote
4762ea78a3
Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron.
2012-01-02 18:19:14 -08:00
William Chen
97a3dc759f
Bug 497995: Part 1 - Implement border-image revisions in latest css3-background spec. r=dbaron
2011-12-22 18:34:45 -05:00