[Webkit-unassigned] [Bug 38704] SVG pattern size changed when resizing browser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 23:14:27 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38704





--- Comment #11 from Dirk Schulze <krit at webkit.org>  2010-05-06 23:14:28 PST ---
(In reply to comment #9)
> > Not sure what you mean? We use  context->setFillPattern(patternData->pattern);
> > and context->fillPath(). Simiular to the HTML Canvas code.
> 
> oops ... please ignore that :)
> I'm looking at RenderSVGResourcePattern::buildPattern
> 
>     newTileImageContext->save();
>     newTileImageContext->translate(-patternBoundaries.width() * numX,
> -patternBoundaries.height() * numY);
>     for (int i = numY; i > 0; --i) {
>         newTileImageContext->translate(0, patternBoundaries.height());
>         for (int j = numX; j > 0; --j) {
>             newTileImageContext->translate(patternBoundaries.width(), 0);
>             newTileImageContext->drawImage(tileImage->image(),
> style()->colorSpace(), tileRect, tileRect);
>         }
>         newTileImageContext->translate(-patternBoundaries.width() * numX, 0);
>     }
>     newTileImageContext->restore();
> 
> 
> and i saw a method called DrawTiledImage() in GraphicsContext
> 
> I just want to know if it could do the same thing

it's a rarely used case and was needed by css-property overflow. The old code
had a switch and we didn't run throug that code the most of the time. I need to
look at the history, why this switch was removed ...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list