adium 4667:89353d72b045: We don't need this stuff anymore.

commits at adium.im commits at adium.im
Tue Feb 7 22:28:27 UTC 2012


details:	http://hg.adium.im/adium/rev/89353d72b045
revision:	4667:89353d72b045
branch:		(none)
author:		Adrian Godoroja <robotive at me.com>
date:		Wed Feb 08 00:28:20 2012 +0200

We don't need this stuff anymore.

diffs (25 lines):

diff -r 55ef473db9b9 -r 89353d72b045 Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Tue Feb 07 23:12:12 2012 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Wed Feb 08 00:28:20 2012 +0200
@@ -99,11 +99,6 @@
 - (BOOL)zoomImage:(DOMHTMLImageElement *)img;
 @end
 
- at interface DOMDocument (FutureWebKitPublicMethodsIKnow)
-- (DOMNodeList *)getElementsByClassName:(NSString *)className;
-- (DOMNodeList *)querySelectorAll:(NSString *)selectors; // We require 10.5.8/Safari 4, all is well!
- at end
-
 static NSArray *draggedTypes = nil;
 
 @implementation AIWebKitMessageViewController
@@ -1404,9 +1399,6 @@
 - (void)updateServiceIcon
 {
 	DOMDocument *doc = [webView mainFrameDocument];
-	//Old WebKits don't support this... if someone feels like doing it the slower way here, feel free
-	if(![doc respondsToSelector:@selector(getElementsByClassName:)])
-		return; 
 	DOMNodeList  *serviceIconImages = [doc getElementsByClassName:@"serviceIcon"];
 	NSUInteger imagesCount = [serviceIconImages length];
 	




More information about the commits mailing list