mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 04:35:32 +00:00
Merge pull request #3327 from cappuccino/fix-unresolved-identifiers
Fix unresolved identifiers
This commit is contained in:
10 files changed
+21
-22
No files matched your search
+1
-1
@@ -1494,7 +1494,7 @@ var patternColorsFromPattern = function(pattern, attributes, imageFactory)
|
||||
else
|
||||
{
|
||||
numParts = 3;
|
||||
isVertical = orientation === PatternIsVertical;
|
||||
isVertical = orientation === CPColorPatternIsVertical;
|
||||
|
||||
if (isVertical)
|
||||
{
|
||||
|
||||
@@ -51,7 +51,8 @@ CPMenuDidEndTrackingNotification = @"CPMenuDidEndTrackingNotification";
|
||||
var _CPMenuBarVisible = NO,
|
||||
_CPMenuBarTitle = @"",
|
||||
_CPMenuBarAttributes = nil,
|
||||
_CPMenuBarSharedWindow = nil;
|
||||
_CPMenuBarSharedWindow = nil,
|
||||
_CPMenuBarImage = nil;
|
||||
|
||||
/*!
|
||||
@ingroup appkit
|
||||
|
||||
@@ -236,10 +236,10 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay,
|
||||
heightInset = contentSize.height - bounds.size.height,
|
||||
frameSize = CGSizeMake(contentSize.width + widthInset, contentSize.height + heightInset);
|
||||
|
||||
if (hFlag)
|
||||
if (horizontalScrollerClass)
|
||||
frameSize.height += [horizontalScrollerClass scrollerWidthInStyle:scrollerStyle];
|
||||
|
||||
if (vFlag)
|
||||
if (verticalScrollerClass)
|
||||
frameSize.width += [verticalScrollerClass scrollerWidthForControlSize:scrollerStyle];
|
||||
|
||||
return frameSize;
|
||||
|
||||
@@ -212,7 +212,7 @@ function CGColorEqualToColor(lhs, rhs)
|
||||
if (lhs.pattern != rhs.pattern)
|
||||
return false;
|
||||
|
||||
if (CGColorSpaceEqualToColorSpace(lhs.colorspace, rhs.colorspace))
|
||||
if (lhs.colorspace !== rhs.colorspace)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
@@ -447,7 +447,9 @@ var scale_rotate = function(a, b, c, d)
|
||||
var sign = (a * d < 0.0 || b * c > 0.0) ? -1.0 : 1.0,
|
||||
a2 = (ATAN2(b, d) + ATAN2(-sign * c, sign * a)) / 2.0,
|
||||
cos = COS(a2),
|
||||
sin = SIN(a2);
|
||||
sin = SIN(a2),
|
||||
abs_cos,
|
||||
abs_sin;
|
||||
|
||||
if (cos === 0)
|
||||
{
|
||||
@@ -474,7 +476,9 @@ var rotate_scale = function(a, b, c, d)
|
||||
var sign = (a * d < 0.0 || b * c > 0.0) ? -1.0 : 1.0,
|
||||
a1 = (ATAN2(sign * b, sign * a) + ATAN2(-c, d)) / 2.0,
|
||||
cos = COS(a1),
|
||||
sin = SIN(a1);
|
||||
sin = SIN(a1),
|
||||
abs_cos,
|
||||
abs_sin;
|
||||
|
||||
if (cos === 0)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ function CGContextSetTextMatrix(/* CGContext */ aContext, /* CGAffineTransform *
|
||||
|
||||
function CGContextGetTextPosition(/* CGContext */ aContext)
|
||||
{
|
||||
return aContext._textPosition || _CGPointMakeZero();
|
||||
return aContext._textPosition || CGPointMakeZero();
|
||||
}
|
||||
|
||||
function CGContextSetTextPosition(/* CGContext */ aContext, /* float */ x, /* float */ y)
|
||||
|
||||
@@ -577,7 +577,8 @@ function CPDecimalAdd(result, leftOperand, rightOperand, roundingMode, longMode)
|
||||
// below is equiv. of simple compare
|
||||
var comp = 0,
|
||||
ll = n1._mantissa.length,
|
||||
lr = n2._mantissa.length;
|
||||
lr = n2._mantissa.length,
|
||||
adderror;
|
||||
|
||||
if (ll == lr)
|
||||
comp = CPOrderedSame;
|
||||
@@ -790,6 +791,7 @@ function _SimpleDivide(result, leftOperand, rightOperand, roundingMode)
|
||||
k = 0,
|
||||
firsttime = YES,
|
||||
stopk = CPDecimalMaxDigits + 1,
|
||||
error1,
|
||||
used = 0; // How many digits of l have been used?
|
||||
|
||||
_CPDecimalSetZero(result);
|
||||
@@ -957,7 +959,8 @@ function _SimpleMultiply(result, leftOperand, rightOperand, roundingMode, powerM
|
||||
var error = CPCalculationNoError,
|
||||
carry = 0,
|
||||
exp = 0,
|
||||
n = CPDecimalMakeZero();
|
||||
n = CPDecimalMakeZero(),
|
||||
error1;
|
||||
|
||||
_CPDecimalSetZero(result);
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
*/
|
||||
+ (id)functionOperationWithFunction:(JSObject)jsFunction
|
||||
{
|
||||
functionOp = [[CPFunctionOperation alloc] init];
|
||||
var functionOp = [[CPFunctionOperation alloc] init];
|
||||
[functionOp addExecutionFunction:jsFunction];
|
||||
|
||||
return functionOp;
|
||||
|
||||
@@ -177,7 +177,8 @@ var _CPRunLoopPerformPool = [],
|
||||
|
||||
@end
|
||||
|
||||
var CPRunLoopLastNativeRunLoop = 0;
|
||||
var CPRunLoopLastNativeRunLoop = 0,
|
||||
CPMainRunLoop = nil;
|
||||
|
||||
/*!
|
||||
@class CPRunLoop
|
||||
|
||||
@@ -179,16 +179,6 @@ WebDAVPropertiesForURLKeys[CPURLIsDirectoryKey] = @"resourcetype";
|
||||
|
||||
var XMLDocumentFromString = function(anXMLString)
|
||||
{
|
||||
if (typeof window["ActiveXObject"] !== "undefined")
|
||||
{
|
||||
var XMLDocument = new ActiveXObject("Microsoft.XMLDOM");
|
||||
|
||||
XMLDocument.async = false;
|
||||
XMLDocument.loadXML(anXMLString);
|
||||
|
||||
return XMLDocument;
|
||||
}
|
||||
|
||||
return new DOMParser().parseFromString(anXMLString,"text/xml");
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user