Summary: | Cleanup GeneratorGeneratedImage/Gradient changes from http://trac.webkit.org/changeset/117858 | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||
Component: | CSS | Assignee: | Tim Horton <thorton> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, dino, simon.fraser | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Tim Horton
2012-06-01 01:22:00 PDT
Created attachment 145238 [details]
patch
Comment on attachment 145238 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=145238&action=review > Source/WebCore/platform/graphics/GeneratorGeneratedImage.cpp:65 > > - if (!m_cachedImageBuffer > - || m_cachedGeneratorHash != generatorHash > - || m_cachedAdjustedSize != adjustedSize > - || !destContext->isCompatibleWithBuffer(m_cachedImageBuffer.get())) { > - // Create a BitmapImage and call drawPattern on it. > + if (!m_cachedImageBuffer || m_cachedGeneratorHash != generatorHash || m_cachedAdjustedSize != adjustedSize || !destContext->isCompatibleWithBuffer(m_cachedImageBuffer.get())) { If the patch to draw() has been checked in by now, that will need the same cleanup. > Source/WebCore/platform/graphics/GraphicsContext.cpp:767 > + if (a.xScale() != b.xScale() || a.yScale() != b.yScale()) > + return false; return a.xScale() == b.xScale() && a.yScale() == b.yScale()? |