- fixed build that I broke with the license change (some includes of WebException were still around)
* WebKit.pbproj/project.pbxproj: Removed references to WebException.h/m.
* WebView.subproj/WebDataSource.m: Removed include of WebException.h.
* WebView.subproj/WebHTMLView.m: Ditto.
* WebView.subproj/WebView.m: Ditto.
- fixed build under gcc 4.0 (some code moved here from Foundation had warnings)
* Misc.subproj/WebNSDataExtras.m:
(-[NSString _web_capitalizeRFC822HeaderFieldName]): Use char instead of UInt8.
(-[NSData _webkit_guessedMIMEType]): Use char instead of UInt8, and take out now-
unneeded type casts.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9278
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-06-05 Darin Adler <darin@apple.com>
+
+ Reviewed by Hyatt.
+
+ - fixed build that I broke with the license change (some includes of WebException were still around)
+
+ * WebKit.pbproj/project.pbxproj: Removed references to WebException.h/m.
+ * WebView.subproj/WebDataSource.m: Removed include of WebException.h.
+ * WebView.subproj/WebHTMLView.m: Ditto.
+ * WebView.subproj/WebView.m: Ditto.
+
+ - fixed build under gcc 4.0 (some code moved here from Foundation had warnings)
+
+ * Misc.subproj/WebNSDataExtras.m:
+ (-[NSString _web_capitalizeRFC822HeaderFieldName]): Use char instead of UInt8.
+ (-[NSData _webkit_guessedMIMEType]): Use char instead of UInt8, and take out now-
+ unneeded type casts.
+
2005-06-05 Maciej Stachowiak <mjs@apple.com>
Reviewed by Don.
CFIndex i;
CFIndex len = CFStringGetLength(name);
- UInt8 *charPtr = NULL;
+ char *charPtr = NULL;
UniChar *uniCharPtr = NULL;
Boolean useUniCharPtr = FALSE;
Boolean shouldCapitalize = TRUE;
}
int length = [self length];
- const UInt8 *bytes = [self bytes];
+ const char *bytes = [self bytes];
- const char *p = (const char *)bytes;
+ const char *p = bytes;
int remaining = MIN(length, WEB_GUESS_MIME_TYPE_PEEK_LENGTH) - (SCRIPT_TAG_LENGTH - 1);
while (remaining > 0) {
// Look for a "<".
// Test for a broken server which has sent the content type as part of the content.
// This code could be improved to look for other mime types.
- p = (const char *)bytes;
+ p = bytes;
remaining = MIN(length, WEB_GUESS_MIME_TYPE_PEEK_LENGTH) - (TEXT_HTML_LENGTH - 1);
while (remaining > 0) {
// Look for a "t" or "T".
//254
254DC334016E1D3F0ECA149E = {
children = (
- 3944607A020F50ED0ECA1767,
- 3944607B020F50ED0ECA1767,
F528E3E9031E91AD01CA2ACA,
F528E3EA031E91AD01CA2ACA,
F528E3EB031E91AD01CA2ACA,
refType = 4;
sourceTree = "<group>";
};
- 3944607A020F50ED0ECA1767 = {
- fileEncoding = 4;
- isa = PBXFileReference;
- lastKnownFileType = sourcecode.c.h;
- path = WebException.h;
- refType = 4;
- sourceTree = "<group>";
- };
- 3944607B020F50ED0ECA1767 = {
- fileEncoding = 4;
- isa = PBXFileReference;
- lastKnownFileType = sourcecode.c.objc;
- path = WebException.m;
- refType = 4;
- sourceTree = "<group>";
- };
3944607D020F50ED0ECA1767 = {
fileEncoding = 30;
isa = PBXFileReference;
939810140824BF01008DF038,
939810150824BF01008DF038,
939810160824BF01008DF038,
- 939810170824BF01008DF038,
939810180824BF01008DF038,
939810190824BF01008DF038,
9398101A0824BF01008DF038,
);
};
};
- 939810170824BF01008DF038 = {
- fileRef = 3944607A020F50ED0ECA1767;
- isa = PBXBuildFile;
- settings = {
- };
- };
939810180824BF01008DF038 = {
fileRef = F528E3E9031E91AD01CA2ACA;
isa = PBXBuildFile;
939810BD0824BF01008DF038,
939810BE0824BF01008DF038,
939810BF0824BF01008DF038,
- 939810C00824BF01008DF038,
939810C10824BF01008DF038,
939810C20824BF01008DF038,
939810C30824BF01008DF038,
settings = {
};
};
- 939810C00824BF01008DF038 = {
- fileRef = 3944607B020F50ED0ECA1767;
- isa = PBXBuildFile;
- settings = {
- };
- };
939810C10824BF01008DF038 = {
fileRef = F528E3EA031E91AD01CA2ACA;
isa = PBXBuildFile;
#import <WebKit/WebDefaultResourceLoadDelegate.h>
#import <WebKit/WebDocument.h>
#import <WebKit/WebDOMOperationsPrivate.h>
-#import <WebKit/WebException.h>
#import <WebKit/WebFrameLoadDelegate.h>
#import <WebKit/WebFramePrivate.h>
#import <WebKit/WebFrameView.h>
#import <WebKit/WebDocumentInternal.h>
#import <WebKit/WebDOMOperationsPrivate.h>
#import <WebKit/WebEditingDelegate.h>
-#import <WebKit/WebException.h>
#import <WebKit/WebFramePrivate.h>
#import <WebKit/WebFrameViewInternal.h>
#import <WebKit/WebHTMLViewInternal.h>
- (void)_setStringValue:(NSString *)value forKey:(NSString *)key
{
+ if ([[self _stringValueForKey:key] isEqualToString:value])
+ return;
NSString *_key = KEY(key);
[_private->values setObject:value forKey:_key];
if (_private->autosaves)
- (void)_setIntegerValue:(int)value forKey:(NSString *)key
{
+ if ([self _integerValueForKey:key] == value)
+ return;
NSString *_key = KEY(key);
[_private->values _webkit_setInt:value forKey:_key];
if (_private->autosaves)
- (void)_setBoolValue:(BOOL)value forKey:(NSString *)key
{
+ if ([self _boolValueForKey:key] == value)
+ return;
NSString *_key = KEY(key);
[_private->values _webkit_setBool:value forKey:_key];
if (_private->autosaves)
#import <WebKit/WebDynamicScrollBarsView.h>
#import <WebKit/WebDownload.h>
#import <WebKit/WebEditingDelegate.h>
-#import <WebKit/WebException.h>
#import <WebKit/WebFormDelegatePrivate.h>
#import <WebKit/WebFrameInternal.h>
#import <WebKit/WebFrameViewInternal.h>