Summary: | Patterns on fill/stroke of text doesn't work | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikolas Zimmermann <zimmermann> | ||||||
Component: | SVG | Assignee: | Nikolas Zimmermann <zimmermann> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Nikolas Zimmermann
2006-12-19 12:06:49 PST
Created attachment 11918 [details] Initial patch Here's a screenshot showing pattern on stroke/fill of text: http://www.flickr.com/photos/43532360@N00/327436697/ Comment on attachment 11918 [details]
Initial patch
In
- if (!m_paintServer || !m_paintServer->activeClient() || m_ignoreAttributeChanges)
+ if (ownerDocument()->parsing() || !attached() || !m_paintServer || m_ignoreAttributeChanges)
Move the pure bool checks to the beginning of the condition
Created attachment 11919 [details]
Updated patch
Fix Oliver's issue.
Comment on attachment 11919 [details]
Updated patch
Fix indentation of + if (isPaintingText())
then it's landable
- if (isPaintingText()) {
- const_cast<RenderObject*>(object)->style()->setColor(Color());
+
+ if (isPaintingText())
context->setTextDrawingMode(cTextFill);
- }
}
|