mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 16:47:29 +09:00
Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146 https://github.com/MoonchildProductions/Pale-Moon/pull/1400
This commit is contained in:
parent
b56d147095
commit
9ab20590c6
5 changed files with 10 additions and 10 deletions
|
|
@ -77,7 +77,8 @@
|
|||
}
|
||||
},
|
||||
word: function(re) {
|
||||
var word = "", ch, re = re || /[\w$]/;
|
||||
var word = "", ch;
|
||||
re = re || /[\w$]/;
|
||||
while ((ch = this.spec.charAt(this.pos)) && re.test(ch)) { word += ch; ++this.pos; }
|
||||
return word;
|
||||
},
|
||||
|
|
@ -187,7 +188,7 @@
|
|||
if (top && this.forceNew) return new infer.Obj(base);
|
||||
return infer.getInstance(base);
|
||||
} else if (this.eat(":")) {
|
||||
var name = this.word(/[\w$\.]/)
|
||||
name = this.word(/[\w$\.]/)
|
||||
return infer.getSymbol(name)
|
||||
} else if (comp && this.eat("!")) {
|
||||
var arg = this.word(/\d/);
|
||||
|
|
|
|||
|
|
@ -6653,8 +6653,9 @@ nsLayoutUtils::DrawSingleImage(gfxContext& aContext,
|
|||
nscoord appUnitsPerCSSPixel = nsDeviceContext::AppUnitsPerCSSPixel();
|
||||
CSSIntSize pixelImageSize(ComputeSizeForDrawingWithFallback(aImage, aDest.Size()));
|
||||
if (pixelImageSize.width < 1 || pixelImageSize.height < 1) {
|
||||
NS_WARNING("Image width or height is non-positive");
|
||||
return DrawResult::TEMPORARY_ERROR;
|
||||
NS_ASSERTION(pixelImageSize.width >= 0 && pixelImageSize.height >= 0,
|
||||
"Image width or height is negative");
|
||||
return DrawResult::SUCCESS; // no point in drawing a zero size image
|
||||
}
|
||||
|
||||
nsSize imageSize(CSSPixel::ToAppUnits(pixelImageSize));
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ var Client = Class({
|
|||
.then(this.onReady.bind(this, this.root), this.onFail);
|
||||
} else {
|
||||
var actor = this.get(packet.from) || this.root;
|
||||
var event = actor.events[packet.type];
|
||||
event = actor.events[packet.type];
|
||||
if (event) {
|
||||
var message = new MessageEvent(packet.type, {
|
||||
data: event.read(packet)
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
module.metadata = {
|
||||
"stability": "experimental"
|
||||
};
|
||||
|
||||
"use strict";
|
||||
|
||||
const { Cu } = require("chrome");
|
||||
|
||||
function makeGetterFor(Type) {
|
||||
|
|
|
|||
|
|
@ -616,12 +616,10 @@ nsWindowMediator::GetZLevel(nsIXULWindow *aWindow, uint32_t *_retval)
|
|||
{
|
||||
NS_ENSURE_ARG_POINTER(_retval);
|
||||
*_retval = nsIXULWindow::normalZ;
|
||||
// This can fail during window destruction.
|
||||
nsWindowInfo *info = GetInfoFor(aWindow);
|
||||
if (info) {
|
||||
*_retval = info->mZLevel;
|
||||
} else {
|
||||
NS_WARNING("getting z level of unregistered window");
|
||||
// this goes off during window destruction
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue