WebKit CSS 3d 转换在 Snow Leopard 中不起作用

发布于 2024-08-19 05:30:36 字数 260 浏览 2 评论 0原文

我已经编译了一个在 Leopard (10.5) 上使用 WebKit 的应用程序。

该应用程序是 32 位的。 我已将 32 位版本的 WebKit/WebCore 等与该应用程序捆绑在一起。

如果我在 Snow Leopard (10.6) 上运行它,则所有 CSS 3d 转换都不起作用。 3D 变换可在 SL 的 Safari 中使用。

我感觉我的应用程序无法与 Snow Leopard 中的某些 3D 图形框架链接。是否有图形框架仅限 64 位?

I've compiled an application that uses WebKit on Leopard (10.5).

The application is 32 bit.
I've bundled 32 bit versions of WebKit/WebCore etc with the app.

If I run it on Snow Leopard (10.6) none of the CSS 3d transforms work. 3D transforms work in SL's Safari.

I have a feeling that my app isn't able to link with some of the 3D graphics frameworks in Snow Leopard. Are any of the graphic frameworks 64 bit only?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我最亲爱的 2024-08-26 05:30:36

我遇到了类似的问题。我的目标是保存 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;
}

I ran into a similar problem. My goal was saving an image of a WebKit/WebView, but anything with -webkit-transform rendered blank.

This is the code I was using that did not work correctly:

-(NSBitmapImageRep *)getBitmap {
    return [[NSBitmapImageRep alloc] initWithFocusedViewRect: [[[[webView mainFrame] frameView] documentView] bounds]];
}

This code seems to fix the problem, indeed displaying objects with -webkit-transform:

-(NSBitmapImageRep *)getBitmap {
    NSBitmapImageRep *image = [webView bitmapImageRepForCachingDisplayInRect:[webView bounds]];
    [webView cacheDisplayInRect:[webView bounds] toBitmapImageRep:image];
    return image;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文