Ehsan Akhgari
|
2824b29025
|
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])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
|
2013-07-18 13:59:53 -04:00 |
John Daggett
|
e96b5011ab
|
Bug 857142 - change name and switch to grayscale value. r=dbaron
|
2013-07-30 05:01:14 +09:00 |
John Daggett
|
8eb7f1edcc
|
Bug 857142 - implement -moz-font-smoothing. r=dbaron
|
2013-07-30 05:00:41 +09:00 |
Simon Sapin
|
4d054e1c1d
|
Bug 483446 - CSS3 'background-attachment: local' support. r=roc
|
2013-07-23 09:22:58 -04:00 |
Rick Eyre
|
1255871053
|
Bug 772321 - Implement CSS parsing of writing-mode r=dbaron
|
2013-05-28 12:00:49 -04:00 |
Michael Harrison
|
ec8a2ad3b6
|
Bug 772153 - Add support for unprefixed cursor:zoom-in/out. r=bz
|
2013-06-03 08:49:38 -04:00 |
Daniel Holbert
|
9ed3dd5f4a
|
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
|
0eae803e8f
|
Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey
|
2013-05-20 11:59:20 +09:00 |
Ms2ger
|
7786ea6954
|
Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review.
|
2013-05-19 20:23:19 +02:00 |
John Daggett
|
00be04b30a
|
Bug 549861. Alias unprefixed versions of font-feature-settings and font-language-override. r=dbaron
|
2013-05-13 18:45:38 +09:00 |
John Daggett
|
6f990b3fc6
|
Bug 549861. Implement CSS parsing of font-variant-alternates. r=dbaron
|
2013-05-13 18:45:37 +09:00 |
John Daggett
|
fb6fb8df81
|
Bug 549861. Parse simple font-variant subproperties. r=dbaron
|
2013-05-13 18:45:36 +09:00 |
Cameron McCormack
|
10e5ff17b2
|
Bug 856879 - Remove constructor arguments argument from style struct macros. r=dbaron
|
2013-04-02 12:45:48 +11:00 |
Jonathan Watt
|
ecfd1c5f3e
|
Bug 855301 - Add support for native theming of <input type=range> on Linux. r=roc
|
2013-03-28 20:25:05 +00:00 |
L. David Baron
|
93f4ab7a9a
|
Bug 849657 patch 1: Expose CSS_PROP_PUBLIC_OR_PRIVATE macro to users of nsCSSPropList.h rather than CSS_PROP_DOMPROP_PREFIXED, so that we can avoid 'CssFloat' spreading even further. r=bzbarsky
|
2013-03-25 09:24:21 -07:00 |
Jonathan Watt
|
392e922a53
|
Bug 846883 - Add support for native theming of <input type=range> on OS X. r=roc
|
2013-03-16 05:40:15 +00:00 |
L. David Baron
|
46a0a82458
|
Make gAliases be just an array of ids. (Bug 849656, patch 4) r=bzbarsky
|
2013-03-13 09:58:39 -07:00 |
L. David Baron
|
62da42985e
|
Move enabled state for aliases from gAliases to gPropertyEnabled. (Bug 849656, patch 3) r=bzbarsky
|
2013-03-13 09:58:39 -07:00 |
L. David Baron
|
5bd7a451b4
|
Move names for aliases from gAliases into kCSSRawProperties. (Bug 849656, patch 2) r=bzbarsky
|
2013-03-13 09:58:39 -07:00 |
L. David Baron
|
9e263c0408
|
Bug 840367: Fix misnaming of keyword IDs in nsCSSKeywordList.h. r=heycam
|
2013-02-13 11:53:56 -08:00 |
Jonathan Watt
|
467851b06c
|
Bug 835883 - Give the -moz-orient property an 'auto' value, and make that its initial value. r=dholbert.
|
2013-02-02 19:13:22 +01:00 |
Chris Peterson
|
f644840333
|
Bug 816298 - Part 1: Allow child elements to override -moz-user-select:none. r=ehsan
--HG--
extra : rebase_source : f4e08713be0691c25b22510977c978088655ec8b
|
2013-01-08 16:33:17 -08:00 |
Ehsan Akhgari
|
56e1e4925d
|
Backed out changeset 5af4c6bd5104 (bug 827075) because it is no longer necessary
|
2013-01-14 16:21:54 -05:00 |
Ehsan Akhgari
|
d807a8997a
|
Bug 827075 - Implement the -moz-menubar color and make it return the correct background color on gtk; r=roc
|
2013-01-05 23:07:27 -05:00 |
Cameron McCormack
|
154f38b92a
|
Bug 793617 - Implement mask-type property. r=dbaron,longsonr
|
2012-12-21 11:15:22 +11:00 |
Jonathan Kew
|
db6979f76c
|
bug 774560 pt 2 - implement text-transform:full-width. r=smontagu
|
2012-11-09 09:43:48 +00:00 |
Daniel Holbert
|
f6b7d73947
|
Bug 801098: Unprefix flexbox properties & keywords (still preffed off by default). r=dbaron
|
2012-10-15 12:42:43 -07:00 |
Nathan Froyd
|
413535eb4a
|
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
|
2012-10-01 20:38:21 -04:00 |
Daniel Holbert
|
ebaf07fb9a
|
Bug 796212 part 2: Make pref "layout.css.flexbox.enabled" control whether -moz-flex and -moz-inline-flex are recognized as valid values for "display" property. r=bz
|
2012-10-02 22:04:50 -07:00 |
Ehsan Akhgari
|
bd2885b68c
|
Backout changeset 9e38c5518605, fc59bd8d49ba, d0ba1abde985, and acf91f25f228 (bugs 796119, 796279, and 797106) because of broken reftests on 64-bit platforms
|
2012-10-02 23:16:36 -04:00 |
Nathan Froyd
|
d229c75d1c
|
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
|
2012-10-01 20:38:21 -04:00 |
L. David Baron
|
c3051f8b6a
|
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 |
Cameron McCormack
|
0306878c88
|
Bug 655877 - Part 23a: Add white-space:-moz-pre-discard-newlines value with white space collapsing behavior like SVG's xml:space="preserve". r=roc,dbaron
|
2012-09-07 15:42:19 +10:00 |
Edwin Flores
|
3c306b446c
|
Bug 719286 - Add support for -moz-objectValue keyword to CSS parser for SVG glyphs r=dbaron
|
2012-09-06 16:58:47 +12:00 |
Edwin Flores
|
f5a2675bcf
|
Bug 719286 - Add support for -moz-objectFillOpacity and -moz-objectStrokeOpacity to CSS parser for SVG glyphs r=dbaron
|
2012-09-06 16:58:46 +12:00 |
Edwin Flores
|
4e81980066
|
Bug 719286 - Add support for objectfill and objectstroke values to CSS parser r=dbaron
|
2012-09-06 16:58:46 +12:00 |
Randell Jesup
|
65539ef89c
|
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
|
2012-09-01 22:35:17 -04:00 |
Ehsan Akhgari
|
e368dc9c85
|
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 |
Simon Montagu
|
5d272daa1b
|
Implement the new CSS property value unicode-bidi: isolate-override. Bug 774335, r=dbaron
|
2012-08-07 01:42:46 -07:00 |
Scott Johnson
|
63993f05d9
|
Bug 764567: Implement column-fill part of CSS3 multicol spec, now with regression fixes [r=roc].
|
2012-07-31 11:21:19 -05:00 |
Aryeh Gregor
|
d0ad5a7d0c
|
Bug 777292 part 2 - Change all nsnull to nullptr
|
2012-07-30 17:20:58 +03:00 |
Boris Zbarsky
|
496f1a1325
|
Bug 771594. Allow preference control over what CSS properties we parse. r=dbaron,dholbert
|
2012-07-13 19:59:05 -04:00 |
Masatoshi Kimura
|
2a19870d92
|
Bug 752187 - Part 9: Implement unprefixed radial-gradient parsing. r=dbaron
|
2012-07-07 10:27:08 -04:00 |
Daniel Holbert
|
7321212d1b
|
Bug 696253, patch 8: implement parsing/computation for CSS shorthand property 'flex'. r=dbaron
|
2012-07-06 17:06:23 -07:00 |
Daniel Holbert
|
0dd40b90f7
|
Bug 696253, patch 5: implement parsing/computation for CSS property 'align-self'. r=dbaron
|
2012-07-06 17:06:21 -07:00 |
Daniel Holbert
|
85e8349a15
|
Bug 696253, patch 4: implement parsing/computation for CSS property 'align-items'. r=dbaron
|
2012-07-06 17:06:21 -07:00 |
Daniel Holbert
|
9e077e40c9
|
Bug 696253, patch 3: implement parsing/computation for CSS property 'flex-direction'. r=dbaron
|
2012-07-06 17:06:20 -07:00 |
Daniel Holbert
|
e193caf93a
|
Bug 696253, patch 1: implement parsing/computation for CSS property 'justify-content'. r=dbaron
|
2012-07-06 17:06:19 -07:00 |
Daniel Holbert
|
0432772643
|
Bug 666041 patch 2: Add "-moz-flex" & "-moz-inline-flex" values for "display" property. r=bz
|
2012-06-26 15:11:38 -07:00 |
L. David Baron
|
b118cfe2c6
|
Implement new values of animation-direction. (Bug 655920) r=bzbarsky
|
2012-06-21 11:44:34 -07:00 |