Ehsan Akhgari
|
6ada2899b2
|
Bug 916610 - Minimize the #includes in layout/style; r=roc
|
2013-09-15 21:06:52 -04:00 |
|
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 |
|
Corey Ford
|
44dbcc4d6c
|
Bug 883987 - Don't allow BAD_STRING or BAD_URL tokens in @supports conditions. r=dbaron
|
2013-06-27 17:03:33 -07:00 |
|
Corey Ford
|
cb2184b31c
|
Bug 829816 - Treat \0 and U+0000 in CSS style sheets as U+FFFD. r=dbaron
|
2013-06-26 15:17:14 -07:00 |
|
Cameron McCormack
|
7fd2090cfd
|
Bug 880150 - Treat \<EOF> as U+FFFD outside a string, and drop it inside a string. r=dbaron
|
2013-06-10 17:04:27 +10:00 |
|
David Zbarsky
|
3250bd906e
|
[Bug 847110] Fix up includes in layout/style r=dbaron
|
2013-03-02 19:31:48 -05:00 |
|
Zack Weinberg
|
dd8331da7a
|
Bug 842134: fix serialization of unquoted url() in CSS. r=heycam
|
2013-02-17 22:03:55 -05:00 |
|
Zack Weinberg
|
3f37059b40
|
Bug 543151, part A4: unify the inner text-scanning loops used by GatherIdent, ScanString, NextURL. r=heycam
|
2013-02-16 18:27:53 -05:00 |
|
Zack Weinberg
|
4ad41ccb2d
|
Bug 543151, part A3: convert the scanner to use peek/advance. r=heycam
|
2013-02-16 18:27:53 -05:00 |
|
Zack Weinberg
|
dd23fa075d
|
Bug 543151, part A2: Introduce the new peek/advance API and reimplement the old read/pushback API on top of it. r=heycam
|
2013-02-16 18:27:53 -05:00 |
|
Zack Weinberg
|
7dc7416d1e
|
Bug 543151, part A1: Preliminary cleanups to the scanner/parser interface and the organization of nsCSSScanner.cpp. r=heycam
|
2013-02-16 18:27:53 -05:00 |
|
L. David Baron
|
139be3374b
|
Bug 836530: Make all non-ASCII characters be CSS identifier characters. r=bzbarsky
This is as was proposed in
http://lists.w3.org/Archives/Public/www-style/2013Jan/0394.html
and resolved in the CSS Working Group's teleconference on 2013-01-30.
This removes a difference between Gecko and other browsers.
|
2013-01-31 20:09:47 -08:00 |
|
Mats Palmgren
|
b7ae90666d
|
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
|
2013-01-15 13:22:03 +01:00 |
|
Zack Weinberg
|
4e8868dbf4
|
Bug 413958: report the text of the offending line in CSS error messages. r=dbaron
|
2013-01-11 12:27:43 -05:00 |
|
Zack Weinberg
|
f6d51ce9b0
|
Bug 229827: escape unprintable characters in CSS parser diagnostics. r=dbaron
|
2012-11-16 21:53:38 -05:00 |
|
Ryan VanderMeulen
|
8a64b526bc
|
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
|
04aa42be23
|
Bug 229827: escape unprintable characters in CSS parser diagnostics. r=dbaron
--HG--
extra : rebase_source : 9298095c2cd7669b5ca1a07cd5378a852c4a7f36
|
2012-11-16 15:29:21 -05:00 |
|
Zack Weinberg
|
b63ce42eb9
|
Bug 455839: simplify the CSS error reporting API. r=dbaron
|
2012-11-15 11:36:15 -05:00 |
|
Zack Weinberg
|
662e668d9f
|
Bug 516091: Split CSS error reporting to its own file and class. Allows CSS scanner to become a stack object. r=dbaron
|
2012-11-15 11:36:15 -05:00 |
|
Jacek Szpot
|
761b11160f
|
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
|
2012-10-26 15:32:10 +02:00 |
|
Seth Fowler
|
15aee59cde
|
Bug 786108 - Cache UTF-16 version of URI to prevent repeated conversions in the CSS scanner, and free the cache after a short time. r=bz
|
2012-10-03 15:28:57 -07:00 |
|
Ed Morley
|
d3c2c6f0a2
|
Backout ec0dcd401a3f (bug 786108) for crashes
|
2012-09-28 22:04:56 +01:00 |
|
Seth Fowler
|
c8791ccf26
|
Bug 786108 - Cache UTF-16 version of URI to prevent repeated conversions in the CSS scanner, and free the cache after a short time. r=bz
|
2012-09-28 09:56:47 -07:00 |
|
Isaac Aggrey
|
481e7dfb0b
|
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
|
2012-09-28 01:57:33 -05:00 |
|
Mats Palmgren
|
6eaf6d0d2b
|
Bug 788836 - Simplify @-keyword parsing by letting ParseAtKeyword deal with everthing after the @. Make it pass the first char to GatherIdent so that it returns false for a bad escape sequence at the start. r=dbaron
|
2012-09-12 00:20:52 +02:00 |
|
Daniel Holbert
|
1dc8cb22b6
|
Bug 789382: Change nsIScriptError methods init() and initWithWindowID() to take nsAString, rather than wchar / PRUnichar*. r=bz sr=bsmedberg
|
2012-09-09 16:29:12 -07: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 |
|
Aryeh Gregor
|
719dcb2097
|
Bug 782252 - Change named constants to correct types; r=ehsan
|
2012-08-07 18:11:35 +03:00 |
|
Cameron McCormack
|
1528758ac5
|
Bug 649740 - Implement @supports. r=dbaron,bz
|
2012-08-02 10:32:12 +10:00 |
|
Aryeh Gregor
|
d0ad5a7d0c
|
Bug 777292 part 2 - Change all nsnull to nullptr
|
2012-07-30 17:20:58 +03:00 |
|
Gervase Markham
|
82ff7027aa
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Kang-Hao (Kenny) Lu
|
16b937e48c
|
Bug 752230 - Disallow control characters above 0x7e in CSS unquoted url() tokenization. r=dbaron
|
2012-05-14 19:01:05 -04:00 |
|
Jacob Holzinger
|
6a62cb6a9b
|
Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
|
2012-03-08 18:22:57 -08:00 |
|
Zack Weinberg
|
f4fb4a1991
|
Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron
|
2012-02-23 08:19:00 -08:00 |
|
aceman
|
002cb306a6
|
Bug 711721 - merge nsIScriptError and nsIScriptError2 interfaces; r=neil, sr=bzbarsky
|
2011-12-21 16:51:29 -05:00 |
|
Zack Weinberg
|
954dd90cef
|
Bug 659963: consistently use infallible malloc in the CSS parser. r=dbaron
|
2011-05-28 15:38:48 -07:00 |
|
Zack Weinberg
|
a692848510
|
Bug 543151 part 2: Remove the special (but inconsistent with the error console) handling of hard tabs; small tidiness tweaks. r=dbaron
|
2011-05-19 15:44:14 -07:00 |
|
Zack Weinberg
|
ac323d6904
|
Bug 543151 part 1: Remove stream-processing code from nsCSSScanner.cpp. r=dbaron
|
2011-05-18 10:33:16 -07:00 |
|
Ehsan Akhgari
|
92064e6d3f
|
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
|
2011-10-17 10:59:28 -04:00 |
|
Jeff Walden
|
b5e57820bf
|
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
|
2011-10-10 22:50:08 -07:00 |
|
Jeff Walden
|
d0532c3e95
|
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail
|
2011-10-12 12:21:53 -07:00 |
|
Jeff Walden
|
0f30b277bf
|
Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
|
2011-10-10 22:50:08 -07:00 |
|
Michael Wu
|
d2b70213ac
|
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
|
2011-09-28 23:19:26 -07:00 |
|
Mihai Sucan
|
47eca82a8c
|
Bug 670896 - Add inner window ID and timestamp to nsIScriptError2; r=bzbarsky
|
2011-08-24 23:44:35 +03:00 |
|
Masayuki Nakano
|
4a5030c91a
|
Bug 660121 Remove all pref related methods from nsContentUtils r=roc
|
2011-05-29 08:42:57 +09:00 |
|
Masayuki Nakano
|
caee4cc73f
|
Bug 659533 Replace nsContentUtils::GetBoolPref() with Preferences::GetBool() r=roc
|
2011-05-25 15:31:59 +09:00 |
|
L. David Baron
|
85a254af54
|
Only allow escaped newlines inside strings (which includes url() tokens that contain strings). (Bug 384672, patch 4) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
|
L. David Baron
|
18e5edff9c
|
Allow ParseAndAppendEscape to fail when the stream does not contain an escape, and make callers handle this failure appropriately. This changes our behavior when backslash immediately precedes end-of-stream. (Bug 384672, patch 3) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
|
L. David Baron
|
87048f5536
|
Handle failure of GatherIdent, which can (starting with the next patch) fail when the character sequence is not an identifier. Additionally, change the tokenization of a hash (#) followed by a non-name character or EOF to tokenize as DELIM (eCSSToken_Symbol) rather than as eCSSToken_Hash. This only changes the behavior in the EOF case, because the only caller (color parsing) that accepts eCSSToken_Hash (rather than only eCSSToken_ID) checks the length. (Bug 384672, patch 2) r=bzbarsky
|
2011-05-03 13:19:19 -07:00 |
|
L. David Baron
|
9ca8fbddbc
|
Pass whether we're in a string to ParseAndAppendEscape. (Bug 384672, patch 1) r=bzbarsky
This passes true for string tokens and for url() tokens containing
string, since that is what CSS 2.1 chapter 4's tokenization suggests.
|
2011-05-03 13:19:18 -07:00 |
|