| 172 | | if( [self respondsToSelector:@selector( windowScriptObject )] ) |
|---|
| 173 | | [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"variantStyle", [[[self style] variantStyleSheetLocationWithName:_styleVariant] absoluteString], nil]]; |
|---|
| 174 | | else |
|---|
| | 172 | if( [self respondsToSelector:@selector( windowScriptObject )] ) { |
|---|
| | 173 | NSString *styleSheetLocation = [[[self style] variantStyleSheetLocationWithName:_styleVariant] absoluteString]; |
|---|
| | 174 | if( ! styleSheetLocation ) styleSheetLocation = @""; |
|---|
| | 175 | [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"variantStyle", styleSheetLocation, nil]]; |
|---|
| | 176 | } else |
|---|
| 203 | | if( [self respondsToSelector:@selector( webScriptObject )] ) |
|---|
| 204 | | [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"emoticonStyle", [[[self emoticons] styleSheetLocation] absoluteString], nil]]; |
|---|
| 205 | | else |
|---|
| | 205 | if( [self respondsToSelector:@selector( webScriptObject )] ) { |
|---|
| | 206 | NSString *styleSheetLocation = [[[self emoticons] styleSheetLocation] absoluteString]; |
|---|
| | 207 | if( ! styleSheetLocation ) styleSheetLocation = @""; |
|---|
| | 208 | [[self windowScriptObject] callWebScriptMethod:@"setStylesheet" withArguments:[NSArray arrayWithObjects:@"emoticonStyle", styleSheetLocation, nil]]; |
|---|
| | 209 | } else |
|---|