Cédric Luthi

Restore legacy runtime compatibility

@@ -50,6 +50,9 @@ typedef enum _ASIURLReplacementMode { @@ -50,6 +50,9 @@ typedef enum _ASIURLReplacementMode {
50 // If the response is an HTML or CSS file, this will be set so the content can be correctly parsed when it has finished fetching external resources 50 // If the response is an HTML or CSS file, this will be set so the content can be correctly parsed when it has finished fetching external resources
51 ASIWebContentType webContentType; 51 ASIWebContentType webContentType;
52 52
  53 + // Used internally for parsing HTML (with libxml)
  54 + struct _xmlDoc *doc;
  55 +
53 // Stores a reference to the ASIWebPageRequest that created this request 56 // Stores a reference to the ASIWebPageRequest that created this request
54 // Note that a parentRequest can also have a parent request because ASIWebPageRequests parse their contents to look for external resources recursively 57 // Note that a parentRequest can also have a parent request because ASIWebPageRequests parse their contents to look for external resources recursively
55 // For example, a request for an image can be created by a request for a stylesheet which was created by a request for a web page 58 // For example, a request for an image can be created by a request for a stylesheet which was created by a request for a web page
@@ -37,14 +37,11 @@ static NSMutableArray *requestsUsingXMLParser = nil; @@ -37,14 +37,11 @@ static NSMutableArray *requestsUsingXMLParser = nil;
37 37
38 @property (retain, nonatomic) ASINetworkQueue *externalResourceQueue; 38 @property (retain, nonatomic) ASINetworkQueue *externalResourceQueue;
39 @property (retain, nonatomic) NSMutableDictionary *resourceList; 39 @property (retain, nonatomic) NSMutableDictionary *resourceList;
40 -@property (assign, nonatomic) xmlDocPtr doc; // Declared as @property in order to get a "free" ivar and hide it from the header  
41 40
42 @end 41 @end
43 42
44 @implementation ASIWebPageRequest 43 @implementation ASIWebPageRequest
45 44
46 -@synthesize doc;  
47 -  
48 + (void)initialize 45 + (void)initialize
49 { 46 {
50 if (self == [ASIWebPageRequest class]) { 47 if (self == [ASIWebPageRequest class]) {