WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
18435
Cairo build does not work as it is in the tree
https://bugs.webkit.org/show_bug.cgi?id=18435
Summary
Cairo build does not work as it is in the tree
Daniel Zucker
Reported
2008-04-11 15:10:07 PDT
Cairo build needs to remove functions WebFrame::spoolPages; DrawTextAtPoint; and createDragImageForLink since these require functionality not currently implemented in the Cairo configuration.
Attachments
fix for Cairo build
(3.62 KB, patch)
2008-04-11 15:11 PDT
,
Daniel Zucker
aroben
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Zucker
Comment 1
2008-04-11 15:11:44 PDT
Created
attachment 20487
[details]
fix for Cairo build this is needed for Cairo build to work
Adam Roben (:aroben)
Comment 2
2008-04-14 09:04:27 PDT
Comment on
attachment 20487
[details]
fix for Cairo build This patch seems to use tabs for indentation. Please only use 4 spaces for indentation. @@ -1665,6 +1666,7 @@ HRESULT STDMETHODCALLTYPE WebFrame::spoo /* [in] */ UINT endPage, /* [retval][out] */ void* ctx) { +#if !PLATFORM(CAIRO) if (!printDC || !ctx) { ASSERT_NOT_REACHED(); return E_POINTER; @@ -1748,8 +1750,11 @@ HRESULT STDMETHODCALLTYPE WebFrame::spoo CGContextEndPage(pctx); CGContextRestoreGState(pctx); } - return S_OK; +#else + notImplemented(); + return E_NOTIMPL; +#endif //!PLATFORM(CAIRO) } Can we move most of spoolPages down into WebCore? You should talk to Alp Toker, who I think was working on a cross-platform printing abstraction. void DrawTextAtPoint(CGContextRef cgContext, LPCTSTR text, int length, POINT point, const WebFontDescription& description, CGColorRef color, int underlinedIndex, bool drawAsPassword) { +#if !PLATFORM(CAIRO) GraphicsContext context(cgContext); String drawString(text, length); if (drawAsPassword) drawString = drawString.impl()->secure(WebCore::bullet); WebCoreDrawTextAtPoint(context, drawString, point, makeFont(description), color, underlinedIndex); +#else + notImplemented(); +#endif //!Platform(CAIRO) } Seems like this whole function will have to be compiled out for Cairo, since you won't have a CGContextRef type. I think we can/should rework WebDragClient to use the new ImageBuffer abstraction so that we can remove the CG-specific code from it.
Alexander Butenko
Comment 3
2009-07-28 21:14:09 PDT
builds fine now.
Brent Fulgham
Comment 4
2009-12-18 09:24:50 PST
Equivalents of these patches are all in the tree now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug