WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
6448
<text> does not support custom fills or strokes
https://bugs.webkit.org/show_bug.cgi?id=6448
Summary
<text> does not support custom fills or strokes
Eric Seidel (no email)
Reported
2006-01-09 05:28:11 PST
<text> does not support custom fills or strokes This will first require some additional changes to how KCanvas does its drawing:
http://bugzilla.opendarwin.org/show_bug.cgi?id=6447
Then it will also may require changes to QPainter to call WebCoreTextRenderer in a special way to have it not set the current color. It might be possible to simply augment QPainter to just pass "nil" for the NSColor to WebCoreTextRenderer. I'm not sure.
Attachments
support for text fill/strokes
(39.51 KB, patch)
2006-01-21 18:58 PST
,
Alexander Kellett
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2006-01-10 19:37:02 PST
***
Bug 6478
has been marked as a duplicate of this bug. ***
Alexander Kellett
Comment 2
2006-01-21 18:58:38 PST
Created
attachment 5823
[details]
support for text fill/strokes
Eric Seidel (no email)
Comment 3
2006-01-21 23:08:55 PST
Comment on
attachment 5823
[details]
support for text fill/strokes Unfortunately the patch you've attached does not apply. It looks to be an svk patch... which svn-apply does not understand.
Eric Seidel (no email)
Comment 4
2006-01-22 00:28:29 PST
Comment on
attachment 5823
[details]
support for text fill/strokes So a few comments. + virtual void render(KRenderingDeviceContext* context, const RenderPath* renderPath, KCPaintTargetType type) const { } these should be pure virtual ( = 0 ) instead. Everything in WebCore is now in a single namespace. No need to use khtml:: or KDOM:: in new code. Also KSVG should be replaced by WebCore in these files as you edit them. + int width = 2048; + int height = 2048; // FIXME??? + IntSize size = IntSize(width, height); needs to be replaced by some real text measurement code. The QPainter p; and PaintInfo creation code inside RenderText should be completely unecessary. You should just be able to pass the exisiting "paintInfo" variable into RenderBlock::paint()
Eric Seidel (no email)
Comment 5
2006-01-22 01:21:03 PST
Comment on
attachment 5823
[details]
support for text fill/strokes Actually, I was able to tweak the patch locally to make it apply. With that, I made the few minor changes I suggested with the previous comment and I'm now going to go ahead and land this. This looks good for now.
Eric Seidel (no email)
Comment 6
2006-01-22 01:22:17 PST
Btw, this patch fixes about 40 some test cases, and causes a regression in one: W3C-SVG-1.1/painting-fill-02-t That regression is that currentColor is not properly supported for text for some reason now. But we'll track that with a separate bug.
Eric Seidel (no email)
Comment 7
2006-01-22 02:29:02 PST
***
Bug 6669
has been marked as a duplicate of this bug. ***
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