Changeset 15456
- Timestamp:
- 03/13/2006 02:52:22 PM (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plugins/WebKit Message View/AIWebKitMessageViewController.m
r15365 r15456 81 81 //init 82 82 if ((self = [super init])) 83 { 83 { 84 84 [self _initWebView]; 85 85 … … 922 922 object:[chat account]]; 923 923 924 //We've now masked every user currently in the par iticpating list objects924 //We've now masked every user currently in the participating list objects 925 925 [objectsWithUserIconsArray release]; 926 objectsWithUserIconsArray = [participatingListObjects mutableCopy]; 926 objectsWithUserIconsArray = [participatingListObjects mutableCopy]; 927 927 } 928 928 … … 1014 1014 /* 1015 1015 * Writing the icon out is necessary for webkit to be able to use it; it also guarantees that there won't be 1016 * any animation, which is good since animation in the messag ae view is slow and annoying.1016 * any animation, which is good since animation in the message view is slow and annoying. 1017 1017 */ 1018 1018 webKitUserIconPath = [self _webKitUserIconPathForObject:inObject]; … … 1027 1027 [objectsWithUserIconsArray addObject:inObject]; 1028 1028 } 1029 1030 DOMNodeList *images = [[[webView mainFrame] DOMDocument] getElementsByTagName:@"img"]; 1031 for(int i = 0; i < [images length]; i++) 1032 { 1033 DOMHTMLImageElement *img = (DOMHTMLImageElement *)[images item:i]; 1034 if([[img getAttribute:@"src"] rangeOfString:[inObject internalObjectID]].location != NSNotFound) 1035 [img setSrc:webKitUserIconPath]; 1036 } 1029 1037 } 1030 1038 }