mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Backout 67d84be0cc83 (bug 820544) for bustage
This commit is contained in:
parent
7e1a7745ab
commit
fbf6fab8e8
@ -191,15 +191,15 @@ nsDOMMultipartFile::InitBlob(JSContext* aCx,
|
||||
if (!d.Init(aCx, nullptr, aArgv[1])) {
|
||||
return NS_ERROR_TYPE_ERR;
|
||||
}
|
||||
mContentType = d.mType;
|
||||
nativeEOL = d.mEndings == EndingTypesValues::Native;
|
||||
mContentType = d.type;
|
||||
nativeEOL = d.endings == EndingTypesValues::Native;
|
||||
} else {
|
||||
BlobPropertyBagWorkers d;
|
||||
if (!d.Init(aCx, nullptr, aArgv[1])) {
|
||||
return NS_ERROR_TYPE_ERR;
|
||||
}
|
||||
mContentType = d.mType;
|
||||
nativeEOL = d.mEndings == EndingTypesValues::Native;
|
||||
mContentType = d.type;
|
||||
nativeEOL = d.endings == EndingTypesValues::Native;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ public:
|
||||
|
||||
nsRefPtr<nsXMLHttpRequest> req = new nsXMLHttpRequest();
|
||||
req->Construct(principal->GetPrincipal(), window);
|
||||
req->InitParameters(aParams.mMozAnon, aParams.mMozSystem);
|
||||
req->InitParameters(aParams.mozAnon, aParams.mozSystem);
|
||||
return req.forget();
|
||||
}
|
||||
|
||||
|
@ -896,12 +896,12 @@ WebGLContext::GetContextAttributes(Nullable<dom::WebGLContextAttributesInitializ
|
||||
dom::WebGLContextAttributes& result = retval.SetValue();
|
||||
|
||||
gl::ContextFormat cf = gl->ActualFormat();
|
||||
result.mAlpha = cf.alpha > 0;
|
||||
result.mDepth = cf.depth > 0;
|
||||
result.mStencil = cf.stencil > 0;
|
||||
result.mAntialias = cf.samples > 1;
|
||||
result.mPremultipliedAlpha = mOptions.premultipliedAlpha;
|
||||
result.mPreserveDrawingBuffer = mOptions.preserveDrawingBuffer;
|
||||
result.alpha = cf.alpha > 0;
|
||||
result.depth = cf.depth > 0;
|
||||
result.stencil = cf.stencil > 0;
|
||||
result.antialias = cf.samples > 1;
|
||||
result.premultipliedAlpha = mOptions.premultipliedAlpha;
|
||||
result.preserveDrawingBuffer = mOptions.preserveDrawingBuffer;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -6385,8 +6385,7 @@ class CGDictionary(CGThing):
|
||||
else:
|
||||
inheritance = ""
|
||||
memberDecls = [" %s %s;" %
|
||||
(self.getMemberType(m),
|
||||
self.makeMemberName(m[0].identifier.name))
|
||||
(self.getMemberType(m), m[0].identifier.name)
|
||||
for m in self.memberInfo]
|
||||
|
||||
return (string.Template(
|
||||
@ -6531,10 +6530,6 @@ class CGDictionary(CGThing):
|
||||
def makeClassName(self, dictionary):
|
||||
return self.makeDictionaryName(dictionary, self.workers)
|
||||
|
||||
@staticmethod
|
||||
def makeMemberName(name):
|
||||
return "m" + name[0].upper() + name[1:]
|
||||
|
||||
def getMemberType(self, memberInfo):
|
||||
(member, (templateBody, declType,
|
||||
holderType, dealWithOptional)) = memberInfo
|
||||
@ -6549,7 +6544,14 @@ class CGDictionary(CGThing):
|
||||
holderType, dealWithOptional)) = memberInfo
|
||||
replacements = { "val": "temp",
|
||||
"valPtr": "&temp",
|
||||
"declName": self.makeMemberName(member.identifier.name),
|
||||
# Use this->%s to refer to members, because we don't
|
||||
# control the member names and want to make sure we're
|
||||
# talking about the member, not some local that
|
||||
# shadows the member. Another option would be to move
|
||||
# the guts of init to a static method which is passed
|
||||
# an explicit reference to our dictionary object, so
|
||||
# we couldn't screw this up even if we wanted to....
|
||||
"declName": ("(this->%s)" % member.identifier.name),
|
||||
# We need a holder name for external interfaces, but
|
||||
# it's scoped down to the conversion so we can just use
|
||||
# anything we want.
|
||||
@ -6577,7 +6579,7 @@ class CGDictionary(CGThing):
|
||||
propId)
|
||||
|
||||
conversionReplacements = {
|
||||
"prop": self.makeMemberName(member.identifier.name),
|
||||
"prop": "(this->%s)" % member.identifier.name,
|
||||
"convert": string.Template(templateBody).substitute(replacements),
|
||||
"propCheck": propCheck,
|
||||
"propGet": propGet
|
||||
@ -6614,7 +6616,14 @@ class CGDictionary(CGThing):
|
||||
def getMemberDefinition(self, memberInfo):
|
||||
member = memberInfo[0]
|
||||
declType = memberInfo[1][1]
|
||||
memberLoc = self.makeMemberName(member.identifier.name)
|
||||
# Use this->%s to refer to members, because we don't control
|
||||
# the member names and want to make sure we're talking about
|
||||
# the member, not some local that shadows the member. Another
|
||||
# option would be to move the guts of init to a static method
|
||||
# which is passed an explicit reference to our dictionary
|
||||
# object, so we couldn't screw this up even if we wanted
|
||||
# to....
|
||||
memberLoc = "(this->%s)" % member.identifier.name
|
||||
if member.defaultValue:
|
||||
memberData = memberLoc
|
||||
else:
|
||||
|
@ -507,7 +507,6 @@ dictionary Dict : ParentDict {
|
||||
TestEnum otherEnum = "b";
|
||||
DOMString otherStr = "def";
|
||||
DOMString? yetAnotherStr = null;
|
||||
DOMString template;
|
||||
};
|
||||
|
||||
dictionary ParentDict : GrandparentDict {
|
||||
|
@ -31,7 +31,7 @@ TextDecoder::Init(const nsAString& aEncoding,
|
||||
// If the constructor is called with an options argument,
|
||||
// and the fatal property of the dictionary is set,
|
||||
// set the internal fatal flag of the decoder object.
|
||||
mFatal = aFatal.mFatal;
|
||||
mFatal = aFatal.fatal;
|
||||
|
||||
// Create a decoder object for mEncoding.
|
||||
nsCOMPtr<nsICharsetConverterManager> ccm =
|
||||
@ -94,7 +94,7 @@ TextDecoder::Decode(const ArrayBufferView* aView,
|
||||
|
||||
// If the internal streaming flag of the decoder object is not set,
|
||||
// then reset the encoding algorithm state to the default values
|
||||
if (!aOptions.mStream) {
|
||||
if (!aOptions.stream) {
|
||||
mDecoder->Reset();
|
||||
if (rv == NS_OK_UDEC_MOREINPUT) {
|
||||
if (mFatal) {
|
||||
|
@ -77,7 +77,7 @@ TextEncoder::Encode(JSContext* aCx,
|
||||
|
||||
// If the internal streaming flag is not set, then reset
|
||||
// the encoding algorithm state to the default values for encoding.
|
||||
if (!aOptions.mStream) {
|
||||
if (!aOptions.stream) {
|
||||
int32_t finishLen = maxLen - dstLen;
|
||||
rv = mEncoder->Finish(buf + dstLen, &finishLen);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
@ -167,7 +167,7 @@ MobileConnection::Observe(nsISupports* aSubject,
|
||||
NS_ENSURE_TRUE(ok, NS_ERROR_FAILURE);
|
||||
|
||||
nsRefPtr<USSDReceivedEvent> event =
|
||||
USSDReceivedEvent::Create(dict.mMessage, dict.mSessionEnded);
|
||||
USSDReceivedEvent::Create(dict.message, dict.sessionEnded);
|
||||
NS_ASSERTION(event, "This should never fail!");
|
||||
|
||||
nsresult rv = event->Dispatch(ToIDOMEventTarget(), USSDRECEIVED_EVENTNAME);
|
||||
|
@ -1503,8 +1503,8 @@ XMLHttpRequest::Constructor(JSContext* aCx,
|
||||
}
|
||||
|
||||
if (workerPrivate->XHRParamsAllowed()) {
|
||||
xhr->mMozAnon = aParams.mMozAnon;
|
||||
xhr->mMozSystem = aParams.mMozSystem;
|
||||
xhr->mMozAnon = aParams.mozAnon;
|
||||
xhr->mMozSystem = aParams.mozSystem;
|
||||
}
|
||||
|
||||
xhr->mJSObject = xhr->GetJSObject();
|
||||
|
Loading…
Reference in New Issue
Block a user