capp_lint will not flag CPRectEdge, more linking

This commit is contained in:
Aparajita Fishman
2013-01-20 07:24:00 +07:00
parent 51c09a1b02
commit 17f07ee888
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ var bottomHeight = 71;
offsetX = panelSize.width - inset.right;
switch([_window styleMask])
switch ([_window styleMask])
{
case _CPModalWindowMask:
buttonMarginY = [_themeView currentValueForThemeAttribute:@"modal-window-button-margin-y"];
+1 -1
View File
@@ -325,7 +325,7 @@ ACTUAL_FRAME_RATE = 0;
// currently used function to determine time
// 1:1 conversion to js from webkit source files
// UnitBezier.h, WebCore_animation_AnimationBase.cpp
var CubicBezierAtTime = function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration)
var CubicBezierAtTime = function(t, p1x, p1y, p2x, p2y, duration)
{
var ax = 0,
bx = 0,
+4 -4
View File
@@ -342,10 +342,10 @@ var CPSharedDocumentController = nil;
- (void)closeAllDocumentsWithDelegate:(id)aDelegate didCloseAllSelector:(SEL)didCloseSelector contextInfo:(Object)info
{
var context = {
delegate: aDelegate,
selector: didCloseSelector,
context: info
};
delegate: aDelegate,
selector: didCloseSelector,
context: info
};
[self _closeDocumentsStartingWith:nil shouldClose:YES context:context];
}
+3 -3
View File
@@ -124,7 +124,7 @@
[_stateView setHidden:NO];
//[_stateView setImage:_CPMenuItemDefaultStateImages[[_menuItem state]] || nil];
switch([_menuItem state])
switch ([_menuItem state])
{
case CPOnState:
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-image"]];
@@ -268,7 +268,7 @@
{
if (shouldHighlight)
{
switch([_menuItem state])
switch ([_menuItem state])
{
case CPOnState:
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-highlighted-image"]];
@@ -288,7 +288,7 @@
}
else
{
switch([_menuItem state])
switch ([_menuItem state])
{
case CPOnState:
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-image"]];
+2 -2
View File
@@ -47,9 +47,9 @@
var options = { directoryURL: [self directoryURL],
canChooseFiles: [self canChooseFiles],
canChooseDirectories: [self canChooseDirectories],
allowsMultipleSelection: [self allowsMultipleSelection] };
allowsMultipleSelection: [self allowsMultipleSelection] },
var result = window.cpOpenPanel(options);
result = window.cpOpenPanel(options);
_URLs = result.URLs;
+1 -1
View File
@@ -788,7 +788,7 @@ var _CPWindowViewCornerResizeRectWidth = 10,
[_sheetShadowView setBackgroundColor:[self valueForThemeAttribute:@"attached-sheet-shadow-color"]];
if(_resizeIndicator)
if (_resizeIndicator)
{
var size = [self valueForThemeAttribute:@"size-indicator"],
boundsSize = [self frame].size;
+1 -1
View File
@@ -587,7 +587,7 @@ var ListColumnIdentifier = @"1";
case CPCarriageReturnCharacter:
if ([self isVisible])
{
               [self closeListAfterItemClick];
[self closeListAfterItemClick];
return YES;
}
break;
+1 -1
View File
@@ -181,7 +181,7 @@ class LintChecker(object):
METHOD_RE = ur'[-+]\s*\([a-zA-Z_$]\w*\)\s*[a-zA-Z_$]\w*'
FUNCTION_RE = re.compile(ur'\s*function\s*(?P<name>[a-zA-Z_$]\w*)?\(.*\)\s*\{?')
RE_RE = re.compile(ur'(?<!\\)/.*?[^\\]/[gims]*')
DEPRECATED_CP_RE = re.compile(ur'\b(CP(?:Point|Rect|Size))')
DEPRECATED_CP_RE = re.compile(ur'\b(CP(?:Point|Rect(?!Edge)|Size))')
EMPTY_STRING_LITERAL_FUNCTION = lambda match: match.group(1) + (len(match.group(2)) * ' ') + match.group(1)
EMPTY_SELF_STRING_LITERAL_FUNCTION = lambda self, match: match.group(1) + (len(match.group(2)) * ' ') + match.group(1)