Commit 41433c9e authored by justing's avatar justing

WebCore:

        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: http://svn.webkit.org/repository/webkit/trunk@20927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 67027a94
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
......@@ -66,8 +66,7 @@ static NSCursor* leakNamedCursor(const char* name, int x, int y)
[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;
......
......@@ -334,8 +334,7 @@ void ScrollView::resizeContents(int w, int h)
if (_h < 0)
_h = 0;
NSSize tempSize = { _w, _h }; // workaround for 4213314
[view setFrameSize:tempSize];
[view setFrameSize:NSMakeSize(_w, _h)];
} else {
resize (_w, _h);
}
......@@ -392,8 +391,7 @@ IntPoint ScrollView::contentsToWindow(const IntPoint& contentsPoint) const
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;
......@@ -412,8 +410,7 @@ IntPoint ScrollView::windowToContents(const IntPoint& point) const
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
......
......@@ -425,8 +425,7 @@ static NSFileWrapper *fileWrapperForElement(Element* e)
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;
}
}
......@@ -544,8 +543,7 @@ static NSFileWrapper *fileWrapperForElement(Element* e)
[[[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];
}
}
......
......@@ -1334,7 +1334,6 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 149C283208902B0F008A9EFC /* Build configuration list for PBXProject "WebKit" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
knownRegions = (
English,
......@@ -1349,7 +1348,6 @@
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
projectRoot = "";
shouldCheckCompatibility = 1;
targets = (
9398100A0824BF01008DF038 /* WebKit */,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment