Reviewed by adam
Removed workarounds for compiler bug
4213314.
* platform/mac/CursorMac.mm:
(WebCore::leakNamedCursor):
* platform/mac/ScrollViewMac.mm:
(WebCore::ScrollView::resizeContents):
(WebCore::ScrollView::contentsToWindow):
(WebCore::ScrollView::windowToContents):
WebKit:
Reviewed by adam
Removed workarounds for compiler bug
4213314.
* Misc/WebNSAttributedStringExtras.mm:
(+[NSAttributedString _web_attributedStringFromRange:]):
* WebKit.xcodeproj/project.pbxproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20927
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-04-17 Justin Garcia <justin.garcia@apple.com>
+
+ Reviewed by adam
+
+ Removed workarounds for compiler bug 4213314.
+
+ * platform/mac/CursorMac.mm:
+ (WebCore::leakNamedCursor):
+ * platform/mac/ScrollViewMac.mm:
+ (WebCore::ScrollView::resizeContents):
+ (WebCore::ScrollView::contentsToWindow):
+ (WebCore::ScrollView::windowToContents):
+
2007-04-17 Justin Garcia <justin.garcia@apple.com>
Reviewed by harrison
[resourceName release];
NSCursor* cursor = 0;
if (cursorImage) {
- NSPoint hotSpotPoint = {x, y}; // workaround for 4213314
- cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:hotSpotPoint];
+ cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:NSMakePoint(x, y)];
[cursorImage release];
}
return cursor;
if (_h < 0)
_h = 0;
- NSSize tempSize = { _w, _h }; // workaround for 4213314
- [view setFrameSize:tempSize];
+ [view setFrameSize:NSMakeSize(_w, _h)];
} else {
resize (_w, _h);
}
if (docView)
view = docView;
- NSPoint tempPoint = { contentsPoint.x(), contentsPoint.y() }; // workaround for 4213314
- NSPoint np = [view convertPoint:tempPoint toView: nil];
+ NSPoint np = [view convertPoint:contentsPoint toView: nil];
return IntPoint(np);
END_BLOCK_OBJC_EXCEPTIONS;
if (docView)
view = docView;
- NSPoint tempPoint = { point.x(), point.y() }; // workaround for 4213314
- NSPoint np = [view convertPoint:tempPoint fromView: nil];
+ NSPoint np = [view convertPoint:point fromView: nil];
return IntPoint(np);
+2007-04-17 Justin Garcia <justin.garcia@apple.com>
+
+ Reviewed by adam
+
+ Removed workarounds for compiler bug 4213314.
+
+ * Misc/WebNSAttributedStringExtras.mm:
+ (+[NSAttributedString _web_attributedStringFromRange:]):
+ * WebKit.xcodeproj/project.pbxproj:
+
2007-04-17 John Sullivan <sullivan@apple.com>
Reviewed by Tim Hatcher
KURL kURL = linkStartNode->document()->frame()->loader()->completeURL(href.deprecatedString());
NSURL *URL = kURL.getNSURL();
- NSRange tempRange = { linkStartLocation, [result length]-linkStartLocation }; // workaround for 4213314
- [result addAttribute:NSLinkAttributeName value:URL range:tempRange];
+ [result addAttribute:NSLinkAttributeName value:URL range:NSMakeRange(linkStartLocation, [result length] - linkStartLocation)];
linkStartNode = 0;
}
}
[[[NSTextTab alloc] initWithType:NSRightTabStopType location:rx-(pointSize*2/3)] autorelease],
[[[NSTextTab alloc] initWithType:NSLeftTabStopType location:rx] autorelease],
nil]];
- NSRange tempRange = { info.start, info.end-info.start }; // workaround for 4213314
- [result addAttribute:NSParagraphStyleAttributeName value:mps range:tempRange];
+ [result addAttribute:NSParagraphStyleAttributeName value:mps range:NSMakeRange(info.start, info.end - info.start)];
[mps release];
}
}
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 149C283208902B0F008A9EFC /* Build configuration list for PBXProject "WebKit" */;
- compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
knownRegions = (
English,
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
projectRoot = "";
- shouldCheckCompatibility = 1;
targets = (
9398100A0824BF01008DF038 /* WebKit */,
);