Merge branch 'main' into refactor-remove-nativehost-target

This commit is contained in:
David Richardson committed 2026-10-20 17:35:13 -06:00
commit 483fff9305
27 files changed
+4175 -33

No files matched your search

+1 -1
View File
@@ -1491,7 +1491,7 @@ var patternColorsFromPattern = function(pattern, attributes, imageFactory)
else
{
numParts = 3;
isVertical = orientation === PatternIsVertical;
isVertical = orientation === CPColorPatternIsVertical;
if (isVertical)
{
+2 -1
View File
@@ -52,7 +52,8 @@ CPMenuDidEndTrackingNotification = @"CPMenuDidEndTrackingNotification";
var _CPMenuBarVisible = NO,
_CPMenuBarTitle = @"",
_CPMenuBarAttributes = nil,
_CPMenuBarSharedWindow = nil;
_CPMenuBarSharedWindow = nil,
_CPMenuBarImage = nil;
/*!
@ingroup appkit
+2 -2
View File
@@ -234,10 +234,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;
+5 -3
View File
@@ -1263,8 +1263,11 @@ var CPThemeStatesForSplitViewDivider = @[@"dummy one as CPSplitViewDividerStyle
- (void)setButtonBar:(CPButtonBar)aButtonBar forDividerAtIndex:(CPUInteger)dividerIndex
{
// For compatibility with previous behavior
[aButtonBar setAutomaticResizeControl:YES];
[self attachButtonBar:aButtonBar];
if ([aButtonBar respondsToSelector:@selector(setAutomaticResizeControl:)])
{
[aButtonBar setAutomaticResizeControl:YES];
[self attachButtonBar:aButtonBar];
}
}
- (void)attachButtonBar:(CPButtonBar)aButtonBar
@@ -1906,4 +1909,3 @@ var CPSplitViewDelegateKey = @"CPSplitViewDelegateKey",
@end
+1 -1
View File
@@ -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;
+6 -2
View File
@@ -1191,7 +1191,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)
{
@@ -1218,7 +1220,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)
{
+1 -1
View File
@@ -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)