Summary: | [Qt] Path fill lacks blur shadow support | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Helder Correia <helder> | ||||||||||
Component: | Canvas | Assignee: | QtWebKit Unassigned <webkit-qt-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | commit-queue, kling, mdelaney7 | ||||||||||
Priority: | P2 | Keywords: | HTML5, Qt, QtTriaged | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | All | ||||||||||||
OS: | All | ||||||||||||
Bug Depends on: | |||||||||||||
Bug Blocks: | 34479 | ||||||||||||
Attachments: |
|
Description
Helder Correia
2010-11-13 01:09:29 PST
Created attachment 73812 [details]
Patch
Comment on attachment 73812 [details]
Patch
What about filling with a gradient or pattern with alpha? Seems like it won't be covered by this change.
Created attachment 74445 [details]
Patch
Created attachment 74449 [details]
Test for stroke gradient and fill, not path
Comment on attachment 74449 [details]
Test for stroke gradient and fill, not path
Added this patch to the wrong bug.
Comment on attachment 74445 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74445&action=review Looks good, except one thing: > WebCore/platform/graphics/qt/GraphicsContextQt.cpp:550 > + QPainter* shadowPainter = shadow->beginShadowLayer(p, path.boundingRect()); QPainterPath::boundingRect() is slow, you should use the controlPointRect() trick here since you only need an approximation. Created attachment 74468 [details]
Use the faster controlPointRect()
Comment on attachment 74468 [details]
Use the faster controlPointRect()
r=me
Comment on attachment 74468 [details] Use the faster controlPointRect() Clearing flags on attachment: 74468 Committed r72472: <http://trac.webkit.org/changeset/72472> All reviewed patches have been landed. Closing bug. |