[Webkit-unassigned] [Bug 12095] New: Image (and thus SVGImage and PDFDocumentImage) need size-negotiation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 3 07:59:18 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12095
Summary: Image (and thus SVGImage and PDFDocumentImage) need
size-negotiation
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Keywords: SVGHitList
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: macdome at opendarwin.org
CC: hyatt at apple.com
Image (and thus SVGImage and PDFDocumentImage) need size-negotiation
Image needs new methods:
virtual FloatSize Image::intrinsicSize()
virtual FloatSize Image::sizeForViewport(const FloatSize& destSize)
(or some equivalent API)
to allow for scalable images to draw filling the viewport. These would replace
the current size() call. SVGImage would override sizeForViewport() to return
the maximum scaled size for that viewport. Code already exists in
SVGImage::size() for doing this kind of sizing, it's just not wired up (as no
destSize is passed in).
SVGImage::draw will now likely require a call to FrameView::setSize, or perhaps
that size call has moved to the Page now or one of the clients. The layout
machinery should automatically take care of re-laying out the SVG at the new
size.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list