[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:07:17 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38704
--- Comment #9 from Steven Lai <s3lance at hotmail.com> 2010-05-06 23:07:18 PST ---
> 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
--
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