Backed out changeset 9cc08c2f20be (bug 239460) for causing build bustage. CLOSED TREE
This commit is contained in:
@@ -15,9 +15,9 @@ typedef long nsCookiePolicy;
|
|||||||
|
|
||||||
[builtinclass, scriptable, uuid(adf0db5e-211e-45a3-be14-4486ac430a58)]
|
[builtinclass, scriptable, uuid(adf0db5e-211e-45a3-be14-4486ac430a58)]
|
||||||
interface nsICookie : nsISupports {
|
interface nsICookie : nsISupports {
|
||||||
const int32_t SAMESITE_NONE = 0;
|
const uint32_t SAMESITE_NONE = 0;
|
||||||
const int32_t SAMESITE_LAX = 1;
|
const uint32_t SAMESITE_LAX = 1;
|
||||||
const int32_t SAMESITE_STRICT = 2;
|
const uint32_t SAMESITE_STRICT = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the name of the cookie
|
* the name of the cookie
|
||||||
|
|||||||
@@ -495,16 +495,22 @@ def write_interface(iface, fd):
|
|||||||
record_name(methodNativeName(m))
|
record_name(methodNativeName(m))
|
||||||
|
|
||||||
def write_const_decls(g):
|
def write_const_decls(g):
|
||||||
|
fd.write(" enum {\n")
|
||||||
|
enums = []
|
||||||
for c in g:
|
for c in g:
|
||||||
printComments(fd, c.doccomments, " ")
|
printComments(fd, c.doccomments, " ")
|
||||||
fd.write(
|
basetype = c.basetype
|
||||||
" static constexpr %(type)s %(name)s = %(value)s;\n"
|
value = c.getValue()
|
||||||
|
enums.append(
|
||||||
|
" %(name)s = %(value)s%(signed)s"
|
||||||
% {
|
% {
|
||||||
"type": c.realtype.nativeType("in"),
|
|
||||||
"name": c.name,
|
"name": c.name,
|
||||||
"value": c.getValue(),
|
"value": value,
|
||||||
|
"signed": (not basetype.signed) and "U" or "",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
fd.write(",\n".join(enums))
|
||||||
|
fd.write("\n };\n\n")
|
||||||
|
|
||||||
def write_cenum_decl(b):
|
def write_cenum_decl(b):
|
||||||
fd.write(" enum %s : uint%d_t {\n" % (b.basename, b.width))
|
fd.write(" enum %s : uint%d_t {\n" % (b.basename, b.width))
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ interface nsIXULRuntime : nsISupports
|
|||||||
* The current e10s-multi experiment number. Set dom.ipc.multiOptOut to (at
|
* The current e10s-multi experiment number. Set dom.ipc.multiOptOut to (at
|
||||||
* least) this to disable it until the next experiment.
|
* least) this to disable it until the next experiment.
|
||||||
*/
|
*/
|
||||||
const int32_t E10S_MULTI_EXPERIMENT = 1;
|
const uint32_t E10S_MULTI_EXPERIMENT = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, the accessibility service is running.
|
* If true, the accessibility service is running.
|
||||||
|
|||||||
@@ -1465,10 +1465,8 @@ bool AppWindow::UpdateWindowStateFromMiscXULAttributes() {
|
|||||||
if (!stateString.IsEmpty()) {
|
if (!stateString.IsEmpty()) {
|
||||||
nsresult errorCode;
|
nsresult errorCode;
|
||||||
int32_t zLevel = stateString.ToInteger(&errorCode);
|
int32_t zLevel = stateString.ToInteger(&errorCode);
|
||||||
if (NS_SUCCEEDED(errorCode) && zLevel >= int32_t(lowestZ) &&
|
if (NS_SUCCEEDED(errorCode) && zLevel >= lowestZ && zLevel <= highestZ)
|
||||||
zLevel <= int32_t(highestZ)) {
|
|
||||||
SetZLevel(zLevel);
|
SetZLevel(zLevel);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return gotState;
|
return gotState;
|
||||||
|
|||||||
Reference in New Issue
Block a user