C++ WebKit CSS 3d转换在雪豹中不起作用
我编译了一个在Leopard(10.5)上使用WebKit的应用程序 应用程序是32位的。 我已经将32位版本的WebKit/WebCore等与该应用捆绑在一起 如果我在SnowLeopard(10.6)上运行它,CSS 3d转换都不会工作。3D变换在SL的Safari中工作C++ WebKit CSS 3d转换在雪豹中不起作用,c++,css,webkit,osx-snow-leopard,C++,Css,Webkit,Osx Snow Leopard,我编译了一个在Leopard(10.5)上使用WebKit的应用程序 应用程序是32位的。 我已经将32位版本的WebKit/WebCore等与该应用捆绑在一起 如果我在SnowLeopard(10.6)上运行它,CSS 3d转换都不会工作。3D变换在SL的Safari中工作 我感觉我的应用程序无法与雪豹中的一些3D图形框架链接。有没有64位的图形框架?我遇到了类似的问题。我的目标是保存WebKit/WebView的图像,但任何带有-WebKit transform的图像都会呈现为空白 这是我正
我感觉我的应用程序无法与雪豹中的一些3D图形框架链接。有没有64位的图形框架?我遇到了类似的问题。我的目标是保存WebKit/WebView的图像,但任何带有-WebKit transform的图像都会呈现为空白 这是我正在使用的代码,它无法正常工作:
-(NSBitmapImageRep *)getBitmap {
return [[NSBitmapImageRep alloc] initWithFocusedViewRect: [[[[webView mainFrame] frameView] documentView] bounds]];
}
这段代码似乎解决了这个问题,实际上使用-webkit transform显示对象:
-(NSBitmapImageRep *)getBitmap {
NSBitmapImageRep *image = [webView bitmapImageRepForCachingDisplayInRect:[webView bounds]];
[webView cacheDisplayInRect:[webView bounds] toBitmapImageRep:image];
return image;
}
我遇到了类似的问题。我的目标是保存WebKit/WebView的图像,但任何带有-WebKit transform的图像都会呈现为空白 这是我正在使用的代码,它无法正常工作:
-(NSBitmapImageRep *)getBitmap {
return [[NSBitmapImageRep alloc] initWithFocusedViewRect: [[[[webView mainFrame] frameView] documentView] bounds]];
}
这段代码似乎解决了这个问题,实际上使用-webkit transform显示对象:
-(NSBitmapImageRep *)getBitmap {
NSBitmapImageRep *image = [webView bitmapImageRepForCachingDisplayInRect:[webView bounds]];
[webView cacheDisplayInRect:[webView bounds] toBitmapImageRep:image];
return image;
}