diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 0721c2397..6ee1616da 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -940,7 +940,7 @@ url("data:image/png;base64,BASE64ENCODEDDATA") // if there is a pattern image // You can use -(BOOL)isCSSBased to determine how to cope with it in your code. // -(BOOL)hasCSSDictionary, -(BOOL)hasCSSBeforeDictionary and -(BOOL)hasCSSAfterDictionary are convience methods you can use. // -// Remark : -(void)restorePreviousCSSState and -(DOMElement)applyCSSColorForView are meant to be used by low level UI widgets (like CPView) to implement +// Remark : +(void)restorePreviousCSSState and -(DOMElement)applyCSSColorForView are meant to be used by low level UI widgets (like CPView) to implement // CSS theme support. @implementation CPColor (CSSTheming) @@ -999,7 +999,7 @@ url("data:image/png;base64,BASE64ENCODEDDATA") // if there is a pattern image return ([_cssAfterDictionary count] > 0); } -- (void)restorePreviousCSSState:(CPArrayRef)aPreviousStateRef forDOMElement:(DOMElement)aDOMElement ++ (void)restorePreviousCSSState:(CPArrayRef)aPreviousStateRef forDOMElement:(DOMElement)aDOMElement { #if PLATFORM(DOM) var aPreviousState = @deref(aPreviousStateRef); diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 52486310d..847bb5af5 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1995,7 +1995,7 @@ var CPViewHighDPIDrawingEnabled = YES; #if PLATFORM(DOM) if (_backgroundType === BackgroundCSSStyling) - [_backgroundColor restorePreviousCSSState:@ref(_cssStylePreviousState) forDOMElement:_DOMElement]; + [CPColor restorePreviousCSSState:@ref(_cssStylePreviousState) forDOMElement:_DOMElement]; var patternImage = [_backgroundColor patternImage], colorExists = _backgroundColor && ([_backgroundColor patternImage] || [_backgroundColor alphaComponent] > 0.0),